How do I reset the /odom topic back to 0 without restarting the robot?
I am using this callback function because I want to tell the robot to move a specified angle. I was wondering if there is a way to restart the /odom topic back to 0 for simplicity purposes. Your help is really appreciated!
I am using ROS Indigo and I have a create turtlebot base
def odometry_cb(self, data):
pose = data.pose.pose
quaternion = (pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w)
euler = tf.transformations.euler_from_quaternion(quaternion)
roll = euler[0]
pitch = euler[1]
yaw = euler[2]
yaw_angle = (yaw*(180/math.pi))
self._last_yaw_angle = yaw_angle
print(self._last_yaw_angle)
It would be useful if you name the robot you use and which package.
I am sorry for not clarifying earlier but I updated that in my question