We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7493322 commit f9e907cCopy full SHA for f9e907c
planning/autoware_freespace_planning_algorithms/src/astar_search.cpp
@@ -129,9 +129,7 @@ AstarSearch::AstarSearch(
129
void AstarSearch::setMap(const nav_msgs::msg::OccupancyGrid & costmap)
130
{
131
AbstractPlanningAlgorithm::setMap(costmap);
132
-
133
- clearNodes();
134
+
135
x_scale_ = costmap_.info.height;
136
graph_.reserve(100000);
137
}
@@ -142,6 +140,8 @@ bool AstarSearch::makePlan(
142
140
start_pose_ = global2local(costmap_, start_pose);
143
141
goal_pose_ = global2local(costmap_, goal_pose);
144
+ clearNodes();
145
if (!setStartNode()) {
146
return false;
147
0 commit comments