I use Carla manual control to see all positional data on one screen when controlling the ego vehicle through ROS.
But I was really confused by the coordinate systems. I thought heading 0 is x direction and North GNSS direction (increasing latitude).
Actually, moving in the x direction is heading 0, but East (increasing longitude) and HUD is saying North.
After turning right -> moving in -y direction is heading -90, South (decreasing latitude), and HUD is saying West (which is 100% problem, when after going North and turning right, I should be heading East)
Summary image here
Good to point out that ROS-bridge transforms the left-handed coordinate system of CARLA into the right-handed coordinate system of ROS, so the y direction mismatch Python-API. _carla_common/src/carlacommon/transforms.py
I use Carla manual control to see all positional data on one screen when controlling the ego vehicle through ROS.
But I was really confused by the coordinate systems. I thought heading 0 is x direction and North GNSS direction (increasing latitude).
Actually, moving in the x direction is heading 0, but East (increasing longitude) and HUD is saying North.
After turning right -> moving in -y direction is heading -90, South (decreasing latitude), and HUD is saying West (which is 100% problem, when after going North and turning right, I should be heading East)![issue2](https://github.com/carla-simulator/ros-bridge/assets/116560704/77ad7a1e-f41e-4448-9fd2-03672c3f6fd7)
Summary image here![carla_coordinates](https://github.com/carla-simulator/ros-bridge/assets/116560704/610fbb9b-203b-49b9-8fb7-71e873d3f691)
Good to point out that ROS-bridge transforms the left-handed coordinate system of CARLA into the right-handed coordinate system of ROS, so the y direction mismatch Python-API. _carla_common/src/carlacommon/transforms.py