Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent realsense from show these logs #1185

Closed
5730289021-NN opened this issue Apr 29, 2020 · 8 comments
Closed

How to prevent realsense from show these logs #1185

5730289021-NN opened this issue Apr 29, 2020 · 8 comments

Comments

@5730289021-NN
Copy link

5730289021-NN commented Apr 29, 2020

Greeting everyone, may I have some little help here

My launch file is

<launch>
    <include file="$(find realsense2_camera)/launch/rs_camera.launch">
        <arg name="filters"             value="pointcloud"/>
        <arg name="depth_width"         value="640"/>
        <arg name="depth_height"        value="480"/>
        <arg name="enable_depth"        value="true"/>
        <arg name="clip_distance"       value="2.5"/>
	    
        <arg name="color_width"         value="640"/>
        <arg name="color_height"        value="480"/>
        <arg name="enable_color"        value="true"/>

        <arg name="enable_fisheye"      value="false"/>
        <arg name="enable_infra1"       value="false"/>
        <arg name="enable_infra2"       value="false"/>

        <arg name="device_type"         value="d435i"/>

        <arg name="depth_fps"           value="15"/>
        <arg name="color_fps"           value="15"/>
    </include>
</launch>

and now the launch file emitting logs like

 29/04 19:46:08,668 WARNING [140540339263232] (uvc-device.cpp:664) interrupt event received: 1, 3, 0, 7, 0, 13, 
[ WARN] [1588164368.882269952]: Hardware Notification:USB CAM overflow,1.58816e+12,Error,Hardware Error
 29/04 19:46:10,784 WARNING [140540339263232] (uvc-device.cpp:664) interrupt event received: 1, 3, 0, 7, 0, 13, 
[ WARN] [1588164370.913553904]: Hardware Notification:USB CAM overflow,1.58816e+12,Error,Hardware Error
 29/04 19:46:12,900 WARNING [140540607698688] (uvc-device.cpp:664) interrupt event received: 1, 3, 0, 7, 0, 13, 

How could I edit my launch file to suppress that?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 29, 2020

You could try using output="log"

This should send warnings to a log file in $ROS_HOME/log instead of the screen.

image

Somebody who tried this said that it hid the WARNING messages, though ERROR and FATAL type messages continued to be displayed onscreen.

If there is a warning / error message though then it is recommended to try to diagnose and correct it instead of hiding it.

It is unusual though that you are receiving 'USB CAM overflow' messages when using a low resolution and FPS speed like the ones defined in your launch file.

@5730289021-NN
Copy link
Author

Thank you for the solution. I thought it was normal to get those message since there were tons of them when I ran the launch file.

@MartyG-RealSense
Copy link
Collaborator

No, it's not normal. It suggests that something is overwhelming the USB port with data.

Someone who had the same problem when using the camera on a USB2 port resolved it by disabling the infrared streams by adding the instructions below to the roslaunch statement.

enable_infra1:=false enable_infra2:=false

@5730289021-NN
Copy link
Author

5730289021-NN commented Apr 29, 2020

I see, I'll figure out on that.
Furthermore, the output="log" can only be defined within node tag like <node name="listener1" output="log" /> but I think from this library structure it's better to manipulate within include tag or launch tag. I don't think putting inside here is a good idea

@MartyG-RealSense
Copy link
Collaborator

Good luck! Please feel welcome to come back to the RealSense ROS forum any time that you need to.

@5730289021-NN
Copy link
Author

5730289021-NN commented Apr 30, 2020

I see, I'll figure out on that.
Furthermore, the output="log" can only be defined within node tag like <node name="listener1" output="log" /> but I think from this library structure it's better to manipulate within include tag or launch tag. I don't think putting inside here is a good idea

Any idea on fixing the launch tag without adding “output” attribute to the <node> element directly?

@MartyG-RealSense
Copy link
Collaborator

The simplest methods that I could find to disable all logging are in the link below:

http://wiki.ros.org/rosconsole#Disable_all_logging

@5730289021-NN
Copy link
Author

Alright, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants