Skip to content

Commit 40cf6bb

Browse files
committed
publish odom_laser tf with current time
1 parent 9cc36ce commit 40cf6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cob_hardware_emulation/scripts/emulation_odom_laser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def publish_tf(self):
4545
# publish tf
4646
# pub base_footprint --> odom_frame
4747
t_odom = TransformStamped()
48-
t_odom.header.stamp = self._odom.header.stamp
48+
t_odom.header.stamp = rospy.Time.now()
4949
t_odom.header.frame_id = self._odom_frame
5050
t_odom.child_frame_id = "base_footprint"
5151
t_odom.transform.translation = self._odom.pose.pose.position

0 commit comments

Comments
 (0)