This project demonstrates a 5G-inspired vehicle-edge server simulation that integrates edge computing to handle computationally intensive tasks. Using gRPC for communication, it showcases the following capabilities:
- Object Detection: Utilizing YOLOv5 to detect objects in images captured by the vehicle.
- Route Planning: Implementing the A* algorithm for efficient navigation.
Link: https://drive.google.com/file/d/12E35PFODAug7Wxw7jHCauiQ6RLrnpLoC/view?usp=sharing
- Real-Time Communication: Leverages gRPC for low-latency, high-efficiency communication.
- Edge Computing Integration: Offloads heavy tasks to the edge server for optimal performance.
- Scalability: Designed to work in 5G environments with potential for multi-vehicle setups.
- Vehicle Simulation:
- Captures images and sends them to the edge server.
- Requests route planning computations.
- Edge Server:
- Processes object detection using YOLOv5.
- Computes navigation routes using the A* algorithm.
- Communication Protocol:
- Uses gRPC and Protocol Buffers for efficient data serialization.
- Python 3.8 or higher
- Required Python libraries:
torch
opencv-python
grpcio
grpcio-tools
numpy
git clone https://github.com/IIITV-5G-and-Edge-Computing-Activity/5G-Edge-Drive.git
cd 5G-Edge-Drive-master
pip install -r requirements.txt
Run the following command to generate the gRPC client and server code:
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. vehicle_edge.proto
Run the edge server to handle incoming requests:
python edge_server.py
Simulate the vehicle sending data to the edge server:
python vehicle.py
vehicle.py
: Simulates the vehicle capturing images and sending requests to the edge server.edge_server.py
: Handles object detection and route planning requests.route_planning.py
: Implements the A* algorithm for navigation.vehicle_edge.proto
: Defines the gRPC communication schema.
- Integration with CARLA Simulator:
- Test the system in realistic driving environments.
- Docker Deployment:
- Package components into Docker containers for scalability.
- Arkesh Choudhury 202111012
- Nisarg Patel 202111058
- Rajan Yadav 202111068
- Sahil Sonkar 202111075
- Saurya Gupta 202111076