27
6. Using the SDK
6.1. Introduction
The 5DT Data Glove SDK provides access to the 5DT range of data gloves at
an intermediate level.
The Windows 98/NT/Me/XP version is provided in the form of a C/C++ header
(.h) file, a Microsoft Visual C++ library (.lib) file and a dynamic link library (.dll)
file.
The SDK functionality includes:
•
Multiple
instances
•
Easy initialization and shutdown
•
Basic (raw) sensor values
•
Scaled (auto-calibrated) sensor values
•
Calibration
functions
•
Basic gesture recognition
•
Cross-Platform Application Programming Interface
The SDK functions are described in detail in Appendix C.
6.2. Using the SDK
The 5DT Data Glove Driver is easy to implement using the following guidelines:
1. Make sure that the header file
fglove.h
, the library file
fglove.lib
and the dynamic link library file
fglove.dll
reside in the current
(application) directory, or somewhere that they can be found. The file
fglove.dll
may be copied into your Windows system directory.
2. Include the header file
fglove.h
in the application where necessary.
3. Add the library file
fglove.lib
to the link process.
There is also a debug version of the driver (
fgloved.lib
,
fgloved.dll
)
which outputs debug messages to the debugger.
6.3. Sample Source Code
In the samples directory, there is sample source code that makes use of the
glove SDK. Both a console application as well as a Microsoft
®
Visual Studio
®
6
project is included.