-
Notifications
You must be signed in to change notification settings - Fork 691
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
chore(map_loader): rework parameters of map_loader #6199
chore(map_loader): rework parameters of map_loader #6199
Conversation
Signed-off-by: anhnv3991 <[email protected]>
…on-schema-check failed Signed-off-by: anhnv3991 <[email protected]>
…hnv3991/autoware.universe into chore/rework_param_map_loader
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.
Please wait a little longer while we decide what to do with parameters such as pcd_paths_or_directory
and pcd_metadata_path
.
For arguments like file paths, we decided to use the following notation to maintain the previous behavior. |
@anhnv3991 Could you please submit this commit as a separate pull request? |
@YamatoAndo If I does not add that commit , one of the CLI checks will fail. |
@SakodaShintaro How can I test those files after I made changes? |
Then, run autoware to check if it works properly. (logging_simulator in sample rosbag is often used) If you submit a pull request to autoware_launch and paste the URL (draft is ok), I will check it. 😃 |
Signed-off-by: anhnv3991 <[email protected]>
@anhnv3991 https://github.com/autowarefoundation/autoware.universe/blob/e2a5f4aed880b746b76c4c5d51927fb441ce4b3e/map/map_loader/src/lanelet2_map_loader/lanelet2_map_loader_node.cpp from declare_parameter("lanelet2_map_path", "");
declare_parameter("center_line_resolution", 5.0); to declare_parameter<std::string>("lanelet2_map_path");
declare_parameter<double>("center_line_resolution"); And there is a parameter in autoware.universe/map/map_loader/src/lanelet2_map_loader/lanelet2_map_visualization_node.cpp Line 74 in e2a5f4a
However, it is not a good idea to add a new param file and json file for this one parameter, so why not try writing true directly instead of using this value as a parameter? from viz_lanelets_centerline_ = this->declare_parameter("viz_lanelets_centerline", true); to viz_lanelets_centerline_ = true; @YamatoAndo |
I agree with this proposal! |
Signed-off-by: anhnv3991 <[email protected]>
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 correction.
It has been confirmed that the logging_simulator
runs with the same accuracy as before on AWSIM data with GT.
Looks Good To Me
When merging, please press the merge button at the same time as below
autowarefoundation/autoware_launch#843
(Strictly speaking, there is no problem even if PR at autoware_launch is merged first, so I think it would be a good idea to press the merge button of the PR at autoware_launch first.)
@anhnv3991 build-and-test-differential is failed. https://github.com/autowarefoundation/autoware.universe/actions/runs/7809902259/job/21302469469?pr=6199 I think it is good to fix a test code. from parameters=[{"lanelet2_map_path": lanelet2_map_path}], to parameters=[{
"lanelet2_map_path": lanelet2_map_path,
"center_line_resolution": 5.0,
}], The test can be confirmed by following commands. cd ~/autoware
colcon build --symlink-install \
--cmake-args \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=ON \
-DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' \
-DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage' \
--packages-select map_loader
colcon test --return-code-on-test-failure --packages-select map_loader
colcon test-result --all --verbose | grep map_loader |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6199 +/- ##
=======================================
Coverage 14.86% 14.87%
=======================================
Files 1845 1845
Lines 126638 126613 -25
Branches 37878 37860 -18
=======================================
Hits 18828 18828
+ Misses 86647 86624 -23
+ Partials 21163 21161 -2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…n#6199) * Rework parameters of map_loader Signed-off-by: anhnv3991 <[email protected]> * style(pre-commit): autofix * Fixed typo in name of map_based_pediction.schema.json, which cause json-schema-check failed Signed-off-by: anhnv3991 <[email protected]> * Move path variables back to launch files Signed-off-by: anhnv3991 <[email protected]> * Update README.md Signed-off-by: anhnv3991 <[email protected]> * Undo the change in perception Signed-off-by: anhnv3991 <[email protected]> * Remove default values of declare_parameter from map_loader Signed-off-by: anhnv3991 <[email protected]> --------- Signed-off-by: anhnv3991 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…n#6199) * Rework parameters of map_loader Signed-off-by: anhnv3991 <[email protected]> * style(pre-commit): autofix * Fixed typo in name of map_based_pediction.schema.json, which cause json-schema-check failed Signed-off-by: anhnv3991 <[email protected]> * Move path variables back to launch files Signed-off-by: anhnv3991 <[email protected]> * Update README.md Signed-off-by: anhnv3991 <[email protected]> * Undo the change in perception Signed-off-by: anhnv3991 <[email protected]> * Remove default values of declare_parameter from map_loader Signed-off-by: anhnv3991 <[email protected]> --------- Signed-off-by: anhnv3991 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
In the map_loader module
Tests performed
Parameters of pointcloud map loader


Parameters of lanelet2 map loader
Effects on system behavior
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.