Skip to content

Commit a785ade

Browse files
DylanDeCoeyer-QuimesisJakubach
authored andcommitted
nav2_costmap_2d: add missing default_value_ copy in Costmap2D operator= (ros-navigation#4753)
default_value_ is an attribute of the Costmap2D class and should be copied along with the other attributes. Signed-off-by: Dylan De Coeyer <dylan.decoeyer@quimesis.be> Signed-off-by: Jakubach <jakubach@gmail.com>
1 parent 76c8080 commit a785ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎nav2_costmap_2d/src/costmap_2d.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ Costmap2D & Costmap2D::operator=(const Costmap2D & map)
219219
resolution_ = map.resolution_;
220220
origin_x_ = map.origin_x_;
221221
origin_y_ = map.origin_y_;
222+
default_value_ = map.default_value_;
222223

223224
// initialize our various maps
224225
initMaps(size_x_, size_y_);

0 commit comments

Comments
 (0)