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

Odometer Code

asked 2015-04-02 06:15:29 -0600

maha gravatar image

updated 2015-04-02 06:16:09 -0600

I'm implementing Odometer in the navigation stack using this:
What I understood is that in order to make this code really work on my robot then i'll have to change some stuff. for example:
16 double vx = 0.1;
17 double vy = -0.1;
18 double vth = 0.1;

I changed those values manually because i dont have a driver. I got help from this:
However, my question is what else should i change?

thank you,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-02 07:41:31 -0600

dornhege gravatar image

This is just dummy code showing how to fill such messages. What you have to change for your robot depends on your robot's data. There is no general answer for that.

edit flag offensive delete link more


can you explain further or provide a source explaining the code.. i dont understand what's in the website. it is not enough.

maha gravatar image maha  ( 2015-04-07 11:27:48 -0600 )edit

Odometry only makes sense, when it comes to a robot. So, at least the velocity values or pose estimates needs to be robot data. Unless you have that it doesn't make sense to publish odometry. If you want more detailed information, you'll have to provide what data you can get out of your robot.

dornhege gravatar image dornhege  ( 2015-04-08 03:51:28 -0600 )edit

i can get anything out of my robot.. i already provided the velocities,, how can i get the pose estimates?

maha gravatar image maha  ( 2015-04-08 05:18:52 -0600 )edit

In this case the code should already work. You only need to continuously update these. It integrates velocities to get pose estimates in ll 31-34. If you have direct pose estimates, e.g., from encoders your code also use these.

dornhege gravatar image dornhege  ( 2015-04-08 06:32:34 -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

1 follower


Asked: 2015-04-02 06:15:29 -0600

Seen: 1,027 times

Last updated: Apr 02 '15