Define RCLCPP_ERROR_STREAM_EXPRESSION

Define Documentation

RCLCPP_ERROR_STREAM_EXPRESSION(logger, expression, stream_arg)

Log a message with given severity with the following condition:

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

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

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

  • stream_arg – The argument << into a stringstream