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