Skip to content

Commit 359c744

Browse files
Fix dynamic callback for footprint clearing enable (#4885) (#4886)
the else condition is a duplication of the one before and was so never executed. Signed-off-by: Georg Flick <georg.flick@enway.ai> (cherry picked from commit 447c8ce) Co-authored-by: Georg Flick <54032815+georgflick@users.noreply.github.com>
1 parent 861ee25 commit 359c744

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
@@ -502,9 +502,7 @@ StaticLayer::dynamicParametersCallback(
502502
height_ = size_y_;
503503
has_updated_data_ = true;
504504
current_ = false;
505-
}
506-
} else if (param_type == ParameterType::PARAMETER_BOOL) {
507-
if (param_name == name_ + "." + "footprint_clearing_enabled") {
505+
} else if (param_name == name_ + "." + "footprint_clearing_enabled") {
508506
footprint_clearing_enabled_ = parameter.as_bool();
509507
}
510508
}

0 commit comments

Comments
 (0)