ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can get the period of the Rate object using the period() method which is the the inverse of the "expectedCycleTime". The API was changed to be clearer about exactly what that datatype is returning. A cycle time is not clearly a rate.

You can get the period of the Rate object using the period() method which is the the inverse of the "expectedCycleTime". The API was changed to be clearer about exactly what that datatype is returning. A cycle time is not clearly a rate.

API docs: http://docs.ros2.org/eloquent/api/rclcpp/classrclcpp_1_1GenericRate.html