Closed Krzo99 closed 6 months ago
Could you show TF frames (with their label) in rviz? I see it is in localization mode, maybe it relocalized?
Hey, Sorry for a late reply. I couldn't reproduce the error again. Maybe it got fixed when I updated the ros packages. I'll reopen this issue if it comes up again.
I came across an issue, that I can't seem to find a way to resolve. Hoping there would be someone here that had something similar happen to them.
I'm running an autonomous exploration algorithm on a mobile robot. I'm using ROS2 Humble. Sometimes, the map appears to reset the robot to (0, 0) (video down below), and rotate it in the middle of mapping, which then means that my algorithm doesn't work as expected. The robot position, relative to the map stays the same. I'm using a clean database (just turn on mapping and go, no other maps are saved in the db).
The full map (and the robot's position in it) stays the same, it's just its location and rotation in /map tf that changes. I don't have data, but I'm guessing /odom -> /map changes. I can't see /odom -> /base_link changing. Or could it? IMU data looks normal while the change happens (When red line (x coordinate) jumps.) There also isn't any "odom_correction_yaw" and "map2odom_yaw" messages recieved on the /info topic around the time or the jump.
My rtabmap launch paremeters are:
The video of the incident is bellow. We can clearly see that the robot jumps back to another location (I think it's (0, 0)). The map also rotates 90°. The actual map shown is just a processed /cloud_map rtabmap topic. There is not moving/rotating in the processing code. The same thing doesn't appear to happen in the Gazebo simulator, which is weird.
https://github.com/introlab/rtabmap_ros/assets/20487367/b65898af-2329-4599-ab98-192a942ba96b
The rtabmap & odometry log file with --udebug, from another incident is attached. I can't seem to figure out where in the log the jump happend. rtabmap_leo1.log
I'm wondering why this is happening. I don't think it could be a bad Loop closure, as then the robot's location would move on the map. Furthermore, I'll be happy to provide additional info, and really glad, if anyone can point me in the right direction.
Thanks!