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(autoware_motion_velocity_obstacle_<stop/slow_down>_module): brings Point Cloud handling to this module #10112

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

PanConChicharron
Copy link

@PanConChicharron PanConChicharron commented Feb 13, 2025

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Feb 13, 2025
Copy link

github-actions bot commented Feb 13, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@PanConChicharron PanConChicharron force-pushed the arjun.ram/RT1-9227 branch 2 times, most recently from 7ea7862 to d21914d Compare February 13, 2025 06:34
@PanConChicharron PanConChicharron force-pushed the arjun.ram/RT1-9227 branch 3 times, most recently from 9a8e9ff to 33e9a15 Compare February 14, 2025 05:49
@PanConChicharron PanConChicharron added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 14, 2025
@takayuki5168
Copy link
Contributor

@PanConChicharron
As a draft PR, overall the changes look good to me!

@PanConChicharron PanConChicharron force-pushed the arjun.ram/RT1-9227 branch 2 times, most recently from 9fd84f2 to 7a5e070 Compare February 17, 2025 00:21
@PanConChicharron PanConChicharron changed the title draft feat(autoware_motion_velocity_obstacle_slwo_down_module): brings Point Cloud handling to this module Feb 17, 2025
@PanConChicharron PanConChicharron changed the title feat(autoware_motion_velocity_obstacle_slwo_down_module): brings Point Cloud handling to this module feat(autoware_motion_velocity_obstacle_slow_down_module): brings Point Cloud handling to this module Feb 17, 2025
PanConChicharron and others added 4 commits February 18, 2025 09:07
Signed-off-by: Arjun Jagdish Ram <[email protected]>
Signed-off-by: Arjun Jagdish Ram <[email protected]>
Signed-off-by: Arjun Jagdish Ram <[email protected]>
@PanConChicharron PanConChicharron marked this pull request as ready for review February 18, 2025 00:26
Comment on lines +112 to +114
std::optional<geometry_msgs::msg::Point> stop_collision_point;
std::optional<geometry_msgs::msg::Point> slow_down_front_collision_point;
std::optional<geometry_msgs::msg::Point> slow_down_back_collision_point;
Copy link
Contributor

Choose a reason for hiding this comment

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

This Object struct is in the motion_velocity_planner's common package, so we should not put a module-related variables such as stop_xxx or slow_down_xxx.
Can you put them inside the module's structures such as StopObstacle and SlowDownObtacle?

Comment on lines 109 to 110
double ego_to_obstacle_distance;
double lat_dist_from_obstacle_to_traj;
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have the following functions. Can you check if these can be used for your new variables?

  • get_dist_to_traj_poly
  • get_dist_to_traj_lateral
  • get_dist_from_ego_longitudinal

@takayuki5168 takayuki5168 changed the title feat(autoware_motion_velocity_obstacle_slow_down_module): brings Point Cloud handling to this module feat(autoware_motion_velocity_obstacle_<stop/slow_down>_module): brings Point Cloud handling to this module Feb 18, 2025
Comment on lines 151 to 152
enable_calculation_time_info_ =
getOrDeclareParameter<bool>(node, "common.enable_calculation_time_info");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this variable.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

Comment on lines 148 to 149
use_pointcloud_for_stop_ =
getOrDeclareParameter<bool>(node, "common.stop_obstacle_type.pointcloud");
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this implementation is obviously for the stop feature, use_pointcloud_ sounds enough for me.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -109,6 +109,33 @@ std::vector<TrajectoryPoint> decimate_trajectory_points_from_ego(
}
return extended_traj_points_from_ego;
}
geometry_msgs::msg::Point toGeomPoint(const pcl::PointXYZ & point)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make the function's name to the snake case? Please check other functions as well.
Sorry for the inconvenience. 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

to_geometry_point sounds better to me.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

ec.setInputCloud(filtered_points_ptr);
ec.extract(clusters);

const auto max_lat_margin = p.max_lat_margin;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems no need to declare this variable.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 224 lines in your changes missing coverage. Please review.

Project coverage is 26.68%. Comparing base (b4d9155) to head (8b204f5).

Files with missing lines Patch % Lines
..._obstacle_stop_module/src/obstacle_stop_module.cpp 0.00% 98 Missing ⚠️
...slow_down_module/src/obstacle_slow_down_module.cpp 0.00% 81 Missing ⚠️
...ion_velocity_planner_common_universe/src/utils.cpp 0.00% 14 Missing ⚠️
...ocity_obstacle_slow_down_module/src/parameters.hpp 0.00% 13 Missing ⚠️
...n_velocity_obstacle_stop_module/src/parameters.hpp 0.00% 10 Missing ⚠️
..._velocity_planner_common_universe/planner_data.hpp 0.00% 5 Missing ⚠️
.../motion_velocity_planner_common_universe/utils.hpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10112      +/-   ##
==========================================
- Coverage   26.76%   26.68%   -0.08%     
==========================================
  Files        1416     1418       +2     
  Lines      108463   108693     +230     
  Branches    41715    41739      +24     
==========================================
- Hits        29033    29009      -24     
- Misses      76554    76811     +257     
+ Partials     2876     2873       -3     
Flag Coverage Δ *Carryforward flag
differential 12.69% <0.00%> (?)
total 26.74% <ø> (-0.03%) ⬇️ Carriedforward from 5a5aea7

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

2 participants