IntelRealSense / realsense-ros

ROS Wrapper for Intel(R) RealSense(TM) Cameras
http://wiki.ros.org/RealSense
Apache License 2.0
2.59k stars 1.76k forks source link

Problem of D435i running with Ubuntu 20.04 and ROS1 Noetic. Help me plz. #3224

Closed byeongjun-YU closed 2 weeks ago

byeongjun-YU commented 1 month ago

---------------------------------- Question ---------------------------------- Hello. I tried to run D435i with Ubuntu 20.04 and ROS1 Noetic. However, I failed with some reasons as shown below.

What is the cause ? How can I run D435i ?

Also, I know that Intel realsense does not support ROS1. Currently, is it never possible to use D435i in my environment ? Is there any way to run D435i with Ubuntu 20.04 and ROS1 Noetic ??? (For example, using old version of ROS1 Wrapper or Realsense SKD.)

SUMMARY

---------------------------------- My terminal ----------------------------------
$ roslaunch realsense2_camera rs_camera.launch filters:=pointcloud

... logging to /home/byeong/.ros/log/70b64880-86ca-11ef-a5d2-bfb6448840c3/roslaunch-jun-36560.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://jun:33191/

PARAMETERS

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

auto-starting new master process[master]: started with pid [36569] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 70b64880-86ca-11ef-a5d2-bfb6448840c3 process[rosout-1]: started with pid [36581] started core service [/rosout] process[camera/realsense2_camera_manager-2]: started with pid [36588] process[camera/realsense2_camera-3]: started with pid [36589] [ INFO] [1728538950.920198784]: Initializing nodelet with 8 worker threads. [ INFO] [1728538950.991186464]: RealSense ROS v2.3.2 [ INFO] [1728538950.991214961]: Built with LibRealSense v2.50.0 [ INFO] [1728538950.991226736]: Running with LibRealSense v2.50.0 [ INFO] [1728538951.015363411]:
[ INFO] [1728538951.246169863]: Device with serial number 215322078943 was found.

[ INFO] [1728538951.246269687]: Device with physical ID 3-4.2-6 was found. [ INFO] [1728538951.246304064]: Device with name Intel RealSense D435I was found. [ INFO] [1728538951.247272435]: Device with port number 3-4.2 was found. [ INFO] [1728538951.247616616]: Device USB type: 2.1 [ WARN] [1728538951.247661174]: Device 215322078943 is connected using a 2.1 port. Reduced performance is expected.

[ INFO] [1728538951.273390888]: JSON file is not provided [ INFO] [1728538951.273412052]: ROS Node Namespace: camera [ INFO] [1728538951.273421236]: Device Name: Intel RealSense D435I [ INFO] [1728538951.273426646]: Device Serial No: 215322078943 [ INFO] [1728538951.273432430]: Device physical port: 3-4.2-6 [ INFO] [1728538951.273437540]: Device FW version: 05.14.00.00 [ INFO] [1728538951.273443014]: Device Product ID: 0x0B3A [ INFO] [1728538951.273447857]: Enable PointCloud: On [ INFO] [1728538951.273453238]: Align Depth: Off [ INFO] [1728538951.273458174]: Sync Mode: On [ INFO] [1728538951.273498242]: Device Sensors: [ INFO] [1728538951.361686552]: Stereo Module was found. [ INFO] [1728538951.375104152]: RGB Camera was found. [ INFO] [1728538951.375196828]: Motion Module was found. [ INFO] [1728538951.375223131]: (Confidence, 0) sensor isn't supported by current device! -- Skipping... [ INFO] [1728538951.375244120]: Add Filter: pointcloud [ INFO] [1728538951.375639691]: num_filters: 1 [ INFO] [1728538951.375657183]: 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) [ INFO] [1728538954.263469171]: Done Setting Dynamic reconfig parameters. [ INFO] [1728538954.263878885]: depth stream is enabled - width: 640, height: 480, fps: 15, Format: Z16 [ INFO] [1728538954.264271590]: color stream is enabled - width: 640, height: 480, fps: 15, Format: RGB8

[ INFO] [1728538954.266329305]: Expected frequency for depth = 15.00000 [ INFO] [1728538954.294548491]: Expected frequency for color = 15.00000

10/10 14:42:34,517 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 [ INFO] [1728538954.567708371]: SELECTED BASE:Depth, 0 [ INFO] [1728538954.577146386]: RealSense Node Is Up! 10/10 14:42:34,682 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: Success, number: 0 10/10 14:42:34,733 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: Success, number: 0 [ WARN] [1728538954.754272612]: 10/10 14:42:34,784 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:34,835 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:34,886 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:34,937 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:34,988 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,039 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,090 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,141 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,191 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,242 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,293 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,344 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,395 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,446 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,496 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,547 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,598 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,649 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,700 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,750 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,801 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,846 ERROR [139810010281728] (uvc-streamer.cpp:106) uvc streamer watchdog triggered on endpoint: 130 10/10 14:42:35,852 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,903 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:35,954 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:36,005 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:36,056 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:36,108 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:36,159 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 [ WARN] [1728538956.265165535]: Hardware Notification:Depth stream start failure,1.72854e+12,Error,Hardware Error 10/10 14:42:36,919 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:36,970 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,123 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,173 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,325 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,375 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,527 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0 10/10 14:42:37,577 WARNING [139810429720320] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Success, number: 0

hellovuong commented 1 month ago

[ INFO] [1728538951.247616616]: Device USB type: 2.1 [ WARN] [1728538951.247661174]: Device 215322078943 is connected using a 2.1 port. Reduced performance is expected.

You are using USB2. You should use the cable provided along with the camera and plug it into a USB3 port on your computer.

MartyG-RealSense commented 1 month ago

Hi @byeongjun-YU The RealSense ROS1 wrapper does support D435i. However, the ROS1 wrapper has ceased development and so has not been updated for use with recent RealSense SDK (librealsense) versions. The recommended librealsense version for use with the wrapper is 2.50.0 or 2.51.1, and the recommended firmware version is 5.13.0.50. I note that you are using firmware 5.14.0.0. I do not think the firmware version is the problem in this particular case though, and you are also correctly using librealsense 2.50.0.

As @hellovuong mentioned, your USB connection speed is being detected as the slow '2.1' instead of the much faster USB 3.1 or 3.2. Whilst librealsense and the ROS wrapper can work on a slow USB 2.1 connection, problems like the control_transfer returned one that your log is generating are more likely to occur.

I note that you have the pointcloud filter enabled in your rs_camera.launch instruction. Please try instead publishing a pointcloud using the rs_rgbd.launch launch file using the instructions at https://github.com/IntelRealSense/realsense-ros/issues/3026#issuecomment-1972741737


@hellovuong Thanks so much for providing advice to @byeongjun-YU - though the connection being 2.1 does not necessarily mean that the official USB3 cable supplied with the camera is not being used. It could mean that the launch is not correctly detecting the USB connection type, or the camera is plugged into a USB 2.1 hub.

MartyG-RealSense commented 4 weeks ago

Hi @byeongjun-YU Do you require further assistance with this case, please? Thanks!

MartyG-RealSense commented 2 weeks ago

Case closed due to no further comments received.