Exit 1Test track
V2V communication
Cooperative driving simulation
A browser-based simulation of connected vehicles that share what they perceive, so a car can respond to a hazard hidden behind a blind corner before its own camera sees it.
- Status
- Active research prototype
- Categories
- Automotive, Simulation
- Built with
- JavaScript, HTML5 Canvas, Pseudo-3D projection, Frenet-frame kinematics, Seeded Monte Carlo, Graph route planning, Playwright + ffmpeg (video render)
- Planned hardware
- Raspberry Pi 5, STM32, ROS 2
views, counted on this site's server
Repository
Live from GitHubInteractive V2V communication and cooperative driving simulation with vehicle perception, risk assessment, path clearance, multi-hop communication, and route replanning.
Problem
A vehicle's own sensors stop at line of sight. On a blind bend, a stopped car can stay invisible until the distance needed to stop has already run out.
The question the project asks: if another connected vehicle has already seen the hazard, how should that information travel, be trusted, and turn into a safe decision?
Solution
Every simulated vehicle runs its own loop of perception, fusion, risk estimation and decision-making, and exchanges observations, states and intentions over modelled V2V messages. There is no central server and no vehicle commands another; each builds its own world model and decides for itself.
Visibility is computed rather than scripted: each camera field of view is ray-cast against buildings and other vehicles, so a warning only arrives through V2V when the geometry really hides the hazard.
Architecture
- EnvironmentRoad geometry, lanes, buildings and hazards
- Vehicle modelsRoad-relative (Frenet) kinematics with smooth lane changes
- Perception and V2VRay-cast camera occlusion, plus VSM, CPM, HZM, EBW, TIM and CFM messages
- Cooperative fusionFive-gate message validation, association and existence probability
- Prediction and riskTTC, time-to-brake, required deceleration and collision probability
- Decision and planningPath Clearance Score, warning level, route and broadcast intent
- VisualizationHTML5 Canvas top-down and pseudo-3D views
Features
- Blind-corner hazard awareness with geometric line-of-sight occlusion
- Six-message V2V set with geo-scoped relaying up to three hops
- Five validation gates: freshness, plausibility, signature (modelled), consistency with own sensors, and sender trust
- Path Clearance Score for keep, left, right and stop manoeuvres
- Warning levels with debounce and hysteresis; remote-only information is capped below CRITICAL until the vehicle's own sensors agree
- Intent broadcasting so following vehicles do not all take the same gap
- Route replanning after a road closure, and a degraded mode when V2V drops
- Deterministic rendering: the interactive player and the rendered video show identical numbers
Results
Reference run of the blind-corner scenario. All values are computed by the simulation, not measured on vehicles.
| Event | Sim time | Value |
|---|---|---|
| Vehicle A's camera detects stopped vehicle X | 10.300 s | 64 m ahead of A |
| Vehicle B receives A's hazard messages | 10.432 s | 12 ms latency, 90 m from X |
| B's display raises WARNING | 11.92 s | 60.2 m from X |
| Path Clearance Scores for B | 11.932 s | Keep 7, left 85, stop 39: change left |
| B's own camera first sees X | 12.80 s | 42.6 m; existence 0.85 to 0.975 |
| B passes X | about 15.1 s | about 0.8 m body clearance |
| Same scenario without V2V | Impact at about 48 km/h |
Limitations
- Vehicle behaviour is simulated, not measured from physical vehicles.
- Radio latency, range and message signing are modelled, not transmitted over hardware.
- The GRU/GAT prediction stage is represented by modelled outputs; no network is trained or run.
- Risk weights and thresholds are engineering choices that would need calibration with real data.
- It is an academic prototype, not a safety system.
Sources: https://github.com/dhruxraj/v2v-communication (README)
Comments
Questions about the design or ideas for the next iteration are welcome.
Loading comments…