ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Visualization of odometry msgs

asked 2011-08-11 19:09:42 -0600

Poseidonius gravatar image

updated 2011-08-11 19:34:11 -0600


my question is related to the code of odometry msgs at

How can I visualize a series of odometry msgs in rviz. How do I have to configure rviz to get a sequence of arrows illustrating path and velocity? If I start the small example together with rviz (fixed frame = /base_link) I see with target frame = <fixed frame=""> one stationary arrow?

Best wishes


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-08-12 02:45:20 -0600

Pi Robot gravatar image

Try setting your fixed frame to /odom or /map (if you have a map). In my setup, you won't see any movement of the arrow when the fixed frame is set to /base_link. I've attached a snapshot from RViz after rotating the robot through 360 degrees. Note that this is using the latest Diamondback debian packages. The latest Electric seems to have a bug wherein the arrow points straight down instead of horizontally.



edit flag offensive delete link more


I am using elctric and I see the odometry arrow pointing straight down. It is really a bug or do I write wrong code ?
Poseidonius gravatar image Poseidonius  ( 2011-08-14 03:42:41 -0600 )edit
Thanks patrik,
Poseidonius gravatar image Poseidonius  ( 2011-08-14 03:42:41 -0600 )edit
Thanks patrik,
Poseidonius gravatar image Poseidonius  ( 2011-08-14 03:42:43 -0600 )edit
It does seem to be a bug. I reported it here ( and it has been confirmed by one other person (joq).
Pi Robot gravatar image Pi Robot  ( 2011-08-14 04:03:44 -0600 )edit
Thanks for the ticket id ... I changed the line and enjoy correct visualization now !
Poseidonius gravatar image Poseidonius  ( 2011-08-18 09:58:01 -0600 )edit

answered 2011-08-12 00:09:15 -0600


In the "displays" window of rviz, try to set the "keep" field of the odometry message to a value greater than 1. This value indicates how many past iterations (past arrows) keep in the display.



edit flag offensive delete link more


Thanks for this advice, but I have a 100 there.
Poseidonius gravatar image Poseidonius  ( 2011-08-12 01:04:29 -0600 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2011-08-11 19:09:42 -0600

Seen: 3,406 times

Last updated: Aug 12 '11