-
Notifications
You must be signed in to change notification settings - Fork 682
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
base: main
Are you sure you want to change the base?
feat(autoware_motion_velocity_obstacle_<stop/slow_down>_module): brings Point Cloud handling to this module #10112
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
7ea7862
to
d21914d
Compare
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
9a8e9ff
to
33e9a15
Compare
@PanConChicharron |
9fd84f2
to
7a5e070
Compare
4d74565
to
7a74643
Compare
Signed-off-by: Arjun Jagdish Ram <[email protected]>
Signed-off-by: Arjun Jagdish Ram <[email protected]>
Signed-off-by: Arjun Jagdish Ram <[email protected]>
Signed-off-by: Arjun Jagdish Ram <[email protected]>
7a74643
to
a168a23
Compare
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; |
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.
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?
double ego_to_obstacle_distance; | ||
double lat_dist_from_obstacle_to_traj; |
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.
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
...ing/motion_velocity_planner/autoware_motion_velocity_obstacle_stop_module/src/parameters.hpp
Outdated
Show resolved
Hide resolved
...ing/motion_velocity_planner/autoware_motion_velocity_obstacle_stop_module/src/parameters.hpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
..._velocity_planner/autoware_motion_velocity_obstacle_stop_module/src/obstacle_stop_module.cpp
Outdated
Show resolved
Hide resolved
...planner/autoware_motion_velocity_obstacle_slow_down_module/src/obstacle_slow_down_module.cpp
Outdated
Show resolved
Hide resolved
enable_calculation_time_info_ = | ||
getOrDeclareParameter<bool>(node, "common.enable_calculation_time_info"); |
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 remove this variable.
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.
Done.
use_pointcloud_for_stop_ = | ||
getOrDeclareParameter<bool>(node, "common.stop_obstacle_type.pointcloud"); |
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.
Since this implementation is obviously for the stop feature, use_pointcloud_
sounds enough for me.
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.
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) |
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.
Can you make the function's name to the snake case? Please check other functions as well.
Sorry for the inconvenience. 🙏
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.
to_geometry_point
sounds better to me.
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.
Done.
ec.setInputCloud(filtered_points_ptr); | ||
ec.extract(clusters); | ||
|
||
const auto max_lat_margin = p.max_lat_margin; |
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.
Seems no need to declare this variable.
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.
Done.
5f7bc8b
to
8b204f5
Compare
Codecov ReportAttention: Patch coverage is
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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
Related links
Parent Issue:
https://tier4.atlassian.net/jira/software/c/projects/RT0/boards/438?assignee=712020%3A794ae440-77c4-4b7e-9a5a-a2cb085494fb&quickFilter=771&selectedIssue=RT1-9227&sprint=631
How was this PR tested?
Results in https://tier4.atlassian.net/wiki/spaces/~712020794ae44077c44b7e9a5aa2cb085494fb/pages/3549299486/Point+Cloud+Handling+in+motion_velocity_planner+module
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.