Skip to content

Commit 89f549a

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

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
@@ -131,7 +131,6 @@ void AstarSearch::setMap(const nav_msgs::msg::OccupancyGrid & costmap)
131131
AbstractPlanningAlgorithm::setMap(costmap);
132132

133133
x_scale_ = costmap_.info.height;
134-
graph_.reserve(100000);
135134
}
136135

137136
bool AstarSearch::makePlan(
@@ -141,6 +140,7 @@ bool AstarSearch::makePlan(
141140
goal_pose_ = global2local(costmap_, goal_pose);
142141

143142
clearNodes();
143+
graph_.reserve(100000);
144144

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

0 commit comments

Comments
 (0)