Skip to content

Commit e584207

Browse files
Sunart24enricosutera
authored andcommitted
handle dynamically changes in parameters. (ros-navigation#4046)
Signed-off-by: Sebastian Solarte <johan.solarte@kiwibot.com> Signed-off-by: enricosutera <enricosutera@outlook.com>
1 parent 644def0 commit e584207

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
@@ -123,6 +123,8 @@ void Optimizer::reset()
123123
control_history_[2] = {0.0, 0.0, 0.0};
124124
control_history_[3] = {0.0, 0.0, 0.0};
125125

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

0 commit comments

Comments
 (0)