Define RCLCPP_INFO_SKIPFIRST_THROTTLE

Define Documentation

RCLCPP_INFO_SKIPFIRST_THROTTLE(logger, clock, 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.

Parameters:
  • logger – The rclcpp::Logger to use

  • clockrclcpp::Clock that will be used to get the time point.

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

  • ... – The format string, followed by the variable arguments for the format string.