Skip to content

Commit

Permalink
handle dynamically changes in parameters.
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Solarte <johan.solarte@kiwibot.com>
  • Loading branch information
Sunart24 committed Jan 10, 2024
1 parent b4ea7f5 commit 33f80fd
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 33f80fd

Please sign in to comment.