This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/OPT8241: OPT8241

Part Number: OPT8241

Tool/software: TI C/C++ Compiler

I try to test my OPT8241 camera using Visual Studio C++.

I have install the requirement software:

- PCL 1.7.2

- Qt 5.4.0

- Fvsdk 0.0.3

I have try the Voxel viewer and it is running very well.

I have try the simple code using python and I can get the depth image.

But, when I try using VS C++ seems like my USB can't read.

I try this example code:

#include "Device.h"
#include "Logger.h"
#include "USBSystem.h"

using namespace Voxel;

int main()
{
logger.setDefaultLogLevel(LOG_ERROR);

Vector<DevicePtr> devices = DeviceScanner::scan();

USBSystem usbsys;

for (auto i = 0; i < devices.size(); i++)
{
String devNode;
if (devices[i]->interfaceID() == Device::USB)
devNode = usbsys.getDeviceNode((USBDevice &)*devices[i]);

std::cout << devices[i]->id() << " -- " << devices[i]->description();

if (devNode.size() > 0)
{
std::cout << " (" << devNode << ")";
}

std::cout << std::endl;
}

return 0;
}

And I got error in this line: if (devices[i]->interfaceID() == Device::USB)

I have setting the Voxel include and library.

Am I miss something?

Thank you.