Skip to content

Commit

Permalink
nav2_costmap_2d: add missing default_value_ copy in Costmap2D operator=
Browse files Browse the repository at this point in the history
default_value_ is an attribute of the Costmap2D class and should be
copied along with the other attributes.
  • Loading branch information
DylanDeCoeyer-Quimesis committed Nov 15, 2024
1 parent f426bda commit dcd8c41
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 dcd8c41

Please sign in to comment.