How naishsayed/securedrive-ai works
SecureDrive AI is a MetaDrive autonomous-driving simulator with an attack-control interface and telemetry logging. The principal loop in simulation/autonomous_drive.py gets actions from the custom autopilot, optionally modifies them through the attack engine, steps MetaDrive, then collects and logs telemetry. The tree also contains separate traffic-model and IDM avoidance implementations; their integration with the main loop is not shown, so they are represented as distinct capabilities without inferred links. No README content was provided.
Main entry points: autonomous_drive.py Simulation loop · attack_panel.py Attack panel · telemetry.py Telemetry collection · attack_engine.py Attack engine
Components 11
Simulation runtime
- Simulation loop
simulation/autonomous_drive.py - MetaDrive environment
- SecureDrive autopilot
simulation/custom_autopilot.py - Basic MetaDrive runner
main.py
Attack controls
- Attack engine
attacks/attack_engine.py - Attack panel
gui/attack_panel.py
Telemetry
- Telemetry collection
simulation/telemetry.py - CSV telemetry logger
simulation/telemetry_logger.py
Traffic driving
- SecureDrive traffic model
simulation/securedrive_traffic_model.py - IDM traffic avoidance
simulation/traffic_avoidance.py
Other components
- Operator
Connections 11
- Operator → Simulation loop: starts
simulation/autonomous_drive.py - Simulation loop → MetaDrive environment: steps environment
simulation/autonomous_drive.py - Simulation loop → SecureDrive autopilot: computes actions
simulation/autonomous_drive.py - Simulation loop → Attack engine: modifies actions
simulation/autonomous_drive.py - Simulation loop → Attack panel: creates interface
simulation/autonomous_drive.py - Attack panel → Attack engine: controls attacks
gui/attack_panel.py - Simulation loop → Telemetry collection: collects data
simulation/autonomous_drive.py - Simulation loop → CSV telemetry logger: logs records
simulation/autonomous_drive.py - Telemetry collection → CSV telemetry logger: provides records
simulation/autonomous_drive.py - Simulation loop → MetaDrive environment: resets episodes
simulation/autonomous_drive.py - Operator → Basic MetaDrive runner: starts
main.py