diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 69d920f352..bd89445aa5 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -518,6 +518,7 @@ void ControllerManager::init_distributed_sub_controller_manager() { // create node for publishing/subscribing rclcpp::NodeOptions node_options; + node_options.clock_type(rcl_clock_type_t::RCL_STEADY_TIME); distributed_pub_sub_node_ = std::make_shared( std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false); //try to add to executor @@ -567,6 +568,7 @@ void ControllerManager::init_distributed_central_controller_manager() if (!use_multiple_nodes()) { rclcpp::NodeOptions node_options; + node_options.clock_type(rcl_clock_type_t::RCL_STEADY_TIME); distributed_pub_sub_node_ = std::make_shared( std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false); //try to add to executor