How riyatorane/drivetwin works
AdaptPath3D is a single-script MATLAB prototype for adaptive path planning and collision avoidance in simulated unstructured-road scenarios. The user starts or switches a scenario; the simulation senses nearby road users, predicts their motion, plans a path, applies safety and speed decisions, and follows the path while presenting live state, maps, and metrics. The README documents these capabilities, but the MATLAB source was not provided in the excerpts, so the component boundaries and links below reflect documented behavior rather than inspected function calls.
Main entry points: AdaptPath3D.m Simulation loop
Components 14
Simulation
- Simulation loop
AdaptPath3D.m - Road scenarios
AdaptPath3D.m - Road and traffic
AdaptPath3D.m - Range sensing
AdaptPath3D.m - Motion prediction
AdaptPath3D.m
Planning and safety
- Lateral path planner
AdaptPath3D.m - Clearance and TTC
AdaptPath3D.m - Speed controller
AdaptPath3D.m - Emergency braking
AdaptPath3D.m - Path-following steering
AdaptPath3D.m
Visualization and status
- 3D scene rendering
AdaptPath3D.m - Live state and metrics
AdaptPath3D.m - Risk and planning map
AdaptPath3D.m
Other components
- Driver / operator
Connections 19
- Driver / operator → Simulation loop: runs
README.md - Driver / operator → Road scenarios: selects
README.md - Simulation loop → Road scenarios: runs
README.md - Simulation loop → Road and traffic: simulates
README.md - Simulation loop → Range sensing: uses
README.md - Simulation loop → Motion prediction: uses
README.md - Simulation loop → Lateral path planner: replans with
README.md - Simulation loop → Clearance and TTC: checks
README.md - Simulation loop → Speed controller: controls
README.md - Simulation loop → Emergency braking: applies
README.md - Simulation loop → Path-following steering: follows path with
README.md - Simulation loop → 3D scene rendering: renders
README.md - Simulation loop → Live state and metrics: updates
README.md - Simulation loop → Risk and planning map: shows
README.md - Range sensing → Motion prediction: informs
README.md - Motion prediction → Lateral path planner: informs
README.md - Lateral path planner → Clearance and TTC: checked by
README.md - Clearance and TTC → Emergency braking: triggers
README.md - Lateral path planner → Path-following steering: guides
README.md