Skip to content

Commit

Permalink
fix: fix angle diff calculation of mission_planner (autowarefoundatio…
Browse files Browse the repository at this point in the history
…n#772) (autowarefoundation#152)

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>

Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com>
Co-authored-by: Takeshi Miura <57553950+1222-takeshi@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com>
  • Loading branch information
5 people authored Dec 13, 2021
1 parent 514d14d commit 5ce9b56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions map/lanelet2_extension/lib/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,11 @@ bool query::getClosestLanelet(
if (angle_diff < min_angle) {
min_angle = angle_diff;
*closest_lanelet_ptr = llt;
} else if ((segment_angle - pose_yaw) < 1e-04) {
min_angle = std::abs(segment_angle - pose_yaw);
*closest_lanelet_ptr = llt;
}
/* else if ((segment_angle - pose_yaw) < 1e-04) {
min_angle = std::abs(segment_angle - pose_yaw);
*closest_lanelet_ptr = llt;
}*/
}
}

Expand Down

0 comments on commit 5ce9b56

Please sign in to comment.