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.")
self.odom_pub.publish(odom)
# Publish TF transform
rospy.logdebug("Publishing TF transform.")
self.odom_broadcaster.sendTransform(
(self.x, self.y, 0),
q,
rospy.Time.from_sec(current_time),
"base_link",
"odom"
)
# # Publish TF transform
# rospy.logdebug("Publishing TF transform.")
# self.odom_broadcaster.sendTransform(
# (self.x, self.y, 0),
# q,
# rospy.Time.from_sec(current_time),
# "base_link",
# "odom"
# )
# Update previous values
self.last_l_ticks = msg.l_ticks