Closed marcusvinicius178 closed 4 months ago
Thanks for the detailed question. However, all questions should go on robotics.stackexchange.com. I see you've opened the question there, and to prevent cross-posting, I will close this.
Please note that I have very little free time to dedicate to this package these days, so I'll answer the question as soon as I have time to catch up.
Thanks @ayrton04 sorry to publish question here. I just wished to caught your attention, since I have read numerous good answers and solutions you have provided to the community!You might be the unique expert that can help me, I am not a localization expert. Take you time to answer me! Thanks very much and sorry for eventual disturbance.
I am working on an autonomous vehicle project in São Paulo, Brazil. As part of the project, I am using the navsat_transform_node from the ROS robot_localization package for integrating GPS data. I have calculated the magnetic declination for my location using the NCEI site:NCEI Magnetic Calculators The declination value is below:
Our IMU yaw rate is obtained from our vehicle's CAN yaw rate data, and we integrate that value. We don't have a direct IMU source.
Problem:
Despite correctly setting the magnetic declination and trying various values for the yaw_offset, my robot's orientation on Mapviz is consistently incorrect. The robot's arrow points to the back instead of the front, resulting in incorrect path planning. Specifically, the robot is oriented between 90 - 180 degrees opposite to its actual heading. Navsat is also making errors converting to lat,long to UTM for South Hemisphere:
[navsat_transform_node-6] what(): Easting 3.12708e+06km not in UTM range for S hemisphere [0km, 1000km]
Configuration Attempts: I've tried different values as you can check on my configuration file https://pastebin.com/sT3LZV0gMagnetic Declination: -0.38201051083 radians (as calculated)
yaw_offset values tried: pi, -pi, 2pi, -2pi, etc.
None of these attempts have corrected the orientation issue. Here is a snippet of my navsat_transform_node configuration:
Errors and Warnings:
Additionally, I am encountering the following error on the terminal, which suggests a possible issue with the UTM conversion for the southern hemisphere:
Questions:
Additional Information:
I am using ROS 2 Iron. I will attach a video and pictures demonstrating the issue for better visualization.
Mapviz Orientation Issue Video
Wrong Orientation Picture:
Desired Orientation (Robot Forward Front)
Insights are welcome!
I have checked other users with similar issue: https://robotics.stackexchange.com/questions/112051/localization-orientation-issue-while-running-robot-localization-with-navsat-tran
I have also opened this issue on robotics stack exchange, but unfortunately didn't have an assistance there: https://robotics.stackexchange.com/