Class

ARSkeleton2D

An object that describes where a body's joints are located in the camera feed.

Declaration

class ARSkeleton2D : ARSkeleton

Overview

ARSkeleton2D provides you with a 2D body's joints in a flat hierarchy so you can access them efficiently. The joint locations are normalized within the range [0..1] in the coordinate space of the current frame's camera image, where 0 is the upper left, and 1 is the bottom right.

To access a skeleton's joints by name, you use landmark(forJointNamed:). To access a named joint by index (for example, for performance reasons), you query the definition for the named joint index using index(for:), then access jointLandmarks using the resulting index.

Topics

Getting Joint Landmarks

var jointLandmarks: [simd_float2]

The joint landmarks in normalized coordinates.

func landmark(for: ARSkeleton.JointName) -> simd_float2?

Returns the location of a joint with a given name.

Relationships

Inherits From

Conforms To

See Also

Getting Joint Information

var skeleton: ARSkeleton2D

An object that contains the screen position of a body's joints.

class ARSkeleton

The interface for the skeleton of a tracked body.