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

perf(costmap_generator, scenario_selector): faster getLinkedParkingLot #7257

Closed
Closed
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
perf(costmap_generator, scenario_selector): faster getLinkedParkingLot
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
maxime-clem committed Jun 4, 2024
commit 4aa84e14031bb6e0e5dc186e08dd1dec49c11325
Original file line number Diff line number Diff line change
@@ -95,11 +95,9 @@ std::shared_ptr<lanelet::ConstPolygon3d> findNearestParkinglot(
const std::shared_ptr<lanelet::LaneletMap> & lanelet_map_ptr,
const lanelet::BasicPoint2d & current_position)
{
const auto all_parking_lots = lanelet::utils::query::getAllParkingLots(lanelet_map_ptr);

const auto linked_parking_lot = std::make_shared<lanelet::ConstPolygon3d>();
const auto result = lanelet::utils::query::getLinkedParkingLot(
current_position, all_parking_lots, linked_parking_lot.get());
current_position, lanelet_map_ptr, linked_parking_lot.get());

if (result) {
return linked_parking_lot;
Original file line number Diff line number Diff line change
@@ -41,11 +41,9 @@ std::shared_ptr<lanelet::ConstPolygon3d> findNearestParkinglot(
const std::shared_ptr<lanelet::LaneletMap> & lanelet_map_ptr,
const lanelet::BasicPoint2d & current_position)
{
const auto all_parking_lots = lanelet::utils::query::getAllParkingLots(lanelet_map_ptr);

const auto linked_parking_lot = std::make_shared<lanelet::ConstPolygon3d>();
const auto result = lanelet::utils::query::getLinkedParkingLot(
current_position, all_parking_lots, linked_parking_lot.get());
current_position, lanelet_map_ptr, linked_parking_lot.get());

if (result) {
return linked_parking_lot;