From e687300e885bd4532e75c56aefb432c2c554c4a3 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:01:39 +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 31cbd74..1645bf1 100644 --- a/nodes/encoder_odom_publisher.py +++ b/nodes/encoder_odom_publisher.py @@ -4,7 +4,7 @@ import rospy import tf from nav_msgs.msg import Odometry from std_msgs.msg import Header -from segway_msgs.msg import EncoderTicks # Replace with actual message type +from segway_msgs.msg import ticks_fb # Correct message import import math class EncoderOdometry: @@ -28,8 +28,8 @@ class EncoderOdometry: self.odom_pub = rospy.Publisher("/odom_new", Odometry, queue_size=10) self.odom_broadcaster = tf.TransformBroadcaster() - # ROS subscriber - rospy.Subscriber("/ticks_fb", EncoderTicks, self.ticks_callback) + # ROS subscriber to /ticks_fb topic + rospy.Subscriber("/ticks_fb", ticks_fb, self.ticks_callback) rospy.spin()