-
Notifications
You must be signed in to change notification settings - Fork 677
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
feat(map_loader): warn if some pcds from the metadata file are missing #7406
feat(map_loader): warn if some pcds from the metadata file are missing #7406
Conversation
…missing from the input pcd paths Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp>
@anhnv3991 The pre-commit CI is failing. Please check the details and make the necessary corrections. 🙏 Also, And, the first letter of the PR title cannot be capitalized. I have corrected it this time. 👌
|
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.
Please change it so that the node does not continue if some PCD files are missing. 🙏
map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp
Outdated
Show resolved
Hide resolved
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.
Just curious but why did the compilation of this test file not raise any warning or error when building locally on my PC? |
Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp>
@anhnv3991 Strictly speaking, that does not result in a compilation error. The compilation succeeds because they are included from other header files. This pre-commit forces us to directly include the standard libraries we actually use in the source files. |
map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp
Outdated
Show resolved
Hide resolved
…e end of error messages Signed-off-by: Anh Nguyen <anh.nguyen.2@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.
autowarefoundation#7406) * Examine if there are PCD segments found in the metadata file but are missing from the input pcd paths Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * style(pre-commit): autofix * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fix CI related to map_loader Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Removed try{} block from getPCDMetadata and redundant std::endl at the end of error messages Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> --------- Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Simon Eisenmann <simon.eisenmann@driveblocks.ai>
#7406) * Examine if there are PCD segments found in the metadata file but are missing from the input pcd paths Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * style(pre-commit): autofix * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fixing CI Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Fix CI related to map_loader Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> * Removed try{} block from getPCDMetadata and redundant std::endl at the end of error messages Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> --------- Signed-off-by: Anh Nguyen <anh.nguyen.2@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
Tests performed
Effects on system behavior
The node exits under the following conditions (previously, the node remained but couldn't use the map):
Interface changes
None
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.