ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
What exactly is wrong, i.e. what would you expect differently? When you look at rviz, what are you displaying - /odom -> /base_link? In that case, if the robot moves backwards in gazebo/real world and does the same in rviz based on the odometry, then everything is fine!
You mentioned move_base. I assume you use that for control. If you are unsure about odometry or other basics, I'd highly recommend not using move_base. Use a joystick/keyboard control to manually send out cmd_vel messages, so you don't debug two things at once.
Make the position outputs fixed instead of scientific notation. Besides that they look OK in principle. Maybe just a wrong scaling factor. Linear.x is negative and the x coord gets more negative. That looks alright.