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

error control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11 while trying slam #1663

Closed
demoncoderad opened this issue Feb 3, 2021 · 16 comments

Comments

@demoncoderad
Copy link

Hey!
So I am trying to do a slam thingy. I am doing this for a showcase currently (i'll use the D435 and T265 for more after my exams) where I just have to show that it can walk around and it gives in text the directions for going from x point in map to a point y. That I somehow am able to do with help of https://neilyoung.serveblog.net/ But I wish to have Object avoidance, and when I saw this I thought this might be quick easy way to get it done. But im facing some problems, after installing this and running roslaunch realsense2_camera rs_camera.launch i get a warning 03/02 20:30:26,300 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11 and it doesn't go further. I would appreciate some help. I'm using Ubuntu 18.04 and installed with the same steps just changing ros-kinetic to ros-melodic.
here's the full output
`
... logging to /home/adityarc/.ros/log/833fd1a6-6630-11eb-b16a-dc85dea045af/roslaunch-pop-os-6296.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://pop-os:34391/

SUMMARY

PARAMETERS

  • /camera/realsense2_camera/accel_fps: 250
  • /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: 30
  • /camera/realsense2_camera/color_frame_id: camera_color_frame
  • /camera/realsense2_camera/color_height: 480
  • /camera/realsense2_camera/color_optical_frame_id: camera_color_opti...
  • /camera/realsense2_camera/color_width: 640
  • /camera/realsense2_camera/confidence_fps: 30
  • /camera/realsense2_camera/confidence_height: 480
  • /camera/realsense2_camera/confidence_width: 640
  • /camera/realsense2_camera/depth_fps: 30
  • /camera/realsense2_camera/depth_frame_id: camera_depth_frame
  • /camera/realsense2_camera/depth_height: 480
  • /camera/realsense2_camera/depth_optical_frame_id: camera_depth_opti...
  • /camera/realsense2_camera/depth_width: 640
  • /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: 30
  • /camera/realsense2_camera/fisheye_frame_id: camera_fisheye_frame
  • /camera/realsense2_camera/fisheye_height: 480
  • /camera/realsense2_camera/fisheye_optical_frame_id: camera_fisheye_op...
  • /camera/realsense2_camera/fisheye_width: 640
  • /camera/realsense2_camera/gyro_fps: 400
  • /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: 640
  • /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/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/rosbag_filename:
  • /camera/realsense2_camera/serial_no:
  • /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:
  • /rosdistro: melodic
  • /rosversion: 1.14.10

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

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

setting /run_id to 833fd1a6-6630-11eb-b16a-dc85dea045af
process[rosout-1]: started with pid [6321]
started core service [/rosout]
process[camera/realsense2_camera_manager-2]: started with pid [6324]
process[camera/realsense2_camera-3]: started with pid [6325]
[ INFO] [1612364417.421709404]: Initializing nodelet with 2 worker threads.
[ INFO] [1612364423.415631857]: RealSense ROS v2.2.21
[ INFO] [1612364423.415943751]: Built with LibRealSense v2.41.0
[ INFO] [1612364423.416156711]: Running with LibRealSense v2.41.0
[ INFO] [1612364423.445426621]:
[ INFO] [1612364423.626210386]: Device with serial number 927522072103 was found.

[ INFO] [1612364423.626391562]: Device with physical ID 3-1-4 was found.
[ INFO] [1612364423.626481639]: Device with name Intel RealSense D435 was found.
[ INFO] [1612364423.627252090]: Device with port number 3-1 was found.
[ INFO] [1612364423.627343695]: Device USB type: 2.1
[ WARN] [1612364423.627440190]: Device 927522072103 is connected using a 2.1 port. Reduced performance is expected.
[ INFO] [1612364423.649062062]: getParameters...
[ INFO] [1612364423.742118620]: setupDevice...
[ INFO] [1612364423.742172830]: JSON file is not provided
[ INFO] [1612364423.742196098]: ROS Node Namespace: camera
[ INFO] [1612364423.742333286]: Device Name: Intel RealSense D435
[ INFO] [1612364423.742365289]: Device Serial No: 927522072103
[ INFO] [1612364423.742384977]: Device physical port: 3-1-4
[ INFO] [1612364423.742402619]: Device FW version: 05.12.10.00
[ INFO] [1612364423.742420880]: Device Product ID: 0x0B07
[ INFO] [1612364423.742437929]: Enable PointCloud: Off
[ INFO] [1612364423.742454295]: Align Depth: Off
[ INFO] [1612364423.742469952]: Sync Mode: Off
[ INFO] [1612364423.742722711]: Device Sensors:
[ INFO] [1612364423.778927733]: Stereo Module was found.
[ INFO] [1612364423.793653146]: RGB Camera was found.
[ INFO] [1612364423.793878601]: (Confidence, 0) sensor isn't supported by current device! -- Skipping...
[ INFO] [1612364423.794022876]: num_filters: 0
[ INFO] [1612364423.794132165]: Setting Dynamic reconfig parameters.
[ INFO] [1612364424.266699282]: Done Setting Dynamic reconfig parameters.
[ INFO] [1612364424.297250159]: depth stream is enabled - width: 640, height: 480, fps: 30, Format: Z16
[ INFO] [1612364424.299079091]: color stream is enabled - width: 640, height: 480, fps: 30, Format: RGB8
[ INFO] [1612364424.299484410]: setupPublishers...
[ INFO] [1612364424.337762894]: Expected frequency for depth = 30.00000
[ INFO] [1612364424.494324012]: Expected frequency for color = 30.00000
[ INFO] [1612364424.533627699]: setupStreams...
[ INFO] [1612364424.556888751]: insert Depth to Stereo Module
[ INFO] [1612364424.556989185]: insert Color to RGB Camera
03/02 20:30:24,610 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[ INFO] [1612364424.660969509]: SELECTED BASE:Depth, 0
[ INFO] [1612364424.681647468]: RealSense Node Is Up!
03/02 20:30:24,746 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:24,797 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:24,949 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,026 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,077 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,232 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,282 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,435 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:25,485 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:26,250 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
03/02 20:30:26,300 WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
^C[camera/realsense2_camera_manager-2] killing on exit
[camera/realsense2_camera-3] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
`

@RealSenseSupport
Copy link
Collaborator

@demoncoderad Did you get chance to try if any issue to run RealSenseViewer? And also noticed that the USB type is USB2. If it's not intended to be USB2, please check USB cable or USB port to make it USB3 connection.

@demoncoderad
Copy link
Author

Hi, it works good in realsense viewer. I have a USB 3 and USB 2 port so I plugged in the T265 (afaik) in USB 3 and D435 on Usb 2

@RealSenseSupport
Copy link
Collaborator

@demoncoderad Is the issue existing if you only connect T265 or D435 only? Thanks for your feedback!

@doronhi
Copy link
Contributor

doronhi commented Feb 10, 2021

Hi,
realsense2_camera, from package ros-melodic-realsense2-camera, uses a librealsense2 version built with RSUSB backend.
realsense-viewer is not installed via ros-melodic-realsense2-camera. Therefore I assume you also installed librealsense2-utils which brings along another version of librealsense2 build with v4l backend.

You did not specify what machine you have but still, since the viewer works well for you, I would recommend removing the ros-melodic-realsense2-camera installation and build realsense2_camera from source. It will link with the librealsense2 version already installed on your machine (v4l backend), the same one realsense-viewer uses.

@demoncoderad
Copy link
Author

Thanks, i'll look into it @doronhi
and @RealSenseSupport it basically hanged there when I run with either of the two, or both

@RealSenseSupport
Copy link
Collaborator

@demoncoderad With the suggestions from doronhi, any update from your side? Thanks!

@bigbellmercy
Copy link

bigbellmercy commented Mar 9, 2021

Hello, I report the same problem on Jetson Nano with L515.

Error

In Jetson Nano, with L515 only, the same error happens continuously as below:

WARNING [139819288090368] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11

Symptoms

  1. If depth resolution is set to 1024 x 768 maximally, the point cloud topic, /camera/depth/color/points, is not output as reported at L515 and '[ERROR] Device already streaming!' in 1024x768 depth resolution #1741.
  2. If depth resolution is set to 640 x 480, the point cloud topic is published at the rate of from about 10 to 25 Hz (usually 10 Hz) while the above error messages appearing continuously. But, after some period, the publication is stopped of itself.
  3. If depth resolution is set to 320 x 240, it is published at the rate of from about 10 to 25 Hz (usually 10 Hz) while the error messages appearing continuously. But during about 30 minutes, the publication was not stopped. So it may be used. But the publication rate is low and fluctuated.

Condition

Only realsense-ros application is executed on the Jetson Nano.
Major parameters for L515 are as below:
enable_depth: true
enable_fisheye: false
enable_infra/1/2: false
enable_color: true (resolution 1280 x 768)
depth_fps: 30
enable_pointcloud: true
All other parameters are default values.

Environment

Jetson Nano ARM64 4GB RAM
Ubuntu 18.04
ROS melodic
L515 firmware v1.5.4.1
realsense-ros v2.2.22
librealsense2 v2.42.0

Build

I've built librealsense2 SDK and realsense-ros package all from source codes as written in #1289 and succeeded. Thanks.

@RealSenseSupport
Copy link
Collaborator

@demoncoderad Any update from your side? Looking forward to your reply. Thanks!

@bigbellmercy As your issue happened on different camera and platforms, could you please create another issue to track it separately so the clue will be more clear? Thanks!

@bigbellmercy
Copy link

@demoncoderad Any update from your side? Looking forward to your reply. Thanks!

@bigbellmercy As your issue happened on different camera and platforms, could you please create another issue to track it separately so the clue will be more clear? Thanks!

Yes, a new issue was created as #1758. Thanks.

@RealSenseSupport
Copy link
Collaborator

@bigbellmercy Thanks for your quick action! We'll look into that.
@demoncoderad Any update from your side? Please note that the issue will be closed if we don't hear from you for another week. Thanks!

@RealSenseSupport
Copy link
Collaborator

@demoncoderad Sorry that we didn't get response from you for weeks, and this issue will be closed at this point. Please create another ticket if you still have questions or issues. Thanks!

@sasilva1998
Copy link

was this solved, I am having the same issue, I am getting the same message:

(messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11

at first I get some pointcloud from the D435 but then it stops, I am using a Jetson Nano, I could make it work about a year ago, along with the T265 but now I am stuck with this.

@roboticlemon
Copy link

This bug still persists

@YXGuan
Copy link

YXGuan commented Apr 20, 2022

Same issue here. Running Realsense on ROS Noetic with Ubuntu20.04 and Turtlebot

@B7O7B
Copy link

B7O7B commented Apr 25, 2022

@YXGuan @ingramator @sasilva1998, I encountered the same problem and after a bunch of hours spent online, I read realsense engineers are still working on that issue, and in some cases, that error message can be ignored. Also, what I did was reset the camera upon launch. roslaunch realsense2_camera rs_camera.launch initial_reset:=true . In addition, you can try updating your kernel, Incase you haven't done that in a while.

@SyllogismRXS
Copy link

SyllogismRXS commented Jun 23, 2022

I am running ROS2 Galactic on Ubuntu 20.04 and I was experiencing this same error message. The issue was that the realsense2 camera node was trying to publish the raw point clouds over the WiFi network to a desktop computer that was running rviz2 (in ROS2, two computers running ROS2 nodes on the same local network will automatically detect publishers/subscribers because of DDS. You can change this behavior by changing the ROS_DOMAIN_ID). I imagine if you are running ROS1, you might experience the same error message if you are trying to publish the raw point cloud over a WiFi network (but you would have had to manually change the ROS_MASTER_URI in ROS1).

This network issue was strange to track down for me, so I imagine that might be why this issue still exists. It worked fine when I used the realsense-viewer program, but failed when running the ROS2 node. I second guessed the USB 3 cable and the camera hardware, but in the end the only difference I could really point to was that ROS2 was performing network operations and the realsense-viewer wasn't.

tldr: make sure you aren't publishing the camera's raw point clouds over a WiFi network.

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

9 participants