Ask Your Question
0

Reference frames of Odometry Message

asked 2020-01-07 05:11:48 -0600

tbondar gravatar image

Hi All,

I'm just learning ROS and would like to ask your help to clarify something I'm totally confused by. In this tutorial the nav_msgs/Odometry message is explained as follows:

The pose in this message corresponds to the estimated position of the robot in the odometric frame [....] The twist in this message corresponds to the robot's velocity in the child frame, normally the coordinate frame of the mobile base [....]

The robot's velocity in the mobile base frame should be always zero, shouldn't it? (Because the pose of the robot in the mobile base frame is constant.) I think I fundamentally misunderstand the concept. Could someone please explain why it is a good idea to use different reference frames for pose and twist? I thought the Odometry message was used to describe the robot's position and velocity (both linear and angular) in the odom frame, but this doesn't seem to be the case.

Thank you, -Tamás

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-01-07 08:53:24 -0600

pavel92 gravatar image

updated 2020-01-07 08:58:33 -0600

There is already a similar question question regarding this.

It can be a bit confusing, but according to the convention (it was maybe in REP 105) and the nav_msgs/Odometry message description, the twist should be in the base_link. It actually makes sense to consider the twist locally. For example, lets say the robot is moving with 1m/s forward. A twist, with linear x=1m/s makes sense in this case regarding the base_link and the robots current velocity. Otherwise if it was in the parent (odom) frame then this simple movement would be represented with a combination of x and y regarding the robot's orientation in the odom frame.

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: 2020-01-07 05:11:48 -0600

Seen: 23 times

Last updated: Jan 07