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= (#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]>
  • Loading branch information
DylanDeCoeyer-Quimesis authored Nov 18, 2024
1 parent f426bda commit e52ea5d
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 e52ea5d

Please sign in to comment.