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

fix(motion_velocity_planner_common): fix the calc_possible_min_dist_from_obj_to_traj_poly calculation #10059

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

<maintainer email="[email protected]">Maxime Clement</maintainer>
<maintainer email="[email protected]">Alqudah Mohammad</maintainer>
<maintainer email="[email protected]">Takayuki Murooka</maintainer>
<maintainer email="[email protected]">Yuki Takagi</maintainer>

<license>Apache License 2.0</license>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
const double object_possible_max_dist =
calc_object_possible_max_dist_from_center(object->predicted_object.shape);
const double possible_min_dist_to_traj_poly =
std::abs(object->get_dist_to_traj_lateral(traj_points)) - vehicle_info.vehicle_width_m -
std::abs(object->get_dist_to_traj_lateral(traj_points)) - vehicle_info.vehicle_width_m / 2.0 -

Check warning on line 172 in planning/motion_velocity_planner/autoware_motion_velocity_planner_common_universe/src/utils.cpp

View check run for this annotation

Codecov / codecov/patch

planning/motion_velocity_planner/autoware_motion_velocity_planner_common_universe/src/utils.cpp#L172

Added line #L172 was not covered by tests
object_possible_max_dist;
return possible_min_dist_to_traj_poly;
}
Expand Down
Loading