ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can do:
rclcpp::Clock ros_clock(RCL_ROS_TIME);
rclcpp::create_timer(this, ros_clock, std::chrono::milliseconds(1), std::bind(&NodeTest::doWork, this));
But that's from Eloquent onwards, although it might be in a Dashing patch release too.