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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Jun 17, 2024
1 parent 7d2a538 commit c626514
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 270 deletions.
6 changes: 3 additions & 3 deletions tmp/lanelet2_extension/docs/lanelet2_format_extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ However, based on the current Autoware's usage of the centerline, there are seve
- The coordinate transformation on the lane's frenet frame cannot be calculated correctly.
- 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.

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

- `use_waypoints` is True
- `overwriteLaneletsCenterlineWithWaypoints`
- 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.
- Therefore, the above limitations can be solved, but the Autoware's usage of the centerline may be hard to understand.
- `use_waypoints` is False
- `overwriteLaneletsCenterline`
- 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.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ lanelet::ConstLanelets getExpandedLanelets(
* doesn't have enough quality
*/
void overwriteLaneletsCenterline(
lanelet::LaneletMapPtr lanelet_map, const double resolution, const bool use_waypoints,
lanelet::LaneletMapPtr lanelet_map, const double resolution = 5.0,
const bool force_overwrite = false);

void overwriteLaneletsCenterlineWithWaypoints(
lanelet::LaneletMapPtr lanelet_map, const double resolution = 5.0,
const bool force_overwrite = false);

lanelet::ConstLanelets getConflictingLanelets(
Expand Down
Loading

0 comments on commit c626514

Please sign in to comment.