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

Robot Rotating relative to odom in RViz when it is stationary

asked 2020-01-09 05:15:21 -0500

emlynw gravatar image

updated 2020-01-09 05:17:11 -0500

Hi,

I'm using a Clearpath Husky A200 with a sick LMS111 LIDAR. When I open RVIZ I can see the points generated by the LIDAR and they are in the correct position relative to the husky. However, both the husky and the LIDAR points are rotating in RViz when the fixed frame is odom, even though the husky isn't moving. When I try to generate a map using gmapping, the map ends up having the same features at different orientations and looks round even though the room is rectangular. I'm using ROS indigo on the husky. Does anyone know what could be causing this problem?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-09 08:51:49 -0500

Joe28965 gravatar image

My first guess would be that it's connected to your other sensors. Do you have an IMU that is spewing out data? If so, my guess would be that this IMU has some noise, which is causing the robot to slowly rotate.

edit flag offensive delete link more

Comments

Yes I've got an IMU connected too. Do you know how can I fix this if this is the problem? I'll try doing the same without the IMU plugged in to see what happens

emlynw gravatar image emlynw  ( 2020-01-09 09:30:58 -0500 )edit

What do you use to create your map? Is it gmapping? I know cartographer will update the map if it has detected the robot has started drifting. However, I'm not sure if using cartographer will fix your problem since I'm by no means an expert when it comes to ROS and have never personally used ROS indigo

Joe28965 gravatar image Joe28965  ( 2020-01-09 09:39:24 -0500 )edit

I've just tried unplugging the IMU and it seems to solve the problem of the LIDAR points rotating relative to the odom frame so thanks! I've tried calibrating the IMU but it still causes the same error so I'm unsure how to fix that, any ideas? I used gmapping but got the weird round maps. I've now tried using hector_slam and am getting decent maps even with the IMU so I think it must also correct for drift.

emlynw gravatar image emlynw  ( 2020-01-09 10:56:07 -0500 )edit

well slam is Simultaneous Localisation And Mapping, so you should check which part of the package actually does the localisation and see if you can somehow tweak some there, maybe make it rely more on other sensors?

Joe28965 gravatar image Joe28965  ( 2020-01-09 12:09:14 -0500 )edit

Even when I'm not running slam, in RViz the walls return to a fixed point relative to the fixed odom frame with the IMU unplugged but do not stay fixed to odom with the IMU plugged in

emlynw gravatar image emlynw  ( 2020-01-10 07:28:51 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-01-09 05:15:21 -0500

Seen: 478 times

Last updated: Jan 09 '20