Skip to content

Commit

Permalink
processed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
reinzor committed Sep 17, 2024
1 parent 377a049 commit 476aa82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ ControllerServer::on_deactivate(const rclcpp_lifecycle::State & /*state*/)
*/
costmap_ros_->deactivate();

onGoalExit();
publishZeroVelocity();
for (auto& controller : controllers_) {
controller.second->reset();
}
vel_publisher_->on_deactivate();

remove_on_set_parameters_callback(dyn_params_handler_.get());
Expand Down

0 comments on commit 476aa82

Please sign in to comment.