How rajvamsi12/real2sim-trajectory-style-transfer works
This research framework converts drone-recorded traffic into CARLA scenarios, captures ego-camera images and control labels, and supports maneuver tagging, behavioral-cloning evaluation, and scenario browsing. The main workflow runs from trajectory mining and map alignment through simulation and dataset capture, then branches into LLM labeling and model training/driving, with expert-replay and autopilot benchmarking. Relationships are limited to README-documented capabilities and calls visible in the supplied excerpts or SOURCE INDEX; unsampled subsystems are included without guessed internal links.
Main entry points: timemethod.py Map alignment · simulate_and_record_scenarios.py Collision-aware capture · compare3.py Three-way benchmark · mine_15s_drone_catalog.py Trajectory mining
Components 27
Trajectory Preparation
- Trajectory mining
mine_15s_drone_catalog.py - Maneuver filtering
mine_unique_ego_catalog.py - Trajectory preprocessing
prepare_data.py - Map alignment
timemethod.py - Affine setup
convertion.py
Simulation and Capture
- Scenario orchestration
SCENARIO.py - Scenario generation
scenario_generator.py - PID route control
scc.py - Collision-aware capture
simulate_and_record_scenarios.py - Image-control dataset
metadata.csv - Video overlays
overlay_scenario_bboxes.py
Maneuver Catalog
- Prompt export
export_llm_trajectories.py - Zero-shot tagging
query_zero_shot_llm.py - Scenario organization
create_sample_scenarios.py - Sample video rendering
render_sample_20_videos.py - Catalog generation
generate_scenario_catalog.py - Catalog browsing
catalog_server.py
Training and Evaluation
- SegFormer training
train3.py - ML closed-loop driving
drive.py - ML evaluation
modelrun.py - Expert replay
SCENARIO.py - Autopilot evaluation
autopilotrun.py - Three-way benchmark
compare3.py
Telemetry
- Telemetry streaming
carla_body_server.py - Convoy logging
town10_autopilot_convoy_logger.py
Other components
- Drone trajectories
- CARLA simulator
Connections 32
- Drone trajectories → Trajectory mining: mines windows
README.md - Trajectory mining → Maneuver filtering: filters tracks
README.md - Drone trajectories → Trajectory preprocessing: preprocesses data
README.md - Trajectory preprocessing → Map alignment: aligns coordinates
- Map alignment → Scenario orchestration: transforms trajectories
SCENARIO.py - Map alignment → Scenario generation: transforms trajectories
scenario_generator.py - Map alignment → Collision-aware capture: transforms trajectories
simulate_and_record_scenarios.py - Scenario orchestration → PID route control: uses vehicle control
SCENARIO.py - Scenario generation → PID route control: uses vehicle control
scenario_generator.py - Scenario orchestration → CARLA simulator: runs scenarios
- Scenario generation → CARLA simulator: spawns vehicles
- Collision-aware capture → CARLA simulator: executes simulation
README.md - Collision-aware capture → Image-control dataset: records labels
README.md - Collision-aware capture → Video overlays: renders overlays
simulate_and_record_scenarios.py - Trajectory mining → Prompt export: exports segments
README.md - Prompt export → Zero-shot tagging: provides prompts
README.md - Zero-shot tagging → Scenario organization: tags scenarios
README.md - Scenario organization → Sample video rendering: organizes clips
README.md - Scenario organization → Catalog generation: builds catalog
- Catalog generation → Catalog browsing: serves catalog
- Image-control dataset → SegFormer training: trains from labels
README.md - SegFormer training → ML closed-loop driving: supplies model
drive.py - SegFormer training → ML evaluation: supplies model
modelrun.py - ML closed-loop driving → CARLA simulator: controls vehicle
README.md - ML evaluation → CARLA simulator: evaluates driving
README.md - Expert replay → CARLA simulator: replays trajectories
- Autopilot evaluation → CARLA simulator: runs autopilot
README.md - Three-way benchmark → Expert replay: compares replay
README.md - Three-way benchmark → ML evaluation: compares ML
README.md - Three-way benchmark → Autopilot evaluation: compares autopilot
README.md - Telemetry streaming → CARLA simulator: streams telemetry
- Convoy logging → CARLA simulator: logs convoy