ManoMotion SDK PRO  1.4.8
ManoMotion SDK PRO API documentation
TrackingInfo Struct Reference

Contains information about position and tracking of the hand More...

Data Fields

BoundingBox bounding_box
 Provides tracking information regarding the bounding box that contains the hand. More...
 
Vector3 poi
 
Vector3 palm_center
 Provides tracking information regarding the bounding box center that contains the hand, this information is primarily used in the cursor gizmo. it yields a normalized Vector3 information with the depth being 0 at the moment. a temporary solution would be to combine it with the depth estimation value (see below). More...
 
WristInfo wristInfo
 Information about wrist points. More...
 
float depth_estimation
 Provides tracking information regarding an estimation of the hand depth. it yields a 0-1 float value depending based on the distance of the hand from the camera. More...
 
float rotation
 
int amount_of_contour_points
 The amount of contour points the contour uses for each frame. More...
 
Vector3[] finger_tips
 
Vector3[] contour_points
 200 normalized contour points to get the contour of the hand. More...
 
SkeletonInfo skeleton
 Contains the positions of the 21 joints More...
 
FingerInfo fingerInfo
 Information about winger width More...
 

Detailed Description

Contains information about position and tracking of the hand


Field Documentation

◆ amount_of_contour_points

int TrackingInfo.amount_of_contour_points

The amount of contour points the contour uses for each frame.

◆ bounding_box

BoundingBox TrackingInfo.bounding_box

Provides tracking information regarding the bounding box that contains the hand.

it yields normalized values between 0..1

◆ contour_points

Vector3 [] TrackingInfo.contour_points

200 normalized contour points to get the contour of the hand.

◆ depth_estimation

float TrackingInfo.depth_estimation

Provides tracking information regarding an estimation of the hand depth. it yields a 0-1 float value depending based on the distance of the hand from the camera.

Example

private float depthValue;
private float maxDepth = 0.8f;
// <summary>
// Runs every frame, gets the float value of the depth_estimation.
// </summary>
void Update()
{
CheckDepth(depthValue);
}
// <summary>
// Checks if current depth is greater than our maxDepth value, if so the phone will vibrate
// </summary>
// <param name="depth">the current depthValue from depth_estimation</param>
void CheckDepth(float depth)
{
if (depth > maxDepth)
{
// Your code here
Handheld.Vibrate();
}
}

◆ finger_tips

Vector3 [] TrackingInfo.finger_tips

◆ fingerInfo

FingerInfo TrackingInfo.fingerInfo

Information about winger width

◆ palm_center

Vector3 TrackingInfo.palm_center

Provides tracking information regarding the bounding box center that contains the hand, this information is primarily used in the cursor gizmo. it yields a normalized Vector3 information with the depth being 0 at the moment. a temporary solution would be to combine it with the depth estimation value (see below).

Example

private Vector3 trackedPosition;
float screenRightSideXValue = 0.5f;
// <summary>
// Runs every frame, gets the position of the palm_center.
// </summary>
void Update()
{
TrackedHandPosition(trackedPosition);
}
// <summary>
// When the tracked hand position is on the right side of the screen, and x is greater than
// 0.5f the code will be executed. In this case the phone will vibrate.
// </summary>
// <param name="trackedPosition">the Vector3 from the palm center of the hand that's being
// tracked</param>
void TrackedHandPosition(Vector3 trackedPosition)
{
if (trackedPosition.x > screenRightSideXValue)
{
// Your code here.
Handheld.Vibrate();
}
}

◆ poi

Vector3 TrackingInfo.poi

◆ rotation

float TrackingInfo.rotation

◆ skeleton

SkeletonInfo TrackingInfo.skeleton

Contains the positions of the 21 joints

◆ wristInfo

WristInfo TrackingInfo.wristInfo

Information about wrist points.


The documentation for this struct was generated from the following file:
TrackingInfo.depth_estimation
float depth_estimation
Provides tracking information regarding an estimation of the hand depth. it yields a 0-1 float value ...
Definition: TrackingInfo.cs:97
HandInfo.tracking_info
TrackingInfo tracking_info
Information about hand position.
Definition: HandInfo.cs:26
TrackingInfo.palm_center
Vector3 palm_center
Provides tracking information regarding the bounding box center that contains the hand,...
Definition: TrackingInfo.cs:57
ManomotionManager
The ManomotionManager handles the communication with the SDK.
Definition: ManomotionManager.cs:21
ManomotionManager.Instance
static ManomotionManager Instance
Definition: ManomotionManager.cs:198
HandInfoUnity.hand_info
HandInfo hand_info
Information about the hand
Definition: HandInfoUnity.cs:14