Skip to content

Commit 8f097af

Browse files
authored
Add dynamic parameter (#4319)
To fix #4315 Signed-off-by: Huy Nguyen Van <34271857+Huyhust13@users.noreply.github.com>
1 parent 96d5646 commit 8f097af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nav2_mppi_controller/src/optimizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ void Optimizer::reset()
122122
control_history_[2] = {0.0, 0.0, 0.0};
123123
control_history_[3] = {0.0, 0.0, 0.0};
124124

125+
settings_.constraints = settings_.base_constraints;
126+
125127
costs_ = xt::zeros<float>({settings_.batch_size});
126128
generated_trajectories_.reset(settings_.batch_size, settings_.time_steps);
127129

0 commit comments

Comments
 (0)