Skip to content

Commit 8533f0f

Browse files
author
Takumi Ito
committed
small modification
Signed-off-by: Takumi Ito <takumi.ito@tier4.jp>
1 parent 0461798 commit 8533f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planning/autoware_freespace_planning_algorithms/src/astar_search.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ void AstarSearch::setMap(const nav_msgs::msg::OccupancyGrid & costmap)
132132
AbstractPlanningAlgorithm::setMap(costmap);
133133

134134
x_scale_ = costmap_.info.height;
135-
graph_.reserve(100000);
136135
}
137136

138137
bool AstarSearch::makePlan(
@@ -142,6 +141,7 @@ bool AstarSearch::makePlan(
142141
goal_pose_ = global2local(costmap_, goal_pose);
143142

144143
clearNodes();
144+
graph_.reserve(100000);
145145

146146
if (!setStartNode()) {
147147
return false;

0 commit comments

Comments
 (0)