Vizard 8 » Reference » Input Devices » Gloves » 5DT Data Glove
8.1

5DT Data Glove plug-in

This plug-in provides support for the 5DT family of devices for capturing tracking data from 5DT data gloves. These devices measure finger flexion, abduction between fingers, and recognize a set of hand gestures. Some models also measure palm and wrist bend, and pitch and roll of the hand.

Initialization

The 5DT plug-in will use the following global variables during initialization:

Variable

Description

PORT_5DT

If connecting over serial, this variable specifies the COM port the glove is connected on. Default 1.

PORT_5DT_USB

If connecting over USB, this variable specifies which USB device number to connect to. The first device is 0, the second is 1, and so on.

Note: When you first connect to the glove, the data is uncalibrated. You need to open and close the hands so that the entire range of motion is detected.

Example

This example shows how to add a 5DT data glove sensor in your script. Add a sensor for each glove you want to use, specifying the glove's port.

PORT_5DT_USB = 0 #Connect to first USB device
glove = viz.add('5dt.dls')
data = glove.getData() #Get glove data

The object "data" will be an array containing the raw data from your device. By default, the data has been scaled according to the calibration. Use the command described in "Advance Options" below to retrieve raw data. If you are using Data Glove 5 or Data Glove 7, the data are located in the following positions within the array:

Position

Description

0

Thumb near

1

Index near

2

Middle finger near

3

Ring near

4

Little finger near

5

Pitch

6

Roll

7

Gesture number

If you are using Data Glove 14 or Data Glove 16, the data are located in the following positions within the array:

Position

Description

0

Thumb near

1

Thumb far

2

Thumb index abduction

3

Index near

4

Index far

5

Index middle abduction

6

Middle near

7

Middle far

8

Middle ring abduction

9

Ring near

10

Ring far

11

Ring little abduction

12

Little near

13

Little far

14

Thumb palm

15

Wrist bend

16

Pitch

17

Roll

18

Gesture number

Advanced options

The "command" methods for this plug-in allow you to switch back and forth between raw data and data that has been scaled according to the calibration data.

Command number

Description

0

use scaled data (default)

1

use raw data

Example:

glove.command(0)  # Set the plug-in to retrieve scaled data.