ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ROS logging uses approach 1. All log messages are passed to /rosout.
The first approach is simple to implement as well. You just need a single subscriber topic and each node has to publish to one topic making the debugging easy as well if there is an issue.
Approach 2 may take up more bandwidth. Each new topic will take up a certain amount of bandwidth which may not be ideal if you are also passing bandwidth heavy information such as pointclouds/images.