Skip to content

Commit 447c8ce

Browse files
authored
Fix dynamic callback for footprint clearing enable (#4885)
the else condition is a duplication of the one before and was so never executed. Signed-off-by: Georg Flick <georg.flick@enway.ai>
1 parent dcc5db5 commit 447c8ce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nav2_costmap_2d/plugins/static_layer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,7 @@ StaticLayer::dynamicParametersCallback(
496496
height_ = size_y_;
497497
has_updated_data_ = true;
498498
current_ = false;
499-
}
500-
} else if (param_type == ParameterType::PARAMETER_BOOL) {
501-
if (param_name == name_ + "." + "footprint_clearing_enabled") {
499+
} else if (param_name == name_ + "." + "footprint_clearing_enabled") {
502500
footprint_clearing_enabled_ = parameter.as_bool();
503501
}
504502
}

0 commit comments

Comments
 (0)