carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
521 stars 358 forks source link

Discrepanies regarding the position of spawning #827

Open werewolfdev opened 2 years ago

werewolfdev commented 2 years ago

Hi Team,

I am trying to find suitable spawning points for my vehicle for the respective scenario using simple_vehicle_control. If I roam around using manual_control.py in external control and find a suitable junction and provide those coordinates as initial position in my xosc file with the same map, my vehicle is getting spawned at a different location. Anyone experienced this issue Desktop (please complete the following information):

Additional context Add any other context about the problem here.

fabianoboril commented 2 years ago

Be careful, that OSC is right-handed, but CARLA left-handed. Either you use "CARLA:" at the start of the XOSC description field, or you have to invert the y coordinate. https://github.com/carla-simulator/scenario_runner/blob/master/Docs/openscenario_support.md#general-openscenario-setup