-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
T265 and D435 launch issue. Failed to claim USB interface #774
Comments
There is a problem where the node holds on to the context of the T265 device, even if not using it. That the reason why if the first node to start is T265 everything is ok but if the D400 is the first one up, the next node can't get a hold of the T265 context. |
I found a workaround. May be thread problem is there. Here is my experimental patch for this.But still work in progress. akirayou@6f5d897 |
I submitted PR 775 |
Hi, guys The trick is to delay launching D435 camera. Suppose you have t265.launch and d435.launch, you can use timed_roslaunch node to delay launching d435.launch like this
|
It's good for recovering from the problem.Thank you. But ,I want to point out another problem. But there is global variables such as "_device".
So "_device" will be shared by T265's RealSenseNodeFactory and D400's RealSenseNodeFactory. And additional small topic. |
@doronhi Than you for reimplementing. For example "seq" in L1126 dose not have to be shared with other device. These variables dose not make crash,just change the out put value. |
I added
I see no interference. Each topic is sequential, increments of 1 between messages, and each starts at a different time (the time of the matching |
Sorry,I misunderstood on local static variable.(I didn't understand on class_loader) |
Done. Thanks. |
Issue Description
Hi everybody!
When launching with correct T265 and D435 serial numbers
roslaunch realsense2_camera rs_d400_and_t265.launch
on every launch I get error
Device-5880: Error: Failed to claim USB interface. LIBUSB_ERROR_CODE: 0xFFFFFFFA (LIBUSB_E RROR_BUSY)
further however sometimes errors are gone, launch is ok for both cameras and I get pose from T265 and pointcloud from D435 topic streaming.
But there is some percerntage of launches that would fail with additional error
The requested device with serial number 845412110728 is NOT found!
845412110728 is my T265 module.
In these cases launch keeps outputing error msgs and I get no topics from either camera.
I am aware of pull_request_752 (using latest development branch)
and I have followed setup instructions
https://github.com/IntelRealSense/librealsense/blob/development/doc/installation.md#prerequisites
especialy I have made
./scripts/setup_udev_rules.sh
./scripts/patch-realsense-ubuntu-lts.sh
Update
If you do
rs_t265.launch
rs_camera.launch
then you will still see
Failed to claim USB interface
error, but at least both cameras will be working ok
But if you run
rs_camera.launch
before t265 then launch will hang.The text was updated successfully, but these errors were encountered: