Skip to content
Snippets Groups Projects
Unverified Commit b008d916 authored by Steven Macenski's avatar Steven Macenski Committed by GitHub
Browse files

reset all goal checkers on cleanup state (#2354)

parent e7f58bca
No related branches found
No related tags found
No related merge requests found
......@@ -256,6 +256,8 @@ ControllerServer::on_cleanup(const rclcpp_lifecycle::State & state)
it->second->cleanup();
}
controllers_.clear();
goal_checkers_.clear();
costmap_ros_->on_cleanup(state);
// Release any allocated resources
......@@ -264,7 +266,6 @@ ControllerServer::on_cleanup(const rclcpp_lifecycle::State & state)
vel_publisher_.reset();
speed_limit_sub_.reset();
action_server_.reset();
goal_checkers_[current_goal_checker_]->reset();
return nav2_util::CallbackReturn::SUCCESS;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment