Skip to content

Commit

Permalink
nav2_costmap_2d: add missing default_value_ copy in Costmap2D operato…
Browse files Browse the repository at this point in the history
…r= (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 <[email protected]>
Signed-off-by: Jakubach <[email protected]>
  • Loading branch information
DylanDeCoeyer-Quimesis authored and Jakubach committed Nov 22, 2024
1 parent 8600df8 commit 743a788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_costmap_2d/src/costmap_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ Costmap2D & Costmap2D::operator=(const Costmap2D & map)
resolution_ = map.resolution_;
origin_x_ = map.origin_x_;
origin_y_ = map.origin_y_;
default_value_ = map.default_value_;

// initialize our various maps
initMaps(size_x_, size_y_);
Expand Down

0 comments on commit 743a788

Please sign in to comment.