Ask Your Question
0

How to disable the output of one node

asked 2020-10-16 10:09:49 -0500

Hey everybody,

I'm using the usb_cam-package and this is sending a lot of error/info massages I don't want to see. The massages are not produced with ROS_ERROR but come from some included package (probably std::cout). The video stream is working regardless the error and I don't have the time to resolve the issue. I tried "Setting Verbosity Levels" from http://wiki.ros.org/roscpp/Overview/L... but it didn't work.

My question therefor is if it is possible to "mute" this node so that the node-output is not flooding my console? I still want to see the output of the other nodes.

Thank you

Robert

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-16 10:57:56 -0500

Roberto Z. gravatar image

updated 2020-10-16 10:59:53 -0500

Have you tried including output="log" inside the corresponding <node> tag in your launch file?

For instance

<launch>
  <node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="log"/>
</launch>

From the documentation at http://wiki.ros.org/roslaunch/XML/node:

output="log|screen"(optional)
If 'screen', stdout/stderr from the node will be sent to the screen. If 'log', the stdout/stderr output will be sent to a log file in $ROS_HOME/log, and stderr will continue to be sent to screen. The default is 'log'.

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

1 follower

Stats

Asked: 2020-10-16 10:09:49 -0500

Seen: 18 times

Last updated: Oct 16