Define RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE

Define Documentation

RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE(get_time_point, duration, ...)

Log a message with given severity with the following conditions:

  • The first log call is ignored but all subsequent calls are processed.

  • Log calls are ignored if the last logged message is not longer ago than the specified duration.

Note

The conditions will only be evaluated if this logging statement is enabled.

Parameters:
  • get_time_point[in] Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer.

  • duration[in] The duration of the throttle interval as an integral value in milliseconds.

  • ...[in] The format string, followed by the variable arguments for the format string