Skip to content

Commit

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

Signed-off-by: Huy Nguyen Van <[email protected]>
  • Loading branch information
Huyhust13 authored May 9, 2024
1 parent 96d5646 commit 6d2ae4e
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 6d2ae4e

Please sign in to comment.