Skip to content

Commit

Permalink
Merge pull request #236 from mbergen/patch-2
Browse files Browse the repository at this point in the history
Fix call to data_type.Time
  • Loading branch information
Tigul authored Dec 5, 2024
2 parents ccc39fa + 8349641 commit a0f5608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pycram/ros_utils/tf_broadcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def _update_objects(self) -> None:
"""
for obj in self.world.objects:
pose = obj.get_pose()
pose.header.stamp = Time.now()
pose.header.stamp = Time().now()
self._publish_pose(obj.tf_frame, pose)
for link in obj.link_name_to_id.keys():
link_pose = obj.get_link_pose(link)
link_pose.header.stamp = Time.now()
link_pose.header.stamp = Time().now()
self._publish_pose(obj.get_link_tf_frame(link), link_pose)

def _update_static_odom(self) -> None:
Expand Down

0 comments on commit a0f5608

Please sign in to comment.