Commit 61d7c41
authored
[New Scenario] Road Traffic (#99)
* Add road traffic scenario
* Adjust kinematic bicycle model
* Adjust README
* Adjust debug file for kinematic bicycle model
* Add "road_traffic" to the list of scenarios
* Format the code to meet the requirements
* [BugFix] Change class name
* [Minor] Default agent number 20
* Code refactoring
- Scenario class appers first, helper function apper later
- Split some mega functions (make_world, reset_world_at, and reward) to subfunctions to improve readability
- Add more detailed function description
* Amend minor
- Readme: corrected the DIO of the paper
- test_vmas: removed debugging code pushed by mistake
* Amend - major
* Added recap to the Scenario class, with a special focus on the explanation of the parameters
* Added more detailed description to the function done
* Removed some unnecessary parameters such as max_steps, shared_reward, and step_duration
* Put r_p_normalizer outside .get
* Add ValueError if n_agents does not meet requirements for scenario_type. The same for n_nearing_agents_observed
* Adjusted some default parameters
* Amend - minor
- Readme: add some useful info
- road_traffic: change from kwargs.get to kwargs.pop
- road_traffic: explain prioritized replay buffer
* Amend - minor
- Explain scenario_type 4 in more detail
* Amend - minor
- Change scenario_type to map_type
- Add more info about map_type to docstring
* Amend - minor
- Add traffic scenario map data to MANIFEST.in
* Amend - minor
- Add vmas/scenario_data to MANIFEST.in1 parent 10a1454 commit 61d7c41
File tree
6 files changed
+14877
-4
lines changed- tests
- vmas
- scenarios_data/road_traffic
- scenarios
6 files changed
+14877
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
| |||
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | | - | |
| 373 | + | |
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments