Skip to content

Commit 34e09e1

Browse files
committed
Revert: reset speed limits after param change
Signed-off-by: Adi Vardi <adi.vardi@enway.ai>
1 parent dc5fa33 commit 34e09e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nav2_mppi_controller/src/optimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ void Optimizer::getParams()
122122
s.constraints = s.base_constraints;
123123

124124
setMotionModel(motion_model_name);
125-
// Don't reset zone-based speed limits after params changes
126-
parameters_handler_->addPostCallback([this]() {reset(false);});
125+
parameters_handler_->addPostCallback([this]() {reset();});
127126

128127
double controller_frequency;
129128
getParentParam(controller_frequency, "controller_frequency", 0.0, ParameterType::Static);

0 commit comments

Comments
 (0)