Reset Odometry Orientation Data ROS2

asked 2021-08-18 09:22:22 -0600

Shirox gravatar image

Hello, I‘m a total beginner regarding ROS. Currently I‘m using a Turtlebot3 Waffle Pi on ROS2 Foxy.

What I basically want to do is to just move around and after some time has passed I want to reset the orientation data. While using ROS that was not a problem. Restarting the bringup package or publishing Empty messages as descriped in a lot of other threads worked perfectly. But with ROS2 I have a serious problem figuring out how that works. Nothing happens, if I try to publish an Empty. Also, there doesn‘t seem to be a /reset topic anymore.

Also, what is bothering me is, that I can publish to the imu/odom topic directly and change the values to 0 but as soon as another spin is done, the orientation values go back to their former values, as if I would have never published anything. Further, if I simply restart the bringup package, the values won‘t reset too.

Unfortunatly I didn‘t find any information regarding this anywhere and I was searching for some hours. Can anyone grasp what‘s going on and how I can actually reset the orientation data?

Thanks and best regards

edit retag flag offensive close merge delete