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
345 stars 27 forks source link

EGO car and the surrounding cars #30

Open AntaiXie opened 3 weeks ago

AntaiXie commented 3 weeks 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 2 weeks 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.