From a1355df7e50023a518688d10e5b58d27819fbf2a Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:57:12 +0100 Subject: [PATCH] Update encoder_odom_publisher.py --- nodes/encoder_odom_publisher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/encoder_odom_publisher.py b/nodes/encoder_odom_publisher.py index d1f7e55..b61dc18 100644 --- a/nodes/encoder_odom_publisher.py +++ b/nodes/encoder_odom_publisher.py @@ -24,8 +24,8 @@ class EncoderOdometry: self.last_r_ticks = None self.last_time = None - # ROS publishers - self.odom_pub = rospy.Publisher("/odom", Odometry, queue_size=10) + # ROS publishers (Updated topic to /odom_new) + self.odom_pub = rospy.Publisher("/odom_new", Odometry, queue_size=10) self.odom_broadcaster = tf.TransformBroadcaster() # ROS subscriber @@ -88,7 +88,7 @@ class EncoderOdometry: odom.twist.twist.linear.x = v odom.twist.twist.angular.z = omega - # Publish odometry + # Publish odometry to /odom_new self.odom_pub.publish(odom) # Publish TF transform