ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Reset odom from Python Code

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

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 -0600

Ranjit Kathiriya gravatar image

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

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 -0600 )edit

Question Tools

1 follower


Asked: 2021-08-13 03:23:52 -0600

Seen: 363 times

Last updated: Aug 13 '21