ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to add the node name in warning or fatal message?

asked 2011-07-15 23:38:15 -0600

sam gravatar image

updated 2011-07-15 23:39:20 -0600

Because I use a launch file to launch many nodes. If there exist any method to output the message with corresponding node name, it will be easier to debug. Thank you~

example of unknown node name

 [ WARN] [1310816065.685614719]: Costmap2DROS transform timeout. Current time: 1310816065.6855, global_pose stamp: 1310816065.0186, tolerance: 0.3000
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-16 02:10:26 -0600

dornhege gravatar image

Check section 7 of rosconsole. You can include the node name in the output format.

edit flag offensive delete link more


Thanks~~I figured out the answer such as : export ROSCONSOLE_FORMAT='${severity}:${node}:${file}:${function}:${time}:${message}'
sam gravatar image sam  ( 2011-07-16 22:49:28 -0600 )edit

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: 2011-07-15 23:38:15 -0600

Seen: 441 times

Last updated: Jul 16 '11