Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize map size information during map initialization (ros-navig…
…ation#4015) * Update costmap size configuration This commit updates the costmap_2d.cpp file to fix a bug where the costmap size wasn't appropriately updated. Two new lines of code have been added to ensure the size of the costmap is correctly configured each time it's instantiated. * Refactor costmap size assignment in Costmap2D class The code refactor eliminates the direct mutation of the size_x_ and size_y_ attributes in the Costmap2D class. Instead, the class uses the size of cells provided during initialization and calculation from map coordinates for better encapsulation and clarity. Signed-off-by: gg <[email protected]>
- Loading branch information