ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.TrackingInfo Struct Reference

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

Public Attributes

BoundingBox boundingBox
 Provides tracking information regarding the bounding box that contains the hand. it yields normalized values between 0 and 1.
 
WristInfo wristInfo
 Information about wrist points.
 
float depthEstimation
 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.
 
int numberOfContourPoints
 The amount of contour points the contour uses for each frame.
 
Vector3[] contourPoints
 200 normalized contour points to get the contour of the hand.
 
SkeletonInfo skeleton
 Contains the positions of the 21 joints.
 
WorldSkeletonInfo worldSkeleton
 
FingerInfo fingerInfo
 Information about winger width.
 

Detailed Description


Member Data Documentation

◆ boundingBox

BoundingBox ManoMotion.TrackingInfo.boundingBox

◆ contourPoints

Vector3 [] ManoMotion.TrackingInfo.contourPoints

◆ depthEstimation

float ManoMotion.TrackingInfo.depthEstimation

Example

private float depthValue;
private float maxDepth = 0.8f;
// <summary>
// Runs every frame, gets the float value of the depth_estimation.
// </summary>
void Update()
{
depthValue = ManomotionManager.Instance.HandInfos[0].trackingInfo.depthEstimation;
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 depthEstimation</param>
void CheckDepth(float depth)
{
if (depth > maxDepth)
{
// Your code here
Handheld.Vibrate();
}
}

◆ fingerInfo

FingerInfo ManoMotion.TrackingInfo.fingerInfo

◆ numberOfContourPoints

int ManoMotion.TrackingInfo.numberOfContourPoints

◆ skeleton

SkeletonInfo ManoMotion.TrackingInfo.skeleton

◆ worldSkeleton

WorldSkeletonInfo ManoMotion.TrackingInfo.worldSkeleton

◆ wristInfo

WristInfo ManoMotion.TrackingInfo.wristInfo