Skip to content
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): add launch_pointcloud_map_loader #6290

Closed

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Feb 1, 2024

Description

loading pcd map and map_hight_fitter with pointcloud ara time consuming (e.g. 3sec for initial pose).
they are not necessary for planning simulator, so add launch_pointcloud_map_loader to disable that
(I also feel it's not a good way)

Tests performed

put initial pose in psim with following

ros2 launch autoware_launch planning_simulator.launch.xml vehicle_model:=lexus sensor_model:=aip_xx1 map_path:=/home/kosuke55/data/map/odaiba launch_pointcloud_map_loader:=false
ros2 launch autoware_launch planning_simulator.launch.xml vehicle_model:=lexus sensor_model:=aip_xx1 map_path:=/home/kosuke55/data/map/odaiba launch_pointcloud_map_loader:=true

image

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@github-actions github-actions bot added component:map Map creation, storage, and loading. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Feb 1, 2024
@@ -72,8 +72,9 @@ MapHeightFitter::Impl::Impl(rclcpp::Node * node) : tf2_listener_(tf2_buffer_), n

const auto map_loader_name = node->declare_parameter<std::string>("map_loader_name");
params_map_loader_ = rclcpp::AsyncParametersClient::make_shared(node, map_loader_name);
params_map_loader_->wait_for_service();
params_map_loader_->get_parameters({enable_partial_load}, callback);
if (params_map_loader_->wait_for_service(std::chrono::seconds(5.0))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this time may not be sufficient. I need better way

@kosuke55
Copy link
Contributor Author

kosuke55 commented Feb 2, 2024

@KYabuuchi will think better way!!

@kosuke55 kosuke55 closed this Feb 2, 2024
@kosuke55
Copy link
Contributor Author

kosuke55 commented Feb 2, 2024

@kosuke55 kosuke55 deleted the feat/psim_without_pcd branch June 26, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) component:map Map creation, storage, and loading. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant