We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0266a commit 8d33a15Copy full SHA for 8d33a15
nav2_theta_star_planner/src/theta_star.cpp
@@ -248,15 +248,13 @@ void ThetaStar::resetContainers()
248
249
void ThetaStar::initializePosn(int size_inc)
250
{
251
- int i = 0;
252
-
253
if (!node_position_.empty()) {
254
- for (; i < size_x_ * size_y_; i++) {
+ for (int i = 0; i < size_x_ * size_y_; i++) {
255
node_position_[i] = nullptr;
256
}
257
258
259
- for (; i < size_inc; i++) {
+ for (int i = 0; i < size_inc; i++) {
260
node_position_.push_back(nullptr);
261
262
0 commit comments