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

Setting Dynamic reconfig parameters does not return. #3162

Open
axkoenig opened this issue Jul 11, 2024 · 19 comments
Open

Setting Dynamic reconfig parameters does not return. #3162

axkoenig opened this issue Jul 11, 2024 · 19 comments
Labels

Comments

@axkoenig
Copy link

axkoenig commented Jul 11, 2024

System

Required Info
Camera Model D455
Firmware Version 05.12.06.00
Operating System & Version Ubuntu 20.04
Kernel Version (Linux Only) 5.15.0-113-generic
Platform PC
Librealsense SDK Version LibRealSense v2.50.0
Language roslaunch
Segment Robot
ROS Distro Noetic
RealSense ROS Wrapper Version RealSense ROS v2.3.2

Issue Description

Hi,

I am connecting my Realsense D455 to an USB 3.2 port. I installed the ROS wrapper via sudo apt-get install ros-noetic-realsense2-camera. Unfortunately roslaunch realsense2_camera rs_camera.launch hangs at the point where it's "Setting Dynamic reconfig parameters". I waited for at least half an hour and nothing is happening. From other posts I see the next print on my screen should be Done Setting Dynamic reconfig parameters., so I assume it has something to do with those.

Also the (Confidence, 0) sensor isn't supported by current device! -- Skipping... seems intriguing, could this be the issue?

I also tried the D435 and have the same issue.

Could you please help me out?

roslaunch realsense2_camera rs_camera.launch
... logging to /home/koenig/.ros/log/00f82b28-3f7e-11ef-a2c4-33bec58c79ba/roslaunch-turian-6719.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://130.149.238.230:36199/

SUMMARY
========

PARAMETERS
 * /camera/realsense2_camera/accel_fps: -1
 * /camera/realsense2_camera/accel_frame_id: camera_accel_frame
 * /camera/realsense2_camera/accel_optical_frame_id: camera_accel_opti...
 * /camera/realsense2_camera/align_depth: False
 * /camera/realsense2_camera/aligned_depth_to_color_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye1_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye2_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_infra1_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_infra2_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/allow_no_texture_points: False
 * /camera/realsense2_camera/base_frame_id: camera_link
 * /camera/realsense2_camera/calib_odom_file: 
 * /camera/realsense2_camera/clip_distance: -2.0
 * /camera/realsense2_camera/color_fps: -1
 * /camera/realsense2_camera/color_frame_id: camera_color_frame
 * /camera/realsense2_camera/color_height: -1
 * /camera/realsense2_camera/color_optical_frame_id: camera_color_opti...
 * /camera/realsense2_camera/color_width: -1
 * /camera/realsense2_camera/confidence_fps: -1
 * /camera/realsense2_camera/confidence_height: -1
 * /camera/realsense2_camera/confidence_width: -1
 * /camera/realsense2_camera/depth_fps: -1
 * /camera/realsense2_camera/depth_frame_id: camera_depth_frame
 * /camera/realsense2_camera/depth_height: -1
 * /camera/realsense2_camera/depth_optical_frame_id: camera_depth_opti...
 * /camera/realsense2_camera/depth_width: -1
 * /camera/realsense2_camera/device_type: 
 * /camera/realsense2_camera/enable_accel: False
 * /camera/realsense2_camera/enable_color: True
 * /camera/realsense2_camera/enable_confidence: True
 * /camera/realsense2_camera/enable_depth: True
 * /camera/realsense2_camera/enable_fisheye1: False
 * /camera/realsense2_camera/enable_fisheye2: False
 * /camera/realsense2_camera/enable_fisheye: False
 * /camera/realsense2_camera/enable_gyro: False
 * /camera/realsense2_camera/enable_infra1: False
 * /camera/realsense2_camera/enable_infra2: False
 * /camera/realsense2_camera/enable_infra: False
 * /camera/realsense2_camera/enable_pointcloud: False
 * /camera/realsense2_camera/enable_pose: False
 * /camera/realsense2_camera/enable_sync: False
 * /camera/realsense2_camera/filters: 
 * /camera/realsense2_camera/fisheye1_frame_id: camera_fisheye1_f...
 * /camera/realsense2_camera/fisheye1_optical_frame_id: camera_fisheye1_o...
 * /camera/realsense2_camera/fisheye2_frame_id: camera_fisheye2_f...
 * /camera/realsense2_camera/fisheye2_optical_frame_id: camera_fisheye2_o...
 * /camera/realsense2_camera/fisheye_fps: -1
 * /camera/realsense2_camera/fisheye_frame_id: camera_fisheye_frame
 * /camera/realsense2_camera/fisheye_height: -1
 * /camera/realsense2_camera/fisheye_optical_frame_id: camera_fisheye_op...
 * /camera/realsense2_camera/fisheye_width: -1
 * /camera/realsense2_camera/gyro_fps: -1
 * /camera/realsense2_camera/gyro_frame_id: camera_gyro_frame
 * /camera/realsense2_camera/gyro_optical_frame_id: camera_gyro_optic...
 * /camera/realsense2_camera/imu_optical_frame_id: camera_imu_optica...
 * /camera/realsense2_camera/infra1_frame_id: camera_infra1_frame
 * /camera/realsense2_camera/infra1_optical_frame_id: camera_infra1_opt...
 * /camera/realsense2_camera/infra2_frame_id: camera_infra2_frame
 * /camera/realsense2_camera/infra2_optical_frame_id: camera_infra2_opt...
 * /camera/realsense2_camera/infra_fps: 30
 * /camera/realsense2_camera/infra_height: 480
 * /camera/realsense2_camera/infra_rgb: False
 * /camera/realsense2_camera/infra_width: 848
 * /camera/realsense2_camera/initial_reset: False
 * /camera/realsense2_camera/json_file_path: 
 * /camera/realsense2_camera/linear_accel_cov: 0.01
 * /camera/realsense2_camera/odom_frame_id: camera_odom_frame
 * /camera/realsense2_camera/ordered_pc: False
 * /camera/realsense2_camera/pointcloud_texture_index: 0
 * /camera/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR
 * /camera/realsense2_camera/pose_frame_id: camera_pose_frame
 * /camera/realsense2_camera/pose_optical_frame_id: camera_pose_optic...
 * /camera/realsense2_camera/publish_odom_tf: True
 * /camera/realsense2_camera/publish_tf: True
 * /camera/realsense2_camera/reconnect_timeout: 6.0
 * /camera/realsense2_camera/rosbag_filename: 
 * /camera/realsense2_camera/serial_no: 
 * /camera/realsense2_camera/stereo_module/exposure/1: 7500
 * /camera/realsense2_camera/stereo_module/exposure/2: 1
 * /camera/realsense2_camera/stereo_module/gain/1: 16
 * /camera/realsense2_camera/stereo_module/gain/2: 16
 * /camera/realsense2_camera/tf_publish_rate: 0.0
 * /camera/realsense2_camera/topic_odom_in: odom_in
 * /camera/realsense2_camera/unite_imu_method: 
 * /camera/realsense2_camera/usb_port_id: 
 * /camera/realsense2_camera/wait_for_device_timeout: -1.0
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /camera/
    realsense2_camera (nodelet/nodelet)
    realsense2_camera_manager (nodelet/nodelet)

ROS_MASTER_URI=http://130.149.238.245:11311

process[camera/realsense2_camera_manager-1]: started with pid [6727]
process[camera/realsense2_camera-2]: started with pid [6728]
[ INFO] [1720699602.706466916]: Initializing nodelet with 12 worker threads.
[ INFO] [1720699602.910383275]: RealSense ROS v2.3.2
[ INFO] [1720699602.910410454]: Built with LibRealSense v2.50.0
[ INFO] [1720699602.910422477]: Running with LibRealSense v2.50.0
[ INFO] [1720699602.955211387]:  
[ INFO] [1720699603.103662505]: Device with serial number 105322252242 was found.

[ INFO] [1720699603.103697371]: Device with physical ID 2-3-2 was found.
[ INFO] [1720699603.103711063]: Device with name Intel RealSense D455 was found.
[ INFO] [1720699603.104154720]: Device with port number 2-3 was found.
[ INFO] [1720699603.104180605]: Device USB type: 3.2
[ INFO] [1720699603.107581888]: getParameters...
[ INFO] [1720699603.232748026]: setupDevice...
[ INFO] [1720699603.232771051]: JSON file is not provided
[ INFO] [1720699603.232780777]: ROS Node Namespace: camera
[ INFO] [1720699603.232793171]: Device Name: Intel RealSense D455
[ INFO] [1720699603.232803551]: Device Serial No: 105322252242
[ INFO] [1720699603.232812411]: Device physical port: 2-3-2
[ INFO] [1720699603.232821714]: Device FW version: 05.12.06.00
[ INFO] [1720699603.232831500]: Device Product ID: 0x0B5C
[ INFO] [1720699603.232842122]: Enable PointCloud: Off
[ INFO] [1720699603.232853126]: Align Depth: Off
[ INFO] [1720699603.232863385]: Sync Mode: Off
[ INFO] [1720699603.232910222]: Device Sensors: 
[ INFO] [1720699603.320586343]: Stereo Module was found.
[ INFO] [1720699603.351170797]: RGB Camera was found.
[ INFO] [1720699603.351287092]: Motion Module was found.
[ INFO] [1720699603.351358948]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720699603.351382960]: num_filters: 0
[ INFO] [1720699603.351397518]: Setting Dynamic reconfig parameters.
# no more output after this ... 
@axkoenig
Copy link
Author

If I kill the launch and re-run I always get

[ INFO] [1720702238.518320891]: Initializing nodelet with 12 worker threads.
[ INFO] [1720702238.607218796]: RealSense ROS v2.3.2
[ INFO] [1720702238.607248606]: Built with LibRealSense v2.50.0
[ INFO] [1720702238.607270336]: Running with LibRealSense v2.50.0
[ INFO] [1720702238.651819144]:  
 11/07 14:50:38,764 WARNING [139640124208896] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: Success, number: 0
 11/07 14:50:38,915 WARNING [139640124208896] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: Success, number: 0

Only when I reboot, I can re-run the launch file up until the Setting Dynamic reconfig parameters point.

@MartyG-RealSense
Copy link
Collaborator

Hi @axkoenig Please try installing dynamic_reconfigure for Noetic manually using the command below to see whether it makes a difference to your launch.

sudo apt install ros-noetic-ddynamic-reconfigure

@axkoenig
Copy link
Author

Hey, thanks for the quick response! I entered your command, and got 0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded., so everything is up-to-date. I re-ran, same problem unfortunately.

@MartyG-RealSense
Copy link
Collaborator

You are very welcome. :)

I note that your camera firmware driver version is 5.12.6.0. This firmware is designed for the very old librealsense SDK version 2.36.0. For librealsense version 2.50,0, firmware version 5.13.0.50 should be installed in your camera. Please try updating your firmware version.

@axkoenig
Copy link
Author

Ok thanks for the pointer. Do I need to install librealsense from source to get rs-fw-update -l? Currently I have these

dpkg -l | grep "realsense"
ii  ros-noetic-librealsense2                      2.50.0-1focal.20211115.134455         amd64        Library for capturing data from the Intel(R) RealSense(TM) SR300, D400, L500 Depth cameras and T2xx Tracking devices.
ii  ros-noetic-realsense2-camera                  2.3.2-1focal.20240111.183800          amd64        RealSense Camera package allowing access to Intel T265 Tracking module and SR300 and D400 3D cameras

And I get

rs-fw-update -l 
rs-fw-update: command not found

Sorry, I'm a realsense newbie ;)

@MartyG-RealSense
Copy link
Collaborator

It's no trouble at all. Everyone was new once. :)

The command sudo apt-get install ros-noetic-realsense2-camera installs both librealsense and the ROS1 wrapper at the same time. Unfortunately, this installation method does not include the RealSense Viewer tool, which would make it easy to update the firmware.

I do not know what other tools might be omitted by this install method. You could check in the Ubuntu folder usr/local/bin whether rs-fw-update has been installed there.

@axkoenig
Copy link
Author

I've done the firmware upgrade after installing librealsense from source, but the issue still persists, unfortunately. I do get pretty pictures from the camera in RealSenseViewer though.

[ INFO] [1720707557.317667676]: Built with LibRealSense v2.50.0
[ INFO] [1720707557.317680916]: Running with LibRealSense v2.50.0
[ INFO] [1720707557.361942992]:  
[ INFO] [1720707557.509222345]: Device with serial number 105322252242 was found.

[ INFO] [1720707557.509248355]: Device with physical ID 2-4-5 was found.
[ INFO] [1720707557.509258295]: Device with name Intel RealSense D455 was found.
[ INFO] [1720707557.509569616]: Device with port number 2-4 was found.
[ INFO] [1720707557.509584866]: Device USB type: 3.2
[ INFO] [1720707557.514891984]: getParameters...
[ INFO] [1720707557.615157223]: setupDevice...
[ INFO] [1720707557.615183453]: JSON file is not provided
[ INFO] [1720707557.615196663]: ROS Node Namespace: camera
[ INFO] [1720707557.615211853]: Device Name: Intel RealSense D455
[ INFO] [1720707557.615225303]: Device Serial No: 105322252242
[ INFO] [1720707557.615238923]: Device physical port: 2-4-5
[ INFO] [1720707557.615250173]: Device FW version: 05.13.00.50
[ INFO] [1720707557.615260643]: Device Product ID: 0x0B5C
[ INFO] [1720707557.615276853]: Enable PointCloud: Off
[ INFO] [1720707557.615292163]: Align Depth: Off
[ INFO] [1720707557.615303123]: Sync Mode: Off
[ INFO] [1720707557.615345394]: Device Sensors: 
[ INFO] [1720707557.717908661]: Stereo Module was found.
[ INFO] [1720707557.747527218]: RGB Camera was found.
[ INFO] [1720707557.747645348]: Motion Module was found.
[ INFO] [1720707557.747713948]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720707557.747734088]: num_filters: 0
[ INFO] [1720707557.747746758]: Setting Dynamic reconfig parameters. # stuck

@axkoenig
Copy link
Author

Ok now I installed the newest version of the Firmware via the RealSenseViewer, and now I am getting slightly more - does this output help?

[ INFO] [1720708382.061823842]: Device FW version: 05.16.00.01
[ INFO] [1720708382.061834881]: Device Product ID: 0x0B5C
[ INFO] [1720708382.061846101]: Enable PointCloud: Off
[ INFO] [1720708382.061858011]: Align Depth: Off
[ INFO] [1720708382.061867920]: Sync Mode: Off
[ INFO] [1720708382.061907439]: Device Sensors: 
[ INFO] [1720708382.178653541]: Stereo Module was found.
[ INFO] [1720708382.208167364]: RGB Camera was found.
[ INFO] [1720708382.208285489]: Motion Module was found.
[ INFO] [1720708382.208354517]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720708382.208377336]: num_filters: 0
[ INFO] [1720708382.208391165]: Setting Dynamic reconfig parameters.
hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)

@MartyG-RealSense
Copy link
Collaborator

5.16.0.1 should not be used with SDK 2.50.0 and wrapper 2.3.2, though there are sometimes cases where it does work even though it shouldn't.

Does it make a difference if you add initial_reset:=true to your roslaunch instruction to reset the camera at launch.

@axkoenig
Copy link
Author

Ok I am back on the version you recommended. No, unfortunately it makes no difference.

[ INFO] [1720713299.845479547]: Initializing nodelet with 12 worker threads.
[ INFO] [1720713300.071174897]: RealSense ROS v2.3.2
[ INFO] [1720713300.071201356]: Built with LibRealSense v2.50.0
[ INFO] [1720713300.071212736]: Running with LibRealSense v2.50.0
[ INFO] [1720713300.117358562]:  
[ INFO] [1720713300.363596058]: Device with serial number 105322252242 was found.

[ INFO] [1720713300.363626488]: Device with physical ID 2-3-4 was found.
[ INFO] [1720713300.363638497]: Device with name Intel RealSense D455 was found.
[ INFO] [1720713300.363973269]: Device with port number 2-3 was found.
[ INFO] [1720713300.363993299]: Device USB type: 3.2
[ INFO] [1720713300.364011628]: Resetting device...
[ INFO] [1720713306.469897214]:  
[ INFO] [1720713306.625407806]: Device with serial number 105322252242 was found.

[ INFO] [1720713306.625440265]: Device with physical ID 2-3-5 was found.
[ INFO] [1720713306.625450185]: Device with name Intel RealSense D455 was found.
[ INFO] [1720713306.625704860]: Device with port number 2-3 was found.
[ INFO] [1720713306.625717120]: Device USB type: 3.2
[ INFO] [1720713306.629064143]: getParameters...
[ INFO] [1720713306.726669657]: setupDevice...
[ INFO] [1720713306.726689966]: JSON file is not provided
[ INFO] [1720713306.726701986]: ROS Node Namespace: camera
[ INFO] [1720713306.726717776]: Device Name: Intel RealSense D455
[ INFO] [1720713306.726732865]: Device Serial No: 105322252242
[ INFO] [1720713306.726746525]: Device physical port: 2-3-5
[ INFO] [1720713306.726759455]: Device FW version: 05.13.00.50
[ INFO] [1720713306.726775774]: Device Product ID: 0x0B5C
[ INFO] [1720713306.726790154]: Enable PointCloud: Off
[ INFO] [1720713306.726801984]: Align Depth: Off
[ INFO] [1720713306.726815124]: Sync Mode: Off
[ INFO] [1720713306.726854033]: Device Sensors: 
[ INFO] [1720713306.821201743]: Stereo Module was found.
[ INFO] [1720713306.849730086]: RGB Camera was found.
[ INFO] [1720713306.849847523]: Motion Module was found.
[ INFO] [1720713306.849920022]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720713306.849940912]: num_filters: 0
[ INFO] [1720713306.849954201]: Setting Dynamic reconfig parameters.

:-(((

Could the sensor isn't supported by current device! be a reason?

@MartyG-RealSense
Copy link
Collaborator

The message (Confidence, 0) sensor isn't supported by current device! is not important as it refers to a feature that is only available on the RealSense T265 camera model, which is why it is unsupported on your launch. It does not prevent your D455 launch from working.

If the same problem with getting stuck on dynamic reconfigure also occurs with your D435 then it is likely to be a software issue rather than a camera hardware one.

Let's try a different launch method - an RGBD launch instead of rs_camera. First, you will need to install support for an RGBD launch on Noetic using the command below.

sudo apt-get install ros-noetic-rgbd-launch

Then launch using the rs_rgbd.launch file.

roslaunch realsense2_camera rs_rgbd.launch

@axkoenig
Copy link
Author

Hey so I tried this on three different Cameras D455, D435 and D435i and I have the same problem with all of them. My colleagues have the same setup (same kernel, same ros versions, same librealsense version) and it works for them without a problem, so it isn't a problem of the camera.

Another intriguing thing is that once I kill the roslaunch that seems stuck, the camera won't ever re-connect - it only shows No RealSense devices were found! even though the device is connected. I need to reboot my machine for it to pick up the Realsense again and even recognize it.

One more intriguing thing is that if I just unplug the USB cable while it's stuck on Setting Dynamic reconfig parameters it does seem to continue executing the script! But probably this is only because of how print statements are handled low-level. Just wanted to bring that up here, maybe it is a pointer to you.

[ INFO] [1720771513.350792257]: Device Name: Intel RealSense D435I
[ INFO] [1720771513.350804467]: Device Serial No: 939622074251
[ INFO] [1720771513.350813467]: Device physical port: 2-3-2
[ INFO] [1720771513.350821627]: Device FW version: 05.13.00.50
[ INFO] [1720771513.350832467]: Device Product ID: 0x0B3A
[ INFO] [1720771513.350843217]: Enable PointCloud: Off
[ INFO] [1720771513.350859807]: Align Depth: Off
[ INFO] [1720771513.350869876]: Sync Mode: Off
[ INFO] [1720771513.350916506]: Device Sensors: 
[ INFO] [1720771513.476485603]: Stereo Module was found.
[ INFO] [1720771513.505556051]: RGB Camera was found.
[ INFO] [1720771513.505662050]: Motion Module was found.
[ INFO] [1720771513.505733389]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720771513.505758299]: num_filters: 0
[ INFO] [1720771513.505775569]: Setting Dynamic reconfig parameters. 

# (stuck for at least 5 mins, then I unplug USB)

 12/07 10:05:33,141 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,155 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,161 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,168 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,175 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 603, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,182 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,191 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 703, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:33,198 WARNING [139726828861184] (messenger-libusb.cpp:42) control_transfer returned error, index: 603, error: No such device, number: 13
get_data_usb failed, error: RS2_USB_STATUS_NO_DEVICE
[ INFO] [1720771533.220115739]: Done Setting Dynamic reconfig parameters.
[ INFO] [1720771533.221594340]: depth stream is enabled - width: 848, height: 480, fps: 30, Format: Z16
[ INFO] [1720771533.222807922]: color stream is enabled - width: 1280, height: 720, fps: 30, Format: RGB8
[ INFO] [1720771533.222827842]: setupPublishers...
[ INFO] [1720771533.227872629]: Expected frequency for depth = 30.00000
[ INFO] [1720771533.298806784]: Expected frequency for color = 30.00000
[ INFO] [1720771533.336116275]: setupStreams...
 12/07 10:05:33,422 WARNING [139727013402368] (messenger-libusb.cpp:92) usb_request_queue returned error, endpoint: 87 error: No such device, number: 13
 12/07 10:05:33,422 WARNING [139727013402368] (uvc-device.cpp:183) rs_uvc_device exception in listen_to_interrupts method: failed to submit interrupt request, error: RS2_USB_STATUS_OTHER
[ERROR] [1720771533.430944336]: An exception has been thrown: usb device disconnected
[ERROR] [1720771533.430999126]: Exception: usb device disconnected
 12/07 10:05:33,422 WARNING [139727013402368] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: No such device, number: 13
 12/07 10:05:34,220 ERROR [139727013402368] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:34,220 ERROR [139726979831552] (sensor.cpp:572) acquire_power failed: failed to set power state
 12/07 10:05:34,220 ERROR [139726979831552] (error-handling.cpp:78) Error during polling error handler: failed to set power state
[ERROR] [1720771535.045122417]: The device has been disconnected!
[ERROR] [1720771535.051227209]: Exception: stop_streaming() failed. UVC device is not streaming!
[ERROR] [1720771535.051264688]: Exception: stop_streaming() failed. UVC device is not streaming!
[ERROR] [1720771535.101752048]: Exception: failed to set power state
 12/07 10:05:35,101 ERROR [139727013402368] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:35,101 ERROR [139727272064768] (sensor.cpp:572) acquire_power failed: failed to set power state
 12/07 10:05:35,220 ERROR [139727013402368] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_NO_DEVICE
 12/07 10:05:35,220 ERROR [139726979831552] (sensor.cpp:572) acquire_power failed: failed to set power state
 12/07 10:05:35,220 ERROR [139726979831552] (error-handling.cpp:78) Error during polling error handler: failed to set power state
[ WARN] [1720771536.139171536]: No RealSense devices were found!
[ WARN] [1720771542.156073505]: No RealSense devices were found!
[ WARN] [1720771548.172118563]: No RealSense devices were found!

@MartyG-RealSense
Copy link
Collaborator

The log warnings Exception: usb device disconnected and failed to open usb interface indicate that the launch is aware that the camera has been disconnected and therefore cannot be accessed.

If your colleagues used the exact same installation procedure that you did and with the same configuration, are they also using the exact same model of computer that you are?

@axkoenig
Copy link
Author

For RGBD I have exactly the same problem, unfortunately...

roslaunch realsense2_camera rs_rgbd.launch

... logging to /home/koenig/.ros/log/298f4e66-403e-11ef-a2c4-33bec58c79ba/roslaunch-turian-8596.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://130.149.238.230:38709/

SUMMARY
========

PARAMETERS
 * /camera/color_rectify_color/queue_size: 5
 * /camera/realsense2_camera/accel_fps: -1
 * /camera/realsense2_camera/accel_frame_id: camera_accel_frame
 * /camera/realsense2_camera/accel_optical_frame_id: camera_accel_opti...
 * /camera/realsense2_camera/align_depth: True
 * /camera/realsense2_camera/aligned_depth_to_color_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye1_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye2_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_fisheye_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_infra1_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/aligned_depth_to_infra2_frame_id: camera_aligned_de...
 * /camera/realsense2_camera/allow_no_texture_points: False
 * /camera/realsense2_camera/base_frame_id: camera_link
 * /camera/realsense2_camera/calib_odom_file: 
 * /camera/realsense2_camera/clip_distance: -1.0
 * /camera/realsense2_camera/color_fps: -1
 * /camera/realsense2_camera/color_frame_id: camera_color_frame
 * /camera/realsense2_camera/color_height: -1
 * /camera/realsense2_camera/color_optical_frame_id: camera_color_opti...
 * /camera/realsense2_camera/color_width: -1
 * /camera/realsense2_camera/confidence_fps: 30
 * /camera/realsense2_camera/confidence_height: 480
 * /camera/realsense2_camera/confidence_width: 640
 * /camera/realsense2_camera/depth_fps: -1
 * /camera/realsense2_camera/depth_frame_id: camera_depth_frame
 * /camera/realsense2_camera/depth_height: -1
 * /camera/realsense2_camera/depth_optical_frame_id: camera_depth_opti...
 * /camera/realsense2_camera/depth_width: -1
 * /camera/realsense2_camera/device_type: 
 * /camera/realsense2_camera/enable_accel: False
 * /camera/realsense2_camera/enable_color: True
 * /camera/realsense2_camera/enable_confidence: True
 * /camera/realsense2_camera/enable_depth: True
 * /camera/realsense2_camera/enable_fisheye1: False
 * /camera/realsense2_camera/enable_fisheye2: False
 * /camera/realsense2_camera/enable_fisheye: False
 * /camera/realsense2_camera/enable_gyro: False
 * /camera/realsense2_camera/enable_infra1: False
 * /camera/realsense2_camera/enable_infra2: False
 * /camera/realsense2_camera/enable_infra: False
 * /camera/realsense2_camera/enable_pointcloud: False
 * /camera/realsense2_camera/enable_pose: False
 * /camera/realsense2_camera/enable_sync: True
 * /camera/realsense2_camera/filters: 
 * /camera/realsense2_camera/fisheye1_frame_id: camera_fisheye1_f...
 * /camera/realsense2_camera/fisheye1_optical_frame_id: camera_fisheye1_o...
 * /camera/realsense2_camera/fisheye2_frame_id: camera_fisheye2_f...
 * /camera/realsense2_camera/fisheye2_optical_frame_id: camera_fisheye2_o...
 * /camera/realsense2_camera/fisheye_fps: -1
 * /camera/realsense2_camera/fisheye_frame_id: camera_fisheye_frame
 * /camera/realsense2_camera/fisheye_height: -1
 * /camera/realsense2_camera/fisheye_optical_frame_id: camera_fisheye_op...
 * /camera/realsense2_camera/fisheye_width: -1
 * /camera/realsense2_camera/gyro_fps: -1
 * /camera/realsense2_camera/gyro_frame_id: camera_gyro_frame
 * /camera/realsense2_camera/gyro_optical_frame_id: camera_gyro_optic...
 * /camera/realsense2_camera/imu_optical_frame_id: camera_imu_optica...
 * /camera/realsense2_camera/infra1_frame_id: camera_infra1_frame
 * /camera/realsense2_camera/infra1_optical_frame_id: camera_infra1_opt...
 * /camera/realsense2_camera/infra2_frame_id: camera_infra2_frame
 * /camera/realsense2_camera/infra2_optical_frame_id: camera_infra2_opt...
 * /camera/realsense2_camera/infra_fps: -1
 * /camera/realsense2_camera/infra_height: -1
 * /camera/realsense2_camera/infra_rgb: False
 * /camera/realsense2_camera/infra_width: -1
 * /camera/realsense2_camera/initial_reset: False
 * /camera/realsense2_camera/json_file_path: 
 * /camera/realsense2_camera/linear_accel_cov: 0.01
 * /camera/realsense2_camera/odom_frame_id: camera_odom_frame
 * /camera/realsense2_camera/ordered_pc: False
 * /camera/realsense2_camera/pointcloud_texture_index: 0
 * /camera/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR
 * /camera/realsense2_camera/pose_frame_id: camera_pose_frame
 * /camera/realsense2_camera/pose_optical_frame_id: camera_pose_optic...
 * /camera/realsense2_camera/publish_odom_tf: True
 * /camera/realsense2_camera/publish_tf: True
 * /camera/realsense2_camera/reconnect_timeout: 6.0
 * /camera/realsense2_camera/rosbag_filename: 
 * /camera/realsense2_camera/serial_no: 
 * /camera/realsense2_camera/stereo_module/exposure/1: 7500
 * /camera/realsense2_camera/stereo_module/exposure/2: 1
 * /camera/realsense2_camera/stereo_module/gain/1: 16
 * /camera/realsense2_camera/stereo_module/gain/2: 16
 * /camera/realsense2_camera/tf_publish_rate: 0.0
 * /camera/realsense2_camera/topic_odom_in: camera/odom_in
 * /camera/realsense2_camera/unite_imu_method: none
 * /camera/realsense2_camera/usb_port_id: 
 * /camera/realsense2_camera/wait_for_device_timeout: -1.0
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /camera/
    color_rectify_color (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    realsense2_camera (nodelet/nodelet)
    realsense2_camera_manager (nodelet/nodelet)

ROS_MASTER_URI=http://130.149.238.245:11311

process[camera/realsense2_camera_manager-1]: started with pid [8604]
process[camera/realsense2_camera-2]: started with pid [8605]
process[camera/color_rectify_color-3]: started with pid [8606]
process[camera/points_xyzrgb_hw_registered-4]: started with pid [8607]
[ INFO] [1720782152.414078632]: Initializing nodelet with 12 worker threads.
[ INFO] [1720782152.626440733]: RealSense ROS v2.3.2
[ INFO] [1720782152.626467283]: Built with LibRealSense v2.50.0
[ INFO] [1720782152.626479343]: Running with LibRealSense v2.50.0
[ INFO] [1720782152.675551392]:  
[ INFO] [1720782152.910499103]: Device with serial number 105322252242 was found.

[ INFO] [1720782152.910527523]: Device with physical ID 2-3-2 was found.
[ INFO] [1720782152.910537634]: Device with name Intel RealSense D455 was found.
[ INFO] [1720782152.910877699]: Device with port number 2-3 was found.
[ INFO] [1720782152.910895410]: Device USB type: 3.2
[ INFO] [1720782152.948027695]: getParameters...
[ INFO] [1720782153.062032089]: setupDevice...
[ INFO] [1720782153.062059230]: JSON file is not provided
[ INFO] [1720782153.062072400]: ROS Node Namespace: camera
[ INFO] [1720782153.062088820]: Device Name: Intel RealSense D455
[ INFO] [1720782153.062101420]: Device Serial No: 105322252242
[ INFO] [1720782153.062120271]: Device physical port: 2-3-2
[ INFO] [1720782153.062145461]: Device FW version: 05.13.00.50
[ INFO] [1720782153.062158331]: Device Product ID: 0x0B5C
[ INFO] [1720782153.062175272]: Enable PointCloud: Off
[ INFO] [1720782153.062193222]: Align Depth: On
[ INFO] [1720782153.062205392]: Sync Mode: On
[ INFO] [1720782153.062292584]: Device Sensors: 
[ INFO] [1720782153.168570516]: Stereo Module was found.
[ INFO] [1720782153.199489446]: RGB Camera was found.
[ INFO] [1720782153.199612729]: Motion Module was found.
[ INFO] [1720782153.199679930]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1720782153.200014115]: num_filters: 1
[ INFO] [1720782153.200039886]: Setting Dynamic reconfig parameters.



@axkoenig
Copy link
Author

axkoenig commented Jul 12, 2024 via email

@MartyG-RealSense
Copy link
Collaborator

What could be interpreted from this is that if you all followed the same installation procedure and have the same software and the same versions but it works on their computers but not yours, there could be a conflict with your model of computer specifically.

When you built librealsense from source, did you build it with CMake? If you did, then did you include the flag -DFORCE_RSUSB_BACKEND=TRUE in the CMake build instruction?

An RSUSB = true source code build of librealsense - described at IntelRealSense/librealsense#9931 (comment) - is not dependent on Linux versions or kernel versions and does not need to have a kernel patch applied to it, so it is very good in situations where the computer hardware is exotic (not typical of a shop-bought PC) or when librealsense may be conflicting with the kernel.

@MartyG-RealSense
Copy link
Collaborator

Hi @axkoenig Do you require further assistance with this case, please? Thanks!

@axkoenig
Copy link
Author

Hi,
thanks for following up! The problem still persists, and in the meantime I switched to an old ASUS Xtion.. This is far from ideal, I would love to get the Realsense working, but I'm puzzled ...

For the librealsense installation I initially followed these docs. I just added cmake ../ -DFORCE_RSUSB_BACKEND=TRUE before installing and it did not make a difference. In fact, I have another strange behaviour in the Realsenseviewer (which I also experienced before) where I start it from the command line

realsense-viewer 
 18/07 19:16:14,431 INFO [140389761197952] (context.cpp:116) ... 5-2-3
 18/07 19:16:14,431 INFO [140389761197952] (context.cpp:128) Found 1 RealSense devices (0xff requested & 0xff from device-mask in settings)

and it finds the realsense as shown in the command line. But then in the Realsenseviewer the device is not displayed. When I reboot the machine it works (a single time) but when I disconnect the camera and re-connect I have the same problem... Maybe this rings a bell?
image

@MartyG-RealSense
Copy link
Collaborator

Thanks very much for the additional information.

How does the camera behave in the Viewer if you launch it in sudo admin permissions mode with sudo realsense-viewer

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

No branches or pull requests

2 participants