Skip to content

Commit

Permalink
Update nav2_controller/src/controller_server.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Macenski <[email protected]>
Signed-off-by: Rein Appeldoorn <[email protected]>
  • Loading branch information
reinzor and SteveMacenski authored Sep 25, 2024
1 parent f72b994 commit d976db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ ControllerServer::on_deactivate(const rclcpp_lifecycle::State & /*state*/)
*/
costmap_ros_->deactivate();

// Always publish a zero velocity when deactivating the controller server
geometry_msgs::msg::TwistStamped velocity;
velocity.twist.angular.x = 0;
velocity.twist.angular.y = 0;
Expand Down

0 comments on commit d976db1

Please sign in to comment.