Skip to content

Commit 476aa82

Browse files
committed
processed comments
1 parent 377a049 commit 476aa82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎nav2_controller/src/controller_server.cpp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ ControllerServer::on_deactivate(const rclcpp_lifecycle::State & /*state*/)
300300
*/
301301
costmap_ros_->deactivate();
302302

303-
onGoalExit();
303+
publishZeroVelocity();
304+
for (auto& controller : controllers_) {
305+
controller.second->reset();
306+
}
304307
vel_publisher_->on_deactivate();
305308

306309
remove_on_set_parameters_callback(dyn_params_handler_.get());

0 commit comments

Comments
 (0)