Skip to content

Commit

Permalink
check if the CM is assosicated to an executor
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 23, 2025
1 parent e37e1fe commit 75f194c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ void ControllerManager::init_controller_manager()
[this]()
{
RCLCPP_INFO(get_logger(), "Shutdown request received....");
executor_->remove_node(this->get_node_base_interface());
if (this->get_node_base_interface()->get_associated_with_executor_atomic().load())
{
executor_->remove_node(this->get_node_base_interface());
}
executor_->cancel();
if (!this->shutdown_controllers())
{
Expand Down

0 comments on commit 75f194c

Please sign in to comment.