1+ # Urban driving scenario configuration
2+ environment :
3+ scenario : " urban"
4+ town : " Town10HD"
5+ weather :
6+ - " ClearNoon"
7+ - " WetNoon"
8+ - " HardRainNoon"
9+ - " ClearSunset"
10+
11+ # Traffic parameters
12+ num_vehicles : 50
13+ num_pedestrians : 100
14+ vehicle_types :
15+ - " vehicle.audi.tt"
16+ - " vehicle.bmw.grandtourer"
17+ - " vehicle.citroen.c3"
18+ - " vehicle.dodge.charger_police"
19+ - " vehicle.ford.mustang"
20+ - " vehicle.mercedes.coupe"
21+ - " vehicle.mini.cooperst"
22+ - " vehicle.nissan.micra"
23+ - " vehicle.nissan.patrol"
24+ - " vehicle.seat.leon"
25+ - " vehicle.tesla.model3"
26+ - " vehicle.toyota.prius"
27+ - " vehicle.volkswagen.t2"
28+
29+ pedestrian_types :
30+ - " walker.pedestrian.0001"
31+ - " walker.pedestrian.0002"
32+ - " walker.pedestrian.0003"
33+ - " walker.pedestrian.0004"
34+ - " walker.pedestrian.0005"
35+ - " walker.pedestrian.0006"
36+ - " walker.pedestrian.0007"
37+ - " walker.pedestrian.0008"
38+ - " walker.pedestrian.0009"
39+ - " walker.pedestrian.0010"
40+
41+ # Road complexity
42+ junction_density : 0.8 # High density of intersections
43+ lane_width : 3.0 # Narrower lanes
44+ speed_limit : 50 # km/h
45+
46+ # Object detection challenges
47+ occlusion_probability : 0.3
48+ small_object_scale : 0.7
49+
50+ # Reward configuration
51+ reward_config :
52+ detection_reward : 1.0
53+ fps_reward : 0.3
54+ collision_penalty : -15.0
55+ pedestrian_detection_bonus : 2.0
56+ traffic_light_penalty : -5.0
57+ lane_invasion_penalty : -3.0
58+ success_reward : 20.0
59+ time_penalty : -0.1
60+
61+ # Episode configuration
62+ max_episode_steps : 2000 # ~5 minutes at 10fps
63+ success_conditions :
64+ distance_traveled : 1000 # meters
65+ time_without_collision : 180 # seconds
66+ min_detection_accuracy : 0.75 # mAP
67+
68+ # Perception parameters
69+ perception :
70+ # Detection thresholds
71+ min_pedestrian_confidence : 0.5
72+ min_vehicle_confidence : 0.4
73+ min_traffic_light_confidence : 0.6
74+
75+ # Region of interest defaults
76+ roi :
77+ default : [0.2, 0.2, 0.8, 0.8] # [left, top, right, bottom]
78+ attention_scale : 1.5
79+
80+ # Detector switching thresholds
81+ switch_to_yolo_when :
82+ fps_below : 15
83+ vehicles_above : 10
84+ pedestrians_above : 5
85+
86+ switch_to_detr_when :
87+ accuracy_below : 0.65
88+ small_objects_above : 3
89+
90+ # Computational constraints
91+ computational :
92+ max_inference_time : 50 # ms
93+ target_fps : 15
94+ energy_budget : 5000 # mJ per episode
0 commit comments