How super-nov-a/parkingenv works
ParkingEnv is a reinforcement-learning parking simulator. The main workflow is to train or load a policy, then have it act through the Gym environment: scenarios provide parking layouts, vehicle models advance the car, and observations and rewards support learning or evaluation. The README also documents keyboard-driven manual testing. The graph preserves the documented energy-field and path-tracking capabilities. Some modules were not sampled; their links are omitted unless the README or SOURCE INDEX supports them.
Main entry points: parking_core.py Gym environment · vehicle_base.py Vehicle base · Train.py Training · Test.py Model testing
Components 22
Learning and evaluation
- Training
Train.py - Easy training
Train_easy.py - Hard training
Train_hard.py - Model testing
Test.py - Policy networks
custom_policy_model.py - Saved models
save_model
Parking simulation
- Gym environment
parking_env_pkg/parking_core.py - Scenario generation
parking_env_pkg/scenario_manager.py - Energy field
parking_env_pkg/energy_core.py - Vehicle base
vehicles/vehicle_base.py - Arc vehicle
vehicles/vehicle_arc.py - Continuous vehicle
vehicles/vehicle_continuous.py - Discrete-accel vehicle
vehicles/vehicle_disc_accel.py - Incremental vehicle
vehicles/vehicle_incremental.py - Geometry helpers
parking_env_pkg/utils.py
Sensing and presentation
- 2D lidar
lidar.py - Scene renderer
parking_env_pkg/render.py
Path tracking
- Arc segment tracker
path_tracking/arc_segment_tracker.py - Radar display
path_tracking/display_radar.py - Path tracker
path_tracking/path_tracker.py - Tracker utilities
path_tracking/tracker_utils.py
Other components
- Engineer
Connections 27
- Engineer → Training: starts training
README.md - Engineer → Model testing: runs evaluation
README.md - Engineer → Gym environment: manual controls
README.md - Training → Gym environment: uses environment
Train.py - Training → Policy networks: configures policy
Train.py - Easy training → Gym environment: uses environment
Train_easy.py - Easy training → Policy networks: configures policy
Train_easy.py - Hard training → Gym environment: uses environment
Train_hard.py - Hard training → Policy networks: configures policy
Train_hard.py - Model testing → Gym environment: evaluates in
- Model testing → Saved models: loads model
README.md - Gym environment → Scenario generation: requests scenarios
parking_env_pkg/parking_core.py - Gym environment → Energy field: uses energy field
parking_env_pkg/parking_core.py - Gym environment → Arc vehicle: steps vehicle
parking_env_pkg/parking_core.py - Gym environment → Continuous vehicle: steps vehicle
parking_env_pkg/parking_core.py - Gym environment → Discrete-accel vehicle: steps vehicle
parking_env_pkg/parking_core.py - Gym environment → Incremental vehicle: steps vehicle
parking_env_pkg/parking_core.py - Gym environment → 2D lidar: updates sensing
parking_env_pkg/parking_core.py - Gym environment → Scene renderer: renders scene
parking_env_pkg/parking_core.py - Gym environment → Geometry helpers: uses geometry
parking_env_pkg/parking_core.py - Scenario generation → Geometry helpers: uses geometry
parking_env_pkg/scenario_manager.py - Scene renderer → Geometry helpers: uses geometry
parking_env_pkg/render.py - Arc vehicle → Vehicle base: inherits from
vehicles/vehicle_arc.py - Continuous vehicle → Vehicle base: inherits from
vehicles/vehicle_continuous.py - Discrete-accel vehicle → Vehicle base: inherits from
vehicles/vehicle_disc_accel.py - Incremental vehicle → Vehicle base: inherits from
vehicles/vehicle_incremental.py - Path tracker → Tracker utilities: imports helpers
path_tracking/path_tracker.py