User-facing alternative of rosgraph_msgs/Log msg type
rosgraph_msgs/Log is a well-defined msg type for logging. However multiple sources discourage downstream packages to depend on it.
- Q-1. What downside can be expected if downstream project uses
rosgraph_msgs/Log
directly? I think by discouraging such a usage, API is free from guaranteeing stability. What else? - Q-2. In ROS either somewhere in core package suite or packages commonly used, are there alternative message types (so that downstream can avoid reintenting wheels and maintenance)?
From wiki.ros.org/rosgraph_msgs:
rosgraph_msgs contains message relating to the ROS Computation Graph. Most users are not expected to interact with messages in this package, and it is strongly advised against.
From rep-0100:
The Clock and Log msg files are not considered to be user facing. They are also specific to the ROS middleware implementation and would pollute a more generic ontology like std_msgs.
UPDATE: In response to clarification request,
Can you describe what use-case or requirement you're trying to cover/fullfil? It's unclear to me whether you are just looking to show some log messages to your users (in a UI perhaps) or something else.
I'm thinking generic module-to-module API level. So (well-)defined log level, log message (str) are useful. Some more medium to help conveying various other types of log messages is a plus. But yes, end usage of such API I have in mind is making non-engineer facing GUI to present troubleshoot info (to achieve that, our app wants to receive log topic (system-level info) then customize message content to end-user friendly content).
Asked by 130s on 2019-09-16 03:08:25 UTC
Comments
Can you describe what use-case or requirement you're trying to cover/fullfil? It's unclear to me whether you are just looking to show some log messages to your users (in a UI perhaps) or something else.
Asked by gvdhoorn on 2019-09-16 05:32:22 UTC
Updated to clarify my usecase, and also added Q-1.
Asked by 130s on 2019-09-17 20:37:46 UTC
module-to-module
!=
user facing?probably a custom UI, but not dissimilar from
rqt_console
?Asked by gvdhoorn on 2019-09-18 02:11:51 UTC
I meant API somewhere in intermediate location would allow the developers to build application with less restriction. Update OP to clarify
Asked by 130s on 2019-09-18 07:01:48 UTC