IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.63k stars 4.83k forks source link

Compatibility and Synchronization Issues with RealSense D435 Cameras on Ubuntu 22.04 #13481

Closed shadi23 closed 1 week ago

shadi23 commented 3 weeks ago

Dear Intel RealSense Support Team,

I am reaching out to seek assistance with several critical issues I've encountered while using the RealSense D435 cameras on Ubuntu 22.04. My setup involves six D435 cameras that need to work synchronously for my project, but I’m experiencing persistent challenges that are affecting my workflow significantly. Issues Encountered:

Compatibility and Driver Installation: Despite following all available instructions to build the RealSense SDK from source, including applying recommended patches, the cameras are not consistently recognized by the system. Each time I need to capture images, I have to manually unplug and replug the cameras for the system to detect them, which is impractical and impacts efficiency, especially when working with multiple cameras.

Initialization Delay: The cameras take a long time to initialize each time they are reconnected, which complicates the timing and synchronization required for my application. I’ve tested multiple methods to streamline the initialization, but the delay remains a significant obstacle.

USB and Synchronization Challenges: I’ve ensured that the cameras receive adequate power using USB 3.0 power supplies, so power limitations are not the issue. However, there’s still a noticeable lag between each camera's initialization, which disrupts synchronization and hampers the ability to process real-time data reliably.

Could you advise on any specific updates, non-standard configurations, or alternative approaches to improve compatibility with Ubuntu, achieve faster initialization, and maintain consistent detection and synchronization?

Thank you for your time and assistance. I look forward to any guidance you can provide to help resolve these issues.

Best regards,

MartyG-RealSense commented 3 weeks ago

Hi @shadi23 Each camera that is attached to a computer consumes a portion of its processing resources, so when using a large number of cameras that are all active simultaneously it is important to have a computer with a hardware specification that can smoothly process those cameras. For four to six cameras on the same computer, one with an Intel Core i7 or i9 CPU or equivalent is recommendable.

When a camera reset is working efficiently it should take 2 to 3 seconds to complete the reset from start to end.

Another recommendation is to use USB equipment such as cables and hubs that are USB 3.1 Gen 1 instead of USB 3.0.

If you are able to use C++ programming language then the multiple camera reset script at https://github.com/IntelRealSense/librealsense/issues/9287#issuecomment-867826974 may be helpful for resetting all attached cameras with code instead of unplugging and re-inserting them.

MartyG-RealSense commented 1 week ago

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

MartyG-RealSense commented 1 week ago

Case closed due to no further comments received.