This project demonstrates a traffic light negotiation system leveraging Vehicle-to-Everything (V2X) communication enhanced by 5G technology. The system models real-world intersections using MATLAB and Simulink, simulating efficient and safe navigation under dynamic traffic conditions. Key features include traffic light detection, vehicle-to-vehicle (V2V) and vehicle-to-infrastructure (V2I) communication, and ultra-low latency decision-making with 5G.
- Presentation Video Link: https://drive.google.com/drive/folders/1vfPQtkY-pNp4QVyrBW-FE_Wn8fNpiEpN?usp=sharing
- OverLeaf Editable Link: https://www.overleaf.com/6636182164szjwvsfvzqpg#da3cbb
- Traffic Light Negotiation: Simulates interactions between vehicles and traffic lights for safe intersection navigation.
- V2X Communication: Implements V2V and V2I protocols for real-time data sharing between vehicles and infrastructure.
- 5G Technology: Enhances communication reliability and reduces latency to sub-1 ms for critical traffic scenarios.
- Dynamic Traffic Scenarios: Handles complex intersections with multiple vehicles and dynamic signal changes.
- Visualization: Provides detailed views such as bird's eye, chase, and time-series graphs for traffic dynamics.
- Directory Structure
- Requirements
- Getting Started
- Simulation Components
- Example Commands
- Results Visualization
- Troubleshooting
- Authors
- References
- MATLAB (R2022b or later recommended)
- Simulink
- Automated Driving Toolbox
- Vehicle Network Toolbox
- Simulink 3D Animation
- 5G Toolbox
Ensure all required toolboxes are installed and accessible.
Follow these steps to set up and run the project:
Download or clone the project:
git clone https://github.com/your-repo/TrafficLightNegotiationUsingV2XExample2.git
cd TrafficLightNegotiationUsingV2XExample2
Launch MATLAB and navigate to the project directory:
cd('C:\Matlab\TrafficLightNegotiationUsingV2XExample2');
Load the Simulink project:
openProject("TrafficLightNegotiationWithV2X");
Use the following commands to access major components:
open_system("TrafficLightNegotiationWithV2XTestBench");
open_system("TrafficLightNegotiationWithV2XTestBench/Sensors and Environment");
open_system("TrafficLightNegotiationWithV2XTestBench/V2V Simulator");
open_system("TrafficLightNegotiationWithV2XTestBench/V2I Simulator");
open_system("DecisionLogic");
Execute the helper function to analyze results:
helperTLNWithV2XResults(logsout);
Models the traffic light, road network, and surrounding vehicles. It generates real-time inputs for the system’s decision logic.
Simulates Vehicle-to-Vehicle communication by broadcasting Basic Safety Messages (BSMs) containing vehicle states (speed, position, heading, etc.).
Implements Vehicle-to-Infrastructure communication by transmitting Signal Phase and Timing (SPAT) messages from traffic lights.
Processes input data from the V2X subsystems and sensor models to make decisions for the ego vehicle (e.g., stop, go, or decelerate).
Here are some useful MATLAB commands for working with this project:
open_system("TrafficLightNegotiationWithV2XTestBench");
open_system("TrafficLightNegotiationWithV2XTestBench/Sensors and Environment");
open_system("TrafficLightNegotiationWithV2XTestBench/V2V Simulator");
open_system("TrafficLightNegotiationWithV2XTestBench/V2I Simulator");
open_system("DecisionLogic");
helperTLNWithV2XResults(logsout);
The simulation provides detailed outputs across different views:
Visualizes the state of the traffic light on the ego lane, ensuring the vehicle acts appropriately based on red, yellow, or green lights.
Shows the V2X communication range, interactions with other vehicles, and real-time updates of traffic light states.
Displays the ego vehicle navigating the intersection from a rear perspective, including lane interactions and signal compliance.
Focuses on vehicle interactions with traffic lights in dense traffic scenarios, showcasing robust decision-making.
Includes graphs for traffic light states, number of V2X detections, ego vehicle acceleration, and yaw angle over time.
-
File Not Found:
- Verify that the directory path is correct in MATLAB.
- Use the
which
command to locate missing files:which('TrafficLightNegotiationUsingV2XExample2')
-
Undefined Function or Variable:
- Confirm that all required toolboxes are installed and accessible.
disp(logsout);
which helperTLNWithV2XResults;
-
Banoth Vinayak
Department of CSE, IIITV-ICD (Diu)
[email protected] -
Chinni Jyothi Prakash
Department of CSE, IIITV-ICD (Diu)
[email protected] -
Maisagalla Venkatesh
Department of CSE, IIITV-ICD (Diu)
[email protected] -
Mogili Dinesh Reddy
Department of CSE, IIITV-ICD (Diu)
[email protected] -
Tettabavi Pranith Kumar
Department of CSE, IIITV-ICD (Diu)
[email protected]
- On 5G-V2X Use Cases and Enabling Technologies: A Comprehensive Survey: https://ieeexplore.ieee.org/document/9497103
- 5G V2X communication at millimeter wave: rate maps and use cases: https://ieeexplore.ieee.org/abstract/document/9128612
- Simulation of NR-V2X in a 5G Environment using OMNeT++: https://ieeexplore.ieee.org/document/10056746
- Connecting vehicles to everything with C-V2X: https://www.qualcomm.com/research/5g/cellular-v2x
This README.md
is structured for clear guidance, from installation to troubleshooting, with detailed descriptions and visual aids for each feature and result. You can copy and use it directly in your project directory.