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

Reset odom from Python Code

asked 2021-08-13 03:23:52 -0500

tony6 gravatar image

Hello, I am working on an autonomous robot operation and I would need to reset the odometry while the ros is running. This is because I need a clean odom starting with position 0,0,0 to run my python code for segmentation. I am not using a Kobuki base, and I just need to clear the robot odom sometime in the middle of the run. How can I do so?

The diff drive controller code is written here:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-13 04:26:01 -0500

Ranjit Kathiriya gravatar image

updated 2021-08-13 04:26:36 -0500

Hello @tony6,

You can reset Odom, by publishing an Empty message of std_msgs.msg.

You can have a look at this question, Link 1 and Link 2

edit flag offensive delete link more



That's very specific to the Kobuki drivers. The node the OP links to does not support that.

There is no generic "reset odometry" message, topic or action. It'll always be specific to the node(s) used.

gvdhoorn gravatar image gvdhoorn  ( 2021-08-13 04:49:49 -0500 )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: 2021-08-13 03:23:52 -0500

Seen: 137 times

Last updated: Aug 13 '21