Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

All ROS_CONSOLE macros have a version with postfix _NAMED, e. g.

ROS_INFO(  ... )

and

ROS_INFO_NAMED( name, ... )

(See your macros_generated.h; it should be in /opt/ros/indigo/include/rosconsole/macros_generated.h)

Calling ROS_INFO_NAMED with an name following the same args like a ROS_INFO call results in the same behaviour but the node name is overriden by the name you have given to it.

So you can easily always call ROS_INFO_NAMED, ROS_WARN_NAMED, ROS_INFO_STREAM_NAMED and so on with different names in both threads of your node and then open two instances of rqt_console and filter in both instances the messages by name....