Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cahnge to reszie
Browse files Browse the repository at this point in the history
stevedanomodolor committed Jan 25, 2025
1 parent f358765 commit b81f52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_smac_planner/src/a_star.cpp
Original file line number Diff line number Diff line change
@@ -590,7 +590,7 @@ void AStarAlgorithm<NodeT>::prepareGoalsForExpansion(
unsigned int & coarse_search_goal_size)
{
coarse_search_goal_size = _goals_vector.size() / _coarse_search_resolution;
goals_to_expand.reserve(_goals_vector.size());
goals_to_expand.resize(_goals_vector.size());
for (unsigned int i = 0; i < coarse_search_goal_size; i++) {
unsigned int index = i * _coarse_search_resolution;
goals_to_expand[i] = _goals_vector[index];

0 comments on commit b81f52e

Please sign in to comment.