Skip to content

Commit

Permalink
fix(motion_velocity_planner_common): fix the calc_possible_min_dist_f…
Browse files Browse the repository at this point in the history
…rom_obj_to_traj_poly calculation (#10059)

* fix(motion_velocity_planner_common): fix the calc_possible_min_dist_from_obj_to_traj_poly calculation

Signed-off-by: Takayuki Murooka <[email protected]>

* update maintainer

Signed-off-by: Takayuki Murooka <[email protected]>

---------

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Feb 7, 2025
1 parent 08b007c commit 8ae14aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 @@ double calc_possible_min_dist_from_obj_to_traj_poly(
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 -
object_possible_max_dist;
return possible_min_dist_to_traj_poly;
}
Expand Down

0 comments on commit 8ae14aa

Please sign in to comment.