Closed Jianye-Xu closed 4 months ago
Perfect, I have merged the dynamics in #102 and uploaded the gif.
Could you merge main in this PR pls?
Next I will review the scenario
Also could you please follow the instructions here to format the code and add the scenario to https://github.com/proroklab/VectorizedMultiAgentSimulator/blob/be5deac1f93a5ac84541d0d96580102c88513f9d/vmas/__init__.py#L23 ?
Perfect, I have merged the dynamics in #102 and uploaded the gif.
Could you merge main in this PR pls?
Next I will review the scenario
Thank you. Yes sure, I merged main into this PR.
Also could you please follow the instructions here to format the code and add the scenario to
?
Thanks for pointing this out. I followed the instructions and updated the PR. Let me know I need do anything else before you start to review this PR.
Ah, let me fix the failures of the checks.
Thanks for the comments! I will address them.
PS: I am traveling to attend the IEEE IV 2024. Pls expect delayed responses.
My latest commit has been pushed (933dfc6). Can you have a look and let me know if you have any comments?
Very coll stuff! We are almost there I think.
Could you add a recap of the scenario in the
Scenario
docstring?Also a little more depth in the parameters meaning would be super useful. For example what are the
scenario_types
,testing_mode
, etc. This could also go in theScenario
docstring, where we could tell the users how they should typically use this scenario. For example, what parameters are more useful or frequent to change / what they can touch to match the setups in the paper
Glad to hear that!
Good suggestions. I added a recap to the Scenario
docstring.
Thanks for your code review. I pushed a new version (last commit 001d250) considering all your previous comments. Let me know if you have any more comments.
Very nice docstring!
One last thing:
Can you merge main? In particular, we have recently replaced all
kwargs.get
withkwargs.pop
and then at the end of reading all kwargs placeScenarioUtils.check_kwargs_consumed(kwargs)
which raises a warning if some params are passed and not read
Thanks!
Sure, will do it
My new commit (4e300b9) is ready for review. Let me know if you have any new comments.
Besides, I noticed the background color of the gif I gave you last time is not white. I fixed this. Can you replace it with this one?:
My new commit (4e300b9) is ready for review. Let me know if you have any new comments.
Besides, I noticed the background color of the gif I gave you last time is not white. I fixed this. Can you replace it with this one?
I tried but I stll see the same background yellow somehow. Do you want to try to make a PR to that repo to see if that works?
I tried but I stll see the same background yellow somehow. Do you want to try to make a PR to that repo to see if that works?
Actually now I see it has a white background. Maybe because of the cache of your browser?
Try to see if the xml is included by running
python3 setup.py sdist
and checking if the xml is in the folder created
Before I added
include vmas/scenarios_data/road_traffic/road_traffic_cpm_lab.xml
to MANIFEST.in, the scenario data was not included in the pip release. Therefore, I pushed a new commit (1955119) to add this line. Now it works as expected.
Try to see if the xml is included by running
python3 setup.py sdist
and checking if the xml is in the folder createdBefore I added
include vmas/scenarios_data/road_traffic/road_traffic_cpm_lab.xml
to MANIFEST.in, the scenario data was not included in the pip release. Therefore, I pushed a new commit (1955119) to add this line. Now it works as expected.
Would
include vmas/scenarios_data
work as well? cause we do not want to have the same problem in rthe future
Would
include vmas/scenarios_data
work as well? cause we do not want to have the same problem in rthe future
Yes, nice point. It works. The new commit is ed5a4f9.
Would
include vmas/scenarios_data
work as well? cause we do not want to have the same problem in rthe future
Yes, nice point. It works. The new commit is ed5a4f9.
I am checking now and this did not include the file, I ll fix it
I am checking now and this did not include the file, I ll fix it
That's weird. It worked in my local machine. Thanks.
This PR introduces a road traffic scenario, aiming to provide a MARL benchmark for Connected and Automated Vehicles (CAVs).
This scenario uses a High-Definition (HD) map from the Cyber-Physical Mobility Lab (CPM Lab), an open-source testbed for CAVs. The map features an eight-lane intersection and a loop-shaped highway with multiple merge-in and -outs, offering a range of challenging traffic conditions. Forty loop-shaped reference paths are predefined, allowing for simulations with infinite durations. You can initialize up to 100 agents, with a default number of 20. In the event of collisions during training, the scenario reinitializes all agents, randomly assigning them new reference paths, initial positions, and speeds. This setup is designed to simulate the unpredictability of real-world driving.
PS:
https://github.com/matteobettini/vmas-media/blob/main/media/scenarios/
with the nameroad_traffic_cpm_lab.gif
?/vmas/simulator/utils.py
or introduce new files but makes this file "bloated". Let me know if this is what you want.Let me if you have any suggestions for improvements for this PR.