How to reset /odom
state?
#363
-
Hi, currently the ROS2 API does seem not expose any ability to reset the odometry published as
And hoped for a position of 0/0/0 to be reported by I'm still using G2.2 here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, restarting the robot-state node will not affect the odometry. 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
This will reset the pose estimate to the origin. |
Beta Was this translation helpful? Give feedback.
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
This will reset the pose estimate to the origin.