Skip to content

Commit 3ad3fd3

Browse files
committed
add steady clock to nodes if one node for publishingis used
1 parent 59de6ff commit 3ad3fd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controller_manager/src/controller_manager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ void ControllerManager::init_distributed_sub_controller_manager()
518518
{
519519
// create node for publishing/subscribing
520520
rclcpp::NodeOptions node_options;
521+
node_options.clock_type(rcl_clock_type_t::RCL_STEADY_TIME);
521522
distributed_pub_sub_node_ = std::make_shared<rclcpp_lifecycle::LifecycleNode>(
522523
std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false);
523524
//try to add to executor
@@ -567,6 +568,7 @@ void ControllerManager::init_distributed_central_controller_manager()
567568
if (!use_multiple_nodes())
568569
{
569570
rclcpp::NodeOptions node_options;
571+
node_options.clock_type(rcl_clock_type_t::RCL_STEADY_TIME);
570572
distributed_pub_sub_node_ = std::make_shared<rclcpp_lifecycle::LifecycleNode>(
571573
std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false);
572574
//try to add to executor

0 commit comments

Comments
 (0)