How do-gongil/ivh-vtd-controller works
This repository is an autonomous-driving controller for the VTD simulator. A route CSV and OpenDRIVE map are planned into a lane-level path, converted into a runtime route with speed limits, then followed in a 20 Hz TCP lockstep loop using simulator state and object perception; controls and run records are sent out. Separate scenario utilities align or generate test scenarios, and a route-sweep tool exercises planner robustness. The README documents the main runtime flow; some utility relationships are supported by imports in the source index rather than inspected implementation excerpts.
Main entry points: run_controller.py Driving Entrypoint · route.py Runtime Route · planner.py Route Planner · odr.py Road Network
Components 17
Route Inputs
- Waypoint CSV
- OpenDRIVE Map
- Run Configuration
hlfma/config.py
Map and Planning
- Road Network
hlfma/odr.py - Route Planner
hlfma/planner.py - Runtime Route
hlfma/route.py
Runtime Driving
- Driving Entrypoint
run_controller.py - Lockstep Client
hlfma/hlvtd.py - Driving Controller
hlfma/controller.py - Object Perception
hlfma/perception.py - Run Logging
hlfma/runlog.py
Scenario Utilities
- Scenario Alignment
tools/scenario.py - Scenario Builder
tools/build_scenario.py - NPC Scenario Maker
tools/make_scenario.py
Planner Analysis
- Route Robustness Sweep
tools/sweep_routes.py
Other components
- Route Operator
- VTD Simulator
Connections 27
- Route Operator → Driving Entrypoint: starts run
README.md - Waypoint CSV → Driving Entrypoint: provides route
README.md - OpenDRIVE Map → Road Network: loads map
hlfma/odr.py - Run Configuration → Driving Entrypoint: configures run
README.md - Driving Entrypoint → Road Network: loads network
run_controller.py - Driving Entrypoint → Route Planner: plans waypoints
README.md - Route Planner → Road Network: queries roads
hlfma/planner.py - Driving Entrypoint → Runtime Route: builds runtime route
README.md - Runtime Route → Route Planner: uses path points
hlfma/route.py - Runtime Route → Road Network: uses network
hlfma/route.py - Runtime Route → Run Configuration: uses vehicle limits
hlfma/route.py - Driving Entrypoint → Driving Controller: runs controller
README.md - Driving Entrypoint → Lockstep Client: steps simulator
run_controller.py - Driving Entrypoint → Run Logging: records run
README.md - Driving Controller → Runtime Route: reads route
hlfma/controller.py - Driving Controller → Object Perception: relates objects
README.md - Driving Controller → Lockstep Client: sends controls
README.md - Lockstep Client → VTD Simulator: exchanges lockstep packets
README.md - VTD Simulator → Lockstep Client: returns simulator state
README.md - Driving Controller → Run Logging: writes events
README.md - Scenario Builder → Scenario Alignment: aligns ego
tools/build_scenario.py - Scenario Alignment → Road Network: projects onto map
tools/scenario.py - Scenario Builder → Route Planner: plans test route
tools/build_scenario.py - NPC Scenario Maker → Route Planner: plans test route
tools/make_scenario.py - NPC Scenario Maker → Runtime Route: uses runtime route
tools/make_scenario.py - Route Robustness Sweep → Route Planner: sweeps plans
tools/sweep_routes.py - Route Robustness Sweep → Road Network: loads network
tools/sweep_routes.py