Update encoder_odom_publisher.py disabled tf publish

This commit is contained in:
bjoernellens1 2025-01-16 11:23:05 +01:00 committed by GitHub
parent 662dd2130c
commit 82333049df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,15 +102,15 @@ class EncoderOdometry:
rospy.logdebug("Publishing Odometry message.") rospy.logdebug("Publishing Odometry message.")
self.odom_pub.publish(odom) self.odom_pub.publish(odom)
# Publish TF transform # # Publish TF transform
rospy.logdebug("Publishing TF transform.") # rospy.logdebug("Publishing TF transform.")
self.odom_broadcaster.sendTransform( # self.odom_broadcaster.sendTransform(
(self.x, self.y, 0), # (self.x, self.y, 0),
q, # q,
rospy.Time.from_sec(current_time), # rospy.Time.from_sec(current_time),
"base_link", # "base_link",
"odom" # "odom"
) # )
# Update previous values # Update previous values
self.last_l_ticks = msg.l_ticks self.last_l_ticks = msg.l_ticks