Skip to content

Commit

Permalink
fix: the print of the information in control node was in wrong order (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth authored Aug 28, 2024
1 parent 9eb64ad commit caa242f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions controller_manager/src/ros2_control_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,20 @@ int main(int argc, char ** argv)
"for details on how to enable realtime scheduling.",
errno, strerror(errno));
}
else
{
RCLCPP_INFO(
cm->get_logger(), "Successful set up FIFO RT scheduling policy with priority %i.",
kSchedPriority);
}
}
else
{
RCLCPP_INFO(
cm->get_logger(), "Successful set up FIFO RT scheduling policy with priority %i.",
kSchedPriority);
RCLCPP_WARN(
cm->get_logger(),
"No real-time kernel detected on this system. See "
"[https://control.ros.org/master/doc/ros2_control/controller_manager/doc/userdoc.html] "
"for details on how to enable realtime scheduling.");
}

// for calculating sleep time
Expand Down

0 comments on commit caa242f

Please sign in to comment.