PJLab-ADG / LimSim

LimSim & LimSim++: Integrated traffic and autonomous driving simulators with (M)LLM support
https://pjlab-adg.github.io/LimSim/
GNU General Public License v3.0
415 stars 35 forks source link

EGO car and the surrounding cars #30

Closed AntaiXie closed 3 months ago

AntaiXie commented 5 months ago

Hello, I would like to know if both the EGO car and surrounding cars are controlled by the LLM model? Also, can we implement our own model to control the EGO car and the LLM model to control the surrounding traffic flow, just like Limsim?

Fdarco commented 5 months ago

Hello, it seems that you are using LimSim++. In our sample code, roadgraph, vehicles = model.exportSce() exports the road network environment around the current frame EGO and the information of surrounding vehicles. You can print these data to view their content. roadgraph and vehicles can be input into your own control model to obtain the trajectory of the vehicle, or meta-action. Then, you can use model.setTrajectories(trajectories) to control the movement of the vehicle. LimSim++ supports LLM driving, but it also supports rule-based or learning-based methods for driving. You can freely choose which method to use and which vehicles to control.

github-actions[bot] commented 3 months ago

Stale issue, no activity