Ask Your Question
0

Turtlebot, odom and a wall

asked 2018-06-07 09:18:36 -0600

erenaud gravatar image

updated 2018-06-07 09:19:14 -0600

Hi !

When simulating a turtlebot with Gazebo, while slam_gmapping is running and using teleop, I noticed that when making the robot moving against a wall, odom somehow "knows" that the robot is in deed NOT moving. As a result, the map displayed on rviz (with view_navigation.launch) stays correct.

I'd like to reproduce this behaviour, but I don't understand what allows this in the turtlebot. Is that something handled in the kobuki_gazebo_plugins (more specifically in function updateOdom() ) ? https://github.com/yujinrobot/kobuki_...

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2018-06-20 03:06:07 -0600

No, the Kobuki Gazebo plugin computes the odometry based on the rate at which the wheels are turning. So there are two possible explanations for the effect you're seeing:

  1. Either the wheels are really not turning when the robot is pushing against a wall. This is unrealistic, but if the simulated wheel traction is much higher than on the real robot, it's possible. In that case, the robot is not moving in the odom frame.
  2. Or the robot does appear to be moving in the odom frame, but gmapping is compensating for it based on the localization in the laser scans.

I would guess it's (1).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-06-07 09:18:36 -0600

Seen: 155 times

Last updated: Jun 20 '18