Developers of external systems looking to take advantage of Vuforia Engine can write their own Driver to provide data from external systems for Vuforia Engine to work with. A Driver is a native C/C++ dynamic library (.so or .dll file) that implements specific calls. During runtime, Vuforia Engine loads the library and uses the it as a source of data (such as image frames).
To get started, developers should download the Native SDK package appropriate for their platform from the Developer Portal. The main file we are interested in is Driver.h file. Driver.h defines several functions along with Classes which must be extended by the custom Driver. More information can be found in the comments of Driver.h.
vuforiaDriver_getAPIVersion()– Returns a number containing the Driver Framework version that the library has been built against and conforms to. This constant is defined in Driver.h as
vuforiaDriver_getLibraryVersion()– Return a string containing the version describing the library version. It is up to the Driver developer to choose a version value, but it must be non-empty and generally under 50 characters long. eg. “AndroidUVC-1.0.0”
vuforiaDriver_init()– Constructs and returns an instance of the VuforiaDriver object which defines the custom driver. The memory and the lifetime of this object is owned by the library. Object is expected to remain valid until
vuforiaDriver_deinit()– Destructs the specified instance of the VuforiaDriver object