xvsdk  3.2.0
Functions
Global functions

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.
 

Detailed Description

Function Documentation

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.

Parameters
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).
Returns
A map with key corresponding to device ID and the value is a #Device.
int xv::registerPlugEventCallback ( const std::function< void(std::shared_ptr< Device > device, PlugEventType type)> &  Callback,
const std::string &  desc = "" 
)

Register the callback for hotplug.

Returns
Id of the callback (used to unregister the callback).