What may be causing my map to sometimes rotates 180 degrees during operation?
Sometimes, while mapping or even while in Localization mode the entire map rotates 180 degrees like this:
This wreaks havoc with navigation because now every point on the map has new coordinates. If it was currently navigating to a point on the map, the point is now often off of the map.
Background: I am using an RPLIDAR A3, ROS Melodic, and Slam Toolbox.
I presume something in my ROS configuration is wrong, but I'm not sure where to start debugging this.
Here is a link to the bag file running in the gif: https://www.dropbox.com/s/r2jc6tylgjf...
From just watching this animation one could see the map switch around 26.75s. Two topics are publishing a message. What are the names of that topics?