Skip to content

Commit

Permalink
fix(tier4_planning_rviz_plugin): fix calculation of drivable area bou…
Browse files Browse the repository at this point in the history
…nds (#7815)

change angle condition

Signed-off-by: beyza <[email protected]>
  • Loading branch information
beyzanurkaya authored Jul 3, 2024
1 parent c9aa86c commit aebbcc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void visualizeBound(

const float diff_angle =
autoware::universe_utils::normalizeRadian(normal_vector_angle - curr_to_next_angle);
if (diff_angle == 0.0) {
if (diff_angle <= 1e-7 && diff_angle >= -1e-7) {
return std::make_pair(normal_vector_angle, width);
}

Expand Down

0 comments on commit aebbcc5

Please sign in to comment.