diff --git a/nav2_costmap_2d/plugins/static_layer.cpp b/nav2_costmap_2d/plugins/static_layer.cpp index c067e1a0071..ac43c018673 100644 --- a/nav2_costmap_2d/plugins/static_layer.cpp +++ b/nav2_costmap_2d/plugins/static_layer.cpp @@ -496,9 +496,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(); } }