Skip to content

Commit

Permalink
fix path bound cut issue
Browse files Browse the repository at this point in the history
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
  • Loading branch information
mitukou1109 committed Feb 18, 2025
1 parent 10a346a commit 6e1d40b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions planning/autoware_path_generator/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,16 @@ std::vector<geometry_msgs::msg::Point> get_path_bound(
if (s < s_bound_start) {
continue;
}

if (path_bound.empty()) {
const auto interpolated_point =
lanelet::geometry::interpolatedPointAtDistance(lanelet_bound, s_bound_start);
path_bound.push_back(
lanelet::utils::conversion::toGeomMsgPt(lanelet::utils::to3D(interpolated_point)));
continue;
} else {
path_bound.push_back(lanelet::utils::conversion::toGeomMsgPt(*it));
}
path_bound.push_back(lanelet::utils::conversion::toGeomMsgPt(*it));

if (s >= s_bound_end) {
const auto interpolated_point =
lanelet::geometry::interpolatedPointAtDistance(lanelet_bound, s_bound_end);
Expand Down

0 comments on commit 6e1d40b

Please sign in to comment.