Skip to content

Commit

Permalink
Merge branch 'main' into feature/list-traffic-ids-rviz-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
kenji-miyake authored Jun 6, 2022
2 parents bf373f3 + 7c9242a commit 91dad40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/tier4_debug_tools/scripts/stop_reason2pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _get_nearest_pose_in_array(self, stop_reason, self_pose):
if not poses:
return None

distances = map(lambda p: StopReason2PoseNode.calc_distance2d(p, self_pose), poses)
distances = [StopReason2PoseNode.calc_distance2d(p, self_pose.pose) for p in poses]
nearest_idx = np.argmin(distances)

return poses[nearest_idx]
Expand Down

0 comments on commit 91dad40

Please sign in to comment.