xvsdk
3.2.0
|
Functions | |
Version | xv::version () |
Get xvsdk version. | |
std::map< std::string, std::shared_ptr< Device > > | xv::getDevices (double timeOut=0., const std::string &desc="", bool *stopWaiting=nullptr) |
Retrieve all the detected XVisio devices. If no device is found after the timeout is reached, the result will be empty. More... | |
void | xv::setLogLevel (LogLevel l) |
Change the log level. | |
int | xv::registerPlugEventCallback (const std::function< void(std::shared_ptr< Device > device, PlugEventType type)> &Callback, const std::string &desc="") |
Register the callback for hotplug. More... | |
bool | xv::unregisterHotplugCallback (int callbackID) |
Unregister a plug callback. | |
std::map<std::string,std::shared_ptr<Device> > xv::getDevices | ( | double | timeOut = 0. , |
const std::string & | desc = "" , |
||
bool * | stopWaiting = nullptr |
||
) |
Retrieve all the detected XVisio devices. If no device is found after the timeout is reached, the result will be empty.
timeOut | : wait until the timeout is reached or find at least one device. |
stopWaiting | : stop scanning when become true. |
desc | : Load device according to feature in desc(json string). SDK can choose device feature from desc accoring SN or hardware version. The desc also contains default values of slam algorithm(old SDK is INI file). |
int xv::registerPlugEventCallback | ( | const std::function< void(std::shared_ptr< Device > device, PlugEventType type)> & | Callback, |
const std::string & | desc = "" |
||
) |
Register the callback for hotplug.