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 (autowarefoundation#7815)

change angle condition

Signed-off-by: beyza <[email protected]>
  • Loading branch information
beyzanurkaya authored and tby-udel committed Jul 14, 2024
1 parent 3bad3e6 commit 3a0f934
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 3a0f934

Please sign in to comment.