Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lanelet2_extension): add query for bicycle_lane #29

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ lanelet::ConstLanelets walkwayLanelets(const lanelet::ConstLanelets & lls);
* @return [shoulder lanelets]
*/
lanelet::ConstLanelets shoulderLanelets(const lanelet::ConstLanelets & lls);

/**
* [bicycleLaneLanelets extracts shoulder lanelets]
* @param lls [input lanelets possibly with subtype bicycle_lane]
* @return [shoulder lanelets]
*/
lanelet::ConstLanelets bicycleLaneLanelets(const lanelet::ConstLanelets & lls);

/**
* [trafficLights extracts Traffic Light regulatory element from lanelets]
* @param lanelets [input lanelets]
Expand Down
5 changes: 5 additions & 0 deletions autoware_lanelet2_extension/lib/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
return subtypeLanelets(lls, "road_shoulder");
}

lanelet::ConstLanelets bicycleLaneLanelets(const lanelet::ConstLanelets & lls)

Check warning on line 75 in autoware_lanelet2_extension/lib/query.cpp

View check run for this annotation

Codecov / codecov/patch

autoware_lanelet2_extension/lib/query.cpp#L75

Added line #L75 was not covered by tests
{
return subtypeLanelets(lls, "bicycle_lane");

Check warning on line 77 in autoware_lanelet2_extension/lib/query.cpp

View check run for this annotation

Codecov / codecov/patch

autoware_lanelet2_extension/lib/query.cpp#L77

Added line #L77 was not covered by tests
}

std::vector<lanelet::TrafficLightConstPtr> trafficLights(const lanelet::ConstLanelets & lanelets)
{
std::vector<lanelet::TrafficLightConstPtr> tl_reg_elems;
Expand Down
Loading