Skip to content

Commit

Permalink
fix(planning_debug_tools): fix the bug of perception_replayer with de…
Browse files Browse the repository at this point in the history
…tected objects publishing (autowarefoundation#4653)

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 authored Aug 17, 2023
1 parent 4df5f8a commit 02ba0c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def on_timer(self):
return

ego_odom = self.find_ego_odom_by_timestamp(self.bag_timestamp)
log_ego_pose = ego_odom[1].pose.pose
if not ego_odom:
return
log_ego_pose = ego_odom.pose.pose

translate_objects_coordinate(self.ego_pose, log_ego_pose, objects_msg)
self.objects_pub.publish(objects_msg)
Expand Down

0 comments on commit 02ba0c6

Please sign in to comment.