Skip to content

Commit

Permalink
perf(dynamic_obstacle_stop): construct rtree nodes in place (autoware…
Browse files Browse the repository at this point in the history
…foundation#7753)

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed Jul 11, 2024
1 parent 82aea7b commit bb2fdcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void make_ego_footprint_rtree(EgoData & ego_data, const PlannerParam & params)
for (auto i = 0UL; i < ego_data.trajectory_footprints.size(); ++i) {
const auto box = boost::geometry::return_envelope<autoware::universe_utils::Box2d>(
ego_data.trajectory_footprints[i]);
rtree_nodes.push_back(std::make_pair(box, i));
rtree_nodes.emplace_back(box, i);
}
ego_data.rtree = Rtree(rtree_nodes);
}
Expand Down

0 comments on commit bb2fdcd

Please sign in to comment.