Skip to content

Commit

Permalink
Add dynamic parameter (#4319)
Browse files Browse the repository at this point in the history
To fix #4315

Signed-off-by: Huy Nguyen Van <34271857+Huyhust13@users.noreply.github.com>
  • Loading branch information
Huyhust13 authored May 9, 2024
1 parent 96d5646 commit 8f097af
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 @@ -122,6 +122,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 8f097af

Please sign in to comment.