ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What may be causing my map to sometimes rotates 180 degrees during operation?

asked 2020-08-16 20:24:13 -0500

ChrisL8 gravatar image

Sometimes, while mapping or even while in Localization mode the entire map rotates 180 degrees like this: image description

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...

edit retag flag offensive close merge delete

Comments

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?

HappyBit gravatar image HappyBit  ( 2020-08-17 02:11:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-08-31 09:17:28 -0500

ChrisL8 gravatar image

This appears to be "caused" by the RPLIDAR being mounted "backwards", that is, the cord exiting toward the back of the robot.

I remounted my RPLIDAR with the cord toward the exact front of the robot, and this does not happen anymore.

I do not know what the cause is though, just this fix. It could be a problem with the RPLIDAR driver, or something in the Karto base of Slam Toolbox, or just the nature of the Universe.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-16 20:24:13 -0500

Seen: 346 times

Last updated: Aug 31 '20