This module contains a wrapper around the Data Glove SDK by Fifth Dimension Technologies. The underlying SDK can either be version 1 or version 2. Note that some methods are only implemented if the module was compiled with version 2 of the SDK. All the functions from the SDK are wrapped as methods of the DataGlove class. Most methods require that a connection to a glove device was previously established via the open() method.
| ) |
True if the Data Glove functionality is available.
If this function returns False, an exception will be raised
whenever you try to instantiate a class from this module.
| ) |
| ) |
True if a connection to a data glove was established (i.e.
if open() was successfully called).
| port) |
"COM1", "COM2", etc.
| ) |
| ) |
FD_HAND_LEFT or FD_HAND_RIGHT. If you want a string
representation of the handedness you can use the return value as
key for the dictionary HANDEDNESS.
| ) |
| Type | Description |
|---|---|
FD_GLOVENONE |
No data glove |
FD_GLOVE5U |
Data Glove 5 Ultra serial |
FD_GLOVE5UW |
Data Glove 5 Ultra serial, wireless |
FD_GLOVE5U_USB |
Data Glove 5 Ultra USB |
FD_GLOVE7 |
Data Glove 5 |
FD_GLOVE7W |
Data Glove 5, wireless |
FD_GLOVE16 |
Data Glove 16 |
FD_GLOVE16W |
Data Glove 16, wireless |
FD_GLOVE14U |
Data Glove 14 Ultra serial |
FD_GLOVE14UW |
Data Glove 14 Ultra serial, wireless |
FD_GLOVE14U_USB |
Data Glove 14 Ultra USB |
If you want the string representation of the glove type you can use the
return value as key for the dictionary GLOVETYPE.
Todo: The above are only the return values of the v2 SDK.
| ) |
| ) |
| ) |
| sensor) |
| data) |
| sensor, raw) |
| ) |
| sensor) |
| ) |
| sensor) |
| lower, upper) |
| sensor, lower, upper) |
| ) |
| sensor) |
| max) |
| sensor, max) |
| [sensor]) |
| ) |
| ) |
| sensor) |
| lower, upper) |
| sensor, lower, upper) |
| ) |
| ) |
| ) |
DG14U_R,
DG14U_L, DG5U_R and DG5U_R.
| callback) |
| ) |
| ) |
| ) |
| ) |
| ) |
True if auto calibration is activated.
| flag) |
True
auto-calibration is enabled.
| filename) |
| filename) |
Copyright (C) 2000-2004, 5DT <Fifth Dimension Technologies>