-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(landmark_parser): refactored landmark manager #5511
refactor(landmark_parser): refactored landmark manager #5511
Conversation
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😃
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5511 +/- ##
==========================================
- Coverage 15.26% 15.25% -0.02%
==========================================
Files 1715 1717 +2
Lines 118232 118298 +66
Branches 37797 37827 +30
==========================================
- Hits 18045 18043 -2
- Misses 79636 79710 +74
+ Partials 20551 20545 -6
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Yamato Ando and I have identified a problem. (It is not new and was not introduced by this pull request.) There is a need for better management of multiple tags, especially when multiple tags share the same ID. std::map<std::string, geometry_msgs::msg::Pose> landmarks_; should be changed as follows std::map<std::string, std::vector<geometry_msgs::msg::Pose>> landmarks_; The For instance, in the case of the LiDAR Intensity Detector, there is currently only one type of board that it can detect. I think, even with this modification, problems may persist if multiple landmarks with the same ID are detected in a single scan or single image. I believe the current solution is to be careful in operation to prevent this from happening. For now, I will implement the aforementioned changes. |
dismiss my review because PR turns to draft
Signed-off-by: Shintaro SAKODA <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro SAKODA <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp>
Changes have been completed. Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ation#5511) * Refactored landmark_parser Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Renamed landmark_parser to landmark_manager Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Fixed tag_id Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Refactored ar_tag_based_localizer Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * style(pre-commit): autofix * Added [[nodiscard]] Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Refactored landmark parsing and conversion Signed-off-by: Shintaro SAKODA <shintaro.sakoda@tier4.jp> * style(pre-commit): autofix * Added namespace Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Fixed include Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> --------- Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Signed-off-by: Shintaro SAKODA <shintaro.sakoda@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
Refactored
landmark_parser
.Added functionconvert_landmark_pose_to_ego_pose
https://github.com/autowarefoundation/autoware.universe/pull/5511/files#diff-60f6e4229981714b879a62a22e2d2ee2f2ccae53ee7d68ec67614ba1ddd7b2deR154-R181Given the pose of a landmark on the base_link and the ID of the landmark, it returns the Pose of the base_link in the map_frame.The role was expanded and a class calledLandmarkManager
was created.I have made the following changes instead of the above changes.
landmark_manager
landmark_manager
parse_landmark
from map to vectorTests performed
It has been confirmed that
ar_tag_based_localizer
works with the same performance as before.Effects on system behavior
There is no effect on system behavior.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.