-
Notifications
You must be signed in to change notification settings - Fork 683
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
fix(map_loader): fix warnings with single point cloud map metadata #6384
Conversation
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
I don't have a multi pcd map to test this. @kminoda could you test this with a multi pcd map? I can test it with single pcd map with and without metadata. |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
@xmfcx That sounds great!! |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6384 +/- ##
=======================================
Coverage 14.88% 14.88%
=======================================
Files 1838 1838
Lines 126708 126707 -1
Branches 38042 38040 -2
=======================================
Hits 18865 18865
+ Misses 86544 86542 -2
- Partials 21299 21300 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@xmfcx Hi, thank you for the PR. Unfortunately I am no longer a Perception team, so let me redirect this to Localization/Mapping team in TIER IV. @Motsu-san @YamatoAndo Hi, would you check this? |
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.
Thank you for the pull request.
I have confirmed the following scenarios:
- Single pcd with and without metadata:
logging_simulator
with sample map and sample rosbag- Works fine without log messages
- Multi-PCD with metadata: AWSIM on divided nishishinjuku map
- Works fine
- Multi-pcd without metadata: AWSIM on divided nishishinjuku map
- Outputs error logs properly (but only to the screen)
[Error] [1707783487.253310648] [map.pointcloud_map_loader]: PCD metadata file not found
I also don't think it's a problem from a code review perspective. Thank you for your improvement.
[Additional Note] If you want a divided map, you can use one provided as a sample or manually divide map using pointcloud_divider
.
…utowarefoundation#6384) Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
…utowarefoundation#6384) Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Description
Part of:
Right now, even when we create a metadata with a single pcd, we receive "Create PCD metadata, as the pointcloud is a single file." warning from
pointcloud_map_loader
.But it should throw the warning if there is no metadata but there is no metadata at all.
I've reordered the logic structure so:
In order:
cc. @ahmeddesokyebrahim
Tests performed
Help appreciated.
Effects on system behavior
Not applicable.
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.