Skip to content

Commit

Permalink
Fix dynamic callback for footprint clearing enable (#4885) (#4886)
Browse files Browse the repository at this point in the history
the else condition is a duplication of the one before and was so never
executed.

Signed-off-by: Georg Flick <[email protected]>
(cherry picked from commit 447c8ce)

Co-authored-by: Georg Flick <[email protected]>
  • Loading branch information
mergify[bot] and georgflick authored Jan 30, 2025
1 parent 861ee25 commit 359c744
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nav2_costmap_2d/plugins/static_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,7 @@ StaticLayer::dynamicParametersCallback(
height_ = size_y_;
has_updated_data_ = true;
current_ = false;
}
} else if (param_type == ParameterType::PARAMETER_BOOL) {
if (param_name == name_ + "." + "footprint_clearing_enabled") {
} else if (param_name == name_ + "." + "footprint_clearing_enabled") {
footprint_clearing_enabled_ = parameter.as_bool();
}
}
Expand Down

0 comments on commit 359c744

Please sign in to comment.