Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
SteveMacenski authored and enricosutera committed May 19, 2024
1 parent da0266a commit 8d33a15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nav2_theta_star_planner/src/theta_star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,13 @@ void ThetaStar::resetContainers()

void ThetaStar::initializePosn(int size_inc)
{
int i = 0;

if (!node_position_.empty()) {
for (; i < size_x_ * size_y_; i++) {
for (int i = 0; i < size_x_ * size_y_; i++) {
node_position_[i] = nullptr;
}
}

for (; i < size_inc; i++) {
for (int i = 0; i < size_inc; i++) {
node_position_.push_back(nullptr);
}
}
Expand Down

0 comments on commit 8d33a15

Please sign in to comment.