Function cras::frequency
Defined in File time_utils.hpp
Function Documentation
-
double cras::frequency(const ::rclcpp::Rate &rate, bool maxPeriodMeansZero = false)
Return the frequency represented by the given rate.
- Parameters:
rate – [in] The rate to convert.
maxPeriodMeansZero – [in] If true, return 0 frequency in case the rate’s cycle time is the maximum duration.
- Returns:
The frequency.