Items with no label
3335 Discussions

How to device_hub.wait_for_device() in pyrealsense2?

_xct
Beginner
1,409 Views

When you do a hardware_reset(), there is an undetermined amount of time it takes for the camera (D415/D435) to reconnect. I've found that C++ library has device_hub for it:

rs2::device_hub device_hub(ctx); //Using the device_hub we can block the program until a device connects selected_device = device_hub.wait_for_device();

I can't find it in pyrealsense2. We have 3 cameras in the setup and need to wait until they reconnect after all are reset at the start of the program.

0 Kudos
1 Reply
Alexandra_C_Intel
836 Views
Hi _xct, Thank you for your interest in the Intel RealSense D400 series cameras. Unfortunately, this function is not yet available in Python wrappers. You can try to find a way to use this function in Python, as the functions are transferable. Regards, Alexandra
0 Kudos
Reply