Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into autoware_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cyn-liu committed Mar 9, 2024
2 parents 03fb714 + ede5f15 commit 51791b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoware_utils/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<buildtool_depend>autoware_cmake</buildtool_depend>

<depend>builtin_interfaces</depend>
<depend>libboost-system-dev</depend>
<depend>rclcpp</depend>
<depend>unique_identifier_msgs</depend>

Expand Down
3 changes: 3 additions & 0 deletions tmp/lanelet2_extension/lib/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ lanelet::LineString3d getLineStringFromArcLength(
lanelet::Points3d points;
double accumulated_length = 0;
size_t start_index = linestring.size();
if (start_index == 0) {
return lanelet::LineString3d{lanelet::InvalId, points};
}
for (size_t i = 0; i < linestring.size() - 1; i++) {
const auto & p1 = linestring[i];
const auto & p2 = linestring[i + 1];
Expand Down

0 comments on commit 51791b8

Please sign in to comment.