Device and Pipeline for USB and Ethernet

Hello,

I’m developing for the Femto Mega camera using Orbbec SDK 1.10.8, and I’m running into an issue. I am enumerating USB + ethernet connected devices through enableNetDeviceEnumeration(), and I want to switch between the two modes using the SDK. I use a unique pair of ob::Device and ob::Pipeline objects for both USB and Ethernet modes. In other words, USB and Ethernet modes do not share the device or pipeline objects.

I run into an issue where Pipeline::waitForFrames() returns an empty frameset if I switch between the two modes. Should I share the pipeline between the two devices? And in general, what is the recommended standard for instantiating device and pipeline objects?

You can set EnumerateNetDevice as true in the config file and running the HotPlugin sample from SDK to switch USB and Ethernet mode alternatively.