Function cras::frequency

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.