FingoManager

class Fingo::FingoManager

FingoManager manage all the data from Fingo Devices.

Public Functions

string GetVersion()

Get the version of this Unity Fingo SDK.

Return
The version of the Unity Fingo SDK.

bool Initialize(MonoBehaviour obj, bool enableHand, bool enableController, bool enableGesture, bool enableInfraredImage, bool enableColorImage, bool enableHead)

Initialize the Fingo Manager. Register all the Fingo Listeners to Devices.

Return
Initialize succuss.
Parameters
  • enableHand: Enable or disable hand tracking when initialize.
  • enableController: Enable or disable controller tracking when initialize.
  • enableGesture: Enable or disable gesture detection when initialize.
  • enableInfraredImage: Enable or disable infrared image capture when initialize.
  • enableColorImage: Enable or disable color image capture when initialize.
  • enableHead: Enable or disable head tracking when initialize.

void EnableHandTimeWarping(bool enableTimeWarping)

Set enable or disable time warping to hand data.

Parameters
  • enableTimeWarping: Enable or disable time warping.

void EnableHandStabilizer(bool enableStabilizer)

Set enable or disable stabilizer to hand data.

Parameters
  • enableStabilizer: Enable or disable stabilizer.

void SetHandATWDeltaTime(double deltaTime)

Set the time offset which will be added onto the current system time for ATW.

Parameters
  • deltaTime: time added to current time.

HandRawData GetRawHandData(HandType handtype)

Get the hand raw data corresponding to the particular hand type currently tracked

Return
The hand raw data of this hand.
Parameters
  • handtype: Hand type of the hand.

Hand GetHand(HandType handtype)

Get the hand data corresponding to the particular hand type currently tracked

Return
The hand data of this hand.
Parameters
  • handtype: Hand type of the hand.

Image GetInfraredImage(EyeType eyetype)

Get infrared image data corresponding to the particular eye type currently tracked

Return
The infrared image of the eye.
Parameters
  • eye: The eye type of the infrared image.

Image GetRGBImage(EyeType eyetype)

Get infrared image data corresponding to the particular eye type currently tracked

Return
The color image of the eye.
Parameters
  • eye: The eye type of the color image.

Head GetHead(bool enablePrediction = false)

Returns the Head instance corresponding to the particular Head type currently tracked

bool SetHandTrackingEnable(bool enable = true)

Set the hand tracking function enable or disable.

Return
Setting hand tracking enable or disable success.
Parameters
  • enable: Enable or disable hand tracking.

bool SetGestureDetectionEnable(bool enable = true)

Set the gesture detection enable or disable.

Return
Setting gesture detection enable or disable success.
Parameters
  • enable: Enable or disable gesture detection or not.

bool SetGestureDetectionMode(GestureDetectionMode detectionMode)

Set the gesture detection mode.

Return
Setting gesture detection mode success.
Parameters
  • detectionMode: The target mode of gesture detection.

GestureDetectionMode GetGestureDetectionMode()

Get the gesture detection mode.

Return
The gesture detection mode using right now.

bool SetIRImageEnable(bool enable = true)

Set infrared image enable or disable.

Return
Setting infrared image enable or disable success.
Parameters
  • enable: Enable or disable get infrared image.

bool SetRGBImageEnable(bool enable = true)

Set color image enable or disable.

Return
Setting color image enable or disable success.
Parameters
  • enable: Enable or disable get color image.

bool SetHeadTrackingEnable(bool enable = true)

Set the head tracking function enable or disable.

Return
Setting head tracking enable or disable success.
Parameters
  • enable: Enable or disable head tracking.

void InitHeadTracking()

Initialize the positional tracking.

void ResetHeadTracking()

Reset the positional tracking.

int GetServiceState()

Get service current state.

Return
0 : Stopped, 1 : Running, 2 : Suspended, 3 : Not Functioning, -1 : Can’t get info.

string GetFingoServiceSchemaVersion()

Get service schema version.

Return
Service schema version

string GetFingoServiceAlgorithmVersion()

Get service algorithm version.

Return
Service algorithm version

string GetFingoServiceVersion()

Get service version.

Return
Service version

string GetFingoServiceFirmwareVersion()

Get service firmware version.

Return
Service firmware version.

string GetFingoServiceHardwareVersion()

Get service hardware version.

Return
Service hardware version.

bool TestCapability(FingoCapability capability)

Test the capability of Fingo devices.

Return
Capable of the devices.
Parameters
  • capability: The device capability.

void SetFingoEnable(FingoCapability capability, bool enable)

Set Fingo capability enable or disable.

Parameters
  • capability: The Fingo capability set enable or disable.
  • enable: Enable or disable the Fingo capability.

bool GetFingoEnable(FingoCapability capability)

Get if Fingo capability is enabled or not.

bool ReleaseAllDevices()

Release all Fingo devices.

Return
Releasing all Fingo devices success.