Ask Your Question

ROS Logging Display Node Name

asked 2017-04-10 16:33:12 -0500


I'm very sorry if this is a repeat question, but I'm using robot_upstart which dumps all logging output into the single file /var/log/upstart/foo.log. This makes it really hard to tell which node is talking. I'm currently getting the generic error "Failed to open port" and I'm not sure how to figure out where this message is coming from.

Is there a way to get ROS logging to display to node name?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-10 17:01:27 -0500

Thomas D gravatar image

Use console output formatting. You can set that one time on the command line or add it to your ~/.bashrc file. For robot_upstart you might have to add it in a separate spot or make sure you are using the .bashrc of the appropriate user. To get the node name, log level, time and message you could have something like:

export ROSCONSOLE_FORMAT='[${severity}] - ${node}: [${time}] ${message}'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-04-10 16:33:12 -0500

Seen: 1,053 times

Last updated: Apr 10 '17