Skip to content

How to reset /odom state? #363

Answered by alsora
alexswerner asked this question in Questions
Discussion options

You must be logged in to vote

No, restarting the robot-state node will not affect the odometry.
The reason is that the robot-state node is not responsible for computing the odometry state, but rather it's just reporting a value computed elsewhere.

Note that in version G.3.1 we added a ROS 2 service exactly for this purpose: https://github.com/iRobotEducation/irobot_create_msgs/blob/rolling/srv/ResetPose.srv

ros2 service call /reset_pose irobot_create_msgs/srv/ResetPose "{}"

This will reset the pose estimate to the origin.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexswerner
Comment options

Answer selected by alsora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum_create3_api Forum post about how to use Create 3 APIs
2 participants