40 double frequency(const ::ros::Rate& rate,
bool maxCycleTimeMeansZero =
false);
48 double frequency(const ::ros::WallRate& rate,
bool maxCycleTimeMeansZero =
false);
83 bool operator==(const ::ros::Rate& r1, const ::ros::Rate& r2);
91 bool operator==(const ::ros::WallRate& r1, const ::ros::WallRate& r2);
::ros::WallDuration operator*(const ::ros::WallDuration &val1, const ::ros::WallDuration &val2)
Multiply two durations. The units of the result are [s^2].
::ros::Duration remainingTime(const ::ros::Time &query, double timeout)
Return remaining time to timeout from the query time.
double frequency(const ::ros::Rate &rate, bool maxCycleTimeMeansZero=false)
Return the frequency represented by the given rate.
::ros::WallDuration operator/(const ::ros::WallDuration &numerator, const ::ros::WallDuration &denominator)
Divide duration val1 by val2. The result is unitless.
::ros::Rate safeRate(double frequency)
Return a rate representing the given frequency. If the frequency is zero or too small, return min/max representable rate.
bool operator==(const ::ros::WallRate &r1, const ::ros::WallRate &r2)
Test two rates for equality.
::ros::WallRate safeWallRate(double frequency)
Return a rate representing the given frequency. If the frequency is zero or too small, return min/max representable rate.
::ros::Time nowFallbackToWall()
Return current ROS time if it has already been initialized, or current wall time. ...