odom not aligned with base_link?
When viewing my robot in rviz, the odom link seems not to be aligned with the rest of the robot https://imgur.com/a/4exMRIa . What could causing this?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
When viewing my robot in rviz, the odom link seems not to be aligned with the rest of the robot https://imgur.com/a/4exMRIa . What could causing this?
The odom frame is a "world-fixed" frame. The (0, 0) point in the odom frame is where your robot was when you started it. So if you turn your robot on, and drive 10 meters forward, then turn left 90 degrees, and then drive 5 meters, your robot's pose in the odom frame is (10, 5)
with a yaw/heading of pi/2
. The odom frame will not move, because it is "fixed" to the world, and not your robot. The base_link frame is fixed to your robot, so it will move as the robot moves. Note that your robot's pose in the odom frame is equivalent to the odom->base_link transform.
For more information on coordinate frames in ROS, see REP-105.
In the context of the question (the image lacks a map frame), it is fixed with respect to the robot's base. You could make the argument that the odom frame moves and the base frame remains fixed, but then I could make the argument that the map frame moves as the odom frame remains fixed.
Asked: 2018-08-03 14:46:09 -0600
Seen: 1,464 times
Last updated: Aug 07 '18
Corrected Odometry from GMapping / Karto?
Do I need a transform for my map?
rviz and stage tf timing issue in SimulatingOneRobot tutorial
Set the initial pose with rviz
Robot not following path in Nav. Stack
robot setup tf setup for navigation [closed]
How to visualize surface normals as Marker::Arrow for each point in rviz?
Why do you think odom should be lined up with the rest of the robot?
Doesn't odometry output the pose of the robot?
I think you have a little misconception between "odometry" and the "odom frame". Googling these terms should get you back on the right path :)