Define RCLCPP_ERROR_EXPRESSION

Define Documentation

RCLCPP_ERROR_EXPRESSION(logger, expression, ...)

Log a message with given severity with the following condition:

  • Log calls are ignored when the expression evaluates to false.

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

  • expression – The expression determining if the message should be logged

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