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

The mismatch offset of Town01 in Co-simulation with carla #32

Closed Sephiroth1118 closed 2 months ago

Sephiroth1118 commented 3 months ago

Hello! I'm just using Limsim. The default map for carla co-simulation is Town05. When I tried to change to Town01, I found a mismatch position offset between Carla and sumo. I tried to change the netOffset in net.xml file but no effects. May I ask what the problem might be? Screenshot from 2024-08-20 16-22-25

Fdarco commented 3 months ago

Hello, thank you for using LimSim. From the pictures you provided, it seems that the ego car in CARLA and the ego car in LimSim are not aligned. Did you set the ego car id in CARLA? In addition, in LimSim, co-simulation with CARLA requires instrumentation settings, so we recommend using LimSim++ if you need to obtain data from CARLA.

Sephiroth1118 commented 2 months ago

Hi! Thank you so much for your reply! I finally found out what is wrong. The rou.xml in sumo is mismatched.