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

Commit c626514

Browse files
committed
fix
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent 7d2a538 commit c626514

File tree

5 files changed

+275
-270
lines changed

5 files changed

+275
-270
lines changed

tmp/lanelet2_extension/docs/lanelet2_format_extension.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ However, based on the current Autoware's usage of the centerline, there are seve
492492
- The coordinate transformation on the lane's frenet frame cannot be calculated correctly.
493493
- For example, when the lateral distance between the actual road's centerline and a parked vehicle is calculated, actually the result will be the lateral distance between the (explicit) centerline and the vehicle.
494494

495-
To solve above limitations, the `overwriteLaneletsCenterline` has a `use_waypoints` flag where the centerline in all the lanes is calculated.
495+
To solve above limitations, the `overwriteLaneletsCenterlineWithWaypoints` was implemented in addition to `overwriteLaneletsCenterline` where the centerline in all the lanes is calculated.
496496

497-
- `use_waypoints` is True
497+
- `overwriteLaneletsCenterlineWithWaypoints`
498498
- The (explicit) centerline in the Lanelet2 map is converted to the new `waypoints` tag. This `waypoints` is only applied to the ego's path planning.
499499
- Therefore, the above limitations can be solved, but the Autoware's usage of the centerline may be hard to understand.
500-
- `use_waypoints` is False
500+
- `overwriteLaneletsCenterline`
501501
- The (explicit) centerline in the Lanelet2 map is used as it is. Easy to understand the Autoware's usage of the centerline, but we still have above limitations.

tmp/lanelet2_extension/include/lanelet2_extension/utility/utilities.hpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ lanelet::ConstLanelets getExpandedLanelets(
5656
* doesn't have enough quality
5757
*/
5858
void overwriteLaneletsCenterline(
59-
lanelet::LaneletMapPtr lanelet_map, const double resolution, const bool use_waypoints,
59+
lanelet::LaneletMapPtr lanelet_map, const double resolution = 5.0,
60+
const bool force_overwrite = false);
61+
62+
void overwriteLaneletsCenterlineWithWaypoints(
63+
lanelet::LaneletMapPtr lanelet_map, const double resolution = 5.0,
6064
const bool force_overwrite = false);
6165

6266
lanelet::ConstLanelets getConflictingLanelets(

0 commit comments

Comments
 (0)