Function cras::safeWallRate

Function Documentation

::rclcpp::WallRate cras::safeWallRate(double frequency)

Return a rate representing the given frequency. If the frequency is zero or too small, return min/max representable rate.

Parameters:

frequency[in] The frequency to convert.

Returns:

The corresponding Rate object.