Skip to content

Commit

Permalink
fix(lanelet2_extension): fix getCurrentLanelets() (autowarefoundation…
Browse files Browse the repository at this point in the history
…#1318)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored and yukke42 committed Oct 14, 2022
1 parent f160bc4 commit cdb38c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map/lanelet2_extension/lib/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ bool query::getCurrentLanelets(

lanelet::BasicPoint2d search_point(search_pose.position.x, search_pose.position.y);
for (const auto & llt : lanelets) {
if (!lanelet::geometry::inside(llt, search_point)) {
if (lanelet::geometry::inside(llt, search_point)) {
current_lanelets_ptr->push_back(llt);
}
}
Expand Down

0 comments on commit cdb38c8

Please sign in to comment.