47 lines
1.7 KiB (Stored with Git LFS)
Plaintext
47 lines
1.7 KiB (Stored with Git LFS)
Plaintext
GloveDeviceExample
|
|
7/2023
|
|
|
|
Overview
|
|
----------
|
|
The GloveDeviceExample project demonstrates how glove devices can be created in Motive.
|
|
GloveDeviceBase class is provided to demonstrate common properties required by a glove device.
|
|
It uses HardwareSimulator class to demonstrate the interaction with a device SDK. This example users
|
|
an adapter class which handles interaction with the SDK and also aggregate all the data where each device
|
|
polls from to populate the analog channel. You can reference or reuse the example to create a glove device
|
|
to animate fingers of the paired skeleton in Motive.
|
|
|
|
Each glove device must have 60 channels, which are for modifying quaternion (4 float) values
|
|
for total 15 finger joints on a hand:
|
|
|
|
1 = Thumb MP 1 (w,x,y,z)
|
|
2 = Thumb PIP 2
|
|
3 = Thumb DIP 3
|
|
4 = Index MP 1
|
|
5 = Index PIP 2
|
|
6 = Index DIP 3
|
|
7 = Middle MP 1
|
|
8 = Middle PIP 2
|
|
9 = Middle DIP 3
|
|
10 = Ring MP 1
|
|
11 = Ring PIP 2
|
|
12 = Ring DIP 3
|
|
13 = Pinky MP 1
|
|
14 = Pinky PIP 2
|
|
15 = Pinky DIP 3
|
|
|
|
The example code demonstrates how glove devices are set up and how these channels are configured and populated.
|
|
|
|
|
|
Usage: Gloves in Motive
|
|
----------
|
|
- When loaded, the plugin will create two sample glove devices, which can be enabled and paired to a skeleton.
|
|
|
|
- The following webpage explains how glove devices can be used.
|
|
https://docs.optitrack.com/markersets/glove-device-setup
|
|
|
|
|
|
Notes
|
|
----------
|
|
- This project performs post build command that will copy the output DLL files into the Motive's devices folders.
|
|
|
|
- This example uses ExampleGloveData.csv to simulate data from glove devices. Please make sure the CSV file also gets copied into the devices folder alongside the DLL. |