Skip to content

Commit

Permalink
comments Steve
Browse files Browse the repository at this point in the history
  • Loading branch information
reinzor committed Sep 18, 2024
1 parent 6e5e0c3 commit e61bd07
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ ControllerServer::on_deactivate(const rclcpp_lifecycle::State & /*state*/)
costmap_ros_->deactivate();

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

remove_on_set_parameters_callback(dyn_params_handler_.get());
Expand Down Expand Up @@ -560,7 +557,7 @@ void ControllerServer::computeControl()
return;
} catch (nav2_core::ControllerTimedOut & e) {
RCLCPP_ERROR(this->get_logger(), "%s", e.what());
publishZeroVelocity();
onGoalExit();
std::shared_ptr<Action::Result> result = std::make_shared<Action::Result>();
result->error_code = Action::Result::CONTROLLER_TIMED_OUT;
action_server_->terminate_current(result);
Expand Down

0 comments on commit e61bd07

Please sign in to comment.