javyduck / ChatScene

[CVPR2024] ChatScene: Knowledge-Enabled Safety-Critical Scenario Generation for Autonomous Vehicles https://arxiv.org/abs/2405.14062
https://javyduck.github.io/chatscene/
MIT License
80 stars 3 forks source link

Vehicle spawned in carla #13

Closed Katikonst closed 1 month ago

Katikonst commented 1 month ago

Hello! I would like to ask if it is possible to get the vehicle_id of a vehicle that is used in chatscene and put my own sensors on it to retrieve data.

javyduck commented 1 month ago

hi, by default, we already recorded the data for the surrounding vehicles in the saved pkl, you can check and modify here to do the update: https://github.com/javyduck/ChatScene/blob/db2f348df1ccf3a96f8841dde75db8c59ee63c87/safebench/scenario/scenario_definition/scenic_scenario.py#L125 so you can feel free to put your own sensor on it to retrieve the data you want. : )

Katikonst commented 1 month ago

thank you very much!

Katikonst commented 1 month ago

hi, by default, we already recorded the data for the surrounding vehicles in the saved pkl, you can check and modify here to do the update:

https://github.com/javyduck/ChatScene/blob/db2f348df1ccf3a96f8841dde75db8c59ee63c87/safebench/scenario/scenario_definition/scenic_scenario.py#L125

so you can feel free to put your own sensor on it to retrieve the data you want. : )

hi, by default, we already recorded the data for the surrounding vehicles in the saved pkl, you can check and modify here to do the update:

https://github.com/javyduck/ChatScene/blob/db2f348df1ccf3a96f8841dde75db8c59ee63c87/safebench/scenario/scenario_definition/scenic_scenario.py#L125

so you can feel free to put your own sensor on it to retrieve the data you want. : )

hi, by default, we already recorded the data for the surrounding vehicles in the saved pkl, you can check and modify here to do the update:

https://github.com/javyduck/ChatScene/blob/db2f348df1ccf3a96f8841dde75db8c59ee63c87/safebench/scenario/scenario_definition/scenic_scenario.py#L125

so you can feel free to put your own sensor on it to retrieve the data you want. : )

Could you please enlighten me where can i get the id from the ego_vehicle?I want to print all the actors_id from each scene.Thank you!

javyduck commented 1 month ago

hi, it's here:

https://github.com/javyduck/ChatScene/blob/db2f348df1ccf3a96f8841dde75db8c59ee63c87/safebench/scenario/scenario_definition/route_scenario.py#L224

Katikonst commented 1 month ago

thank you!