Struct KeypointComponent
KeypointComponent message producer. Keep all the information about keypoints and handles reporting.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Labelers
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public struct KeypointComponent : IMessageProducer
Constructors
KeypointComponent(int, uint, string, int)
Creates a new, empty keypoint component
Declaration
public KeypointComponent(int inLabelId, uint inInstanceId, string inPose, int inLength)
Parameters
Type | Name | Description |
---|---|---|
int | inLabelId | The label ID |
uint | inInstanceId | The instance ID of the entity |
string | inPose | The pose label |
int | inLength | The length of keypoints array. All points will be initialized with an index set to the array location and a state of 0. |
Fields
keypoints
Array of all of the keypoints
Declaration
public KeypointValue[] keypoints
Field Value
Type | Description |
---|---|
KeypointValue[] |
Properties
instanceId
The instance id of the entity
Declaration
public uint instanceId { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
labelId
The label id of the entity
Declaration
public int labelId { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
pose
Pose ground truth for the current set of keypoints
Declaration
public string pose { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ToMessage(IMessageBuilder)
Convert contents int a message.
Declaration
public void ToMessage(IMessageBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IMessageBuilder | builder | The message builder that will convert the class's contents into a message |