Skip to content

Commit

Permalink
handle dynamically changes in parameters. (#4046)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Solarte <[email protected]>
  • Loading branch information
Sunart24 authored Jan 11, 2024
1 parent 370dbfd commit 569f167
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav2_mppi_controller/src/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ void Optimizer::reset()
control_history_[2] = {0.0, 0.0, 0.0};
control_history_[3] = {0.0, 0.0, 0.0};

settings_.constraints = settings_.base_constraints;

costs_ = xt::zeros<float>({settings_.batch_size});
generated_trajectories_.reset(settings_.batch_size, settings_.time_steps);

Expand Down

0 comments on commit 569f167

Please sign in to comment.