Skip to content

Commit

Permalink
add steady clock to nodes if one node for publishingis used
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth committed Jun 14, 2023
1 parent 59de6ff commit 3ad3fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<rclcpp_lifecycle::LifecycleNode>(
std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false);
//try to add to executor
Expand Down Expand Up @@ -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<rclcpp_lifecycle::LifecycleNode>(
std::string(get_name()) + "_pub_sub_node", get_namespace(), node_options, false);
//try to add to executor
Expand Down

0 comments on commit 3ad3fd3

Please sign in to comment.