From 234a8a51698e8b20088a958cbb4b96986ebe85fd Mon Sep 17 00:00:00 2001 From: Takayuki Murooka Date: Mon, 15 Aug 2022 13:24:47 +0900 Subject: [PATCH] chore(motion_utils): minor change with nearest search readme Signed-off-by: Takayuki Murooka --- common/motion_utils/README.md | 2 +- common/motion_utils/media/ego_nearest_search.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/motion_utils/README.md b/common/motion_utils/README.md index 154da4bdf4387..d2a4ed6fecef0 100644 --- a/common/motion_utils/README.md +++ b/common/motion_utils/README.md @@ -94,7 +94,7 @@ Therefore, we recommended using the wrapper utility functions which require the For example, when we want to calculate the path length between the ego and the dynamic object, the implementation is as follows. ```cpp -const size_t ego_nearest_idx = findFirstNearestSegmentIndex(points, ego_pose, ego_nearest_dist_threshold, ego_nearest_yaw_threshold); +const size_t ego_nearest_seg_idx = findFirstNearestSegmentIndex(points, ego_pose, ego_nearest_dist_threshold, ego_nearest_yaw_threshold); const size_t dyn_obj_nearest_seg_idx = findFirstNearestSegmentIndex(points, dyn_obj_pose, dyn_obj_nearest_dist_threshold); const double length_from_ego_to_obj = calcSignedArcLength(points, ego_pose, ego_nearest_seg_idx, dyn_obj_pose, dyn_obj_nearest_seg_idx); ``` diff --git a/common/motion_utils/media/ego_nearest_search.svg b/common/motion_utils/media/ego_nearest_search.svg index 164f420bf4853..42ed754fb2969 100644 --- a/common/motion_utils/media/ego_nearest_search.svg +++ b/common/motion_utils/media/ego_nearest_search.svg @@ -1,3 +1,3 @@ -
nearest
nearest
2 * yaw
threshold
2 * yaw...
nearest
nearest
nearest
nearest
nearest
nearest
distance
threshold
distance...
Viewer does not support full SVG 1.1
\ No newline at end of file +
nearest
nearest
2 * yaw
threshold
2 * yaw...
nearest
nearest
nearest
nearest
nearest
nearest
distance
threshold
distance...
1.
1.
2.
2.
3.
3.
4.
4.
Viewer does not support full SVG 1.1
\ No newline at end of file