Skip to content

Commit

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

Signed-off-by: Huy Nguyen Van <34271857+Huyhust13@users.noreply.github.com>
  • Loading branch information
Huyhust13 authored and RBT22 committed Sep 26, 2024
1 parent de8a403 commit a0fb4ad
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 a0fb4ad

Please sign in to comment.