3Gear Systems SDK  v0.9.34
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
3Gear Systems SDK Documentation

Introduction

The hand-tracking server uses a simple network protocol to communicate with your applications over a socket. This API communicates with the server and wraps the results out using C#.

Overview

The library operates using callbacks. To get started, create a HandTrackingClient which will connect to the server and start up its own thread which waits and passes messages (PinchMessage, PointMessage, etc.) back to your HandTrackingListener via the callback interface.

public class MyApp
{
public MyApp()
{
HandTrackingClient client = new HandTrackingClient;
client.MessageCallback += new MessageHandler(HandleEvent);
client.Connect();
}
private void HandleEvent(HandTrackingMessage message)
{
// ...
}
}

Each HandTrackingMessage contains the position and orientation of both hands. The coordinate space of the hand position is specified by the camera setup stage. For a standard camera setup, the x-axis points right; the y-axis points up; and the z-axis points away from the screen. Units are in millimeters and the origin is at the center of the checkerboard you used during calibration.