Cant open virtual camera if order of serial numbers is switched

I have hit a bit of a wierd issue with your newest SDK version. I use the following code to open a virtual stereo camera with two zed x one. The problem is that if i swap around the serial numbers, then i cant open the camera and i get error code “Camera failed to Setup”. The first time it happened i didnt bother looking into it, and just swapped around the cameras, but the issue is the correct order have now changed, so i would have to swap around and calibrate again. I can also replicate the issue with your virtual stereo example, so you can use that if you want to try to replicate.


 unsigned int serial_left = 305743419;
    unsigned int serial_right = 307994820; 
    unsigned int virt_sn = generateVirtualStereoSerialNumber(serial_left, serial_right);

    init_parameters.input.setVirtualStereoFromSerialNumbers(serial_left, serial_right, virt_sn);

I tried switching around some cables. Looks like even though i open them with serial number, only the camera with camera ID 0 is allowed to be left cam. At least that works for now

Unfortunately, this is a known issue when one of the cameras is assigned to ID 0.
I recommend that, for the moment, you connect the left camera to ID 0 and the right camera to ID 1 (use ZED_Explorer -a to verify the IDs).

The bug has already been fixed; the next version of the ZED SDK will solve it, and you will be free to change the order of the cameras as you please.