Skip to content

Commit

Permalink
revert not typo
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Najjar <[email protected]>
  • Loading branch information
tonynajjar committed Dec 13, 2024
1 parent ff0d698 commit 0bc9ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_costmap_2d/src/costmap_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,9 @@ bool Costmap2D::saveMap(std::string file_name)
}

fprintf(fp, "P2\n%u\n%u\n%u\n", size_x_, size_y_, 0xff);
for (unsigned int it = 0; it < size_y_; iy++) {
for (unsigned int iy = 0; iy < size_y_; iy++) {
for (unsigned int ix = 0; ix < size_x_; ix++) {
unsigned char cost = getCost(ix, it);
unsigned char cost = getCost(ix, iy);
fprintf(fp, "%d ", cost);
}
fprintf(fp, "\n");
Expand Down

0 comments on commit 0bc9ccd

Please sign in to comment.