error reporting: ROS_ERROR or error topic
What is best practice for reporting global errors throughout ROS?
One option is to report errors through ROS_ERROR only.
A node could then subscribe to /rosout_agg
to receive and parse the error messages.
The advantage would be that I get the topic and macros for free, and the messages even contain the posting node etc.
Disadvantage is that I need to discard a lot of messages with info level and debug level. And if I need things like an error code, I need to encode this in the log message text.
Another option is of course to create a dedicated topic for reporting errors and warnings. All nodes in the system then needs to publish to this topic.
Any advice appreciated, thanks.