Class ArticulationBodyPoseExtractor
Utility class to track a hierarchy of ArticulationBodies.
Inherited Members
Namespace: Unity.MLAgents.Sensors
Assembly: Unity.ML-Agents.dll
Syntax
[MovedFrom("Unity.MLAgents.Extensions.Sensors")]
public class ArticulationBodyPoseExtractor : PoseExtractor
Constructors
ArticulationBodyPoseExtractor(ArticulationBody)
Declaration
public ArticulationBodyPoseExtractor(ArticulationBody rootBody)
Parameters
Type | Name | Description |
---|---|---|
ArticulationBody | rootBody |
Methods
GetLinearVelocityAt(int)
Return the world space linear velocity of the i'th object.
Declaration
protected override Vector3 GetLinearVelocityAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the pose for which to get the linear velocity. |
Returns
Type | Description |
---|---|
Vector3 | The world space linear velocity at given index. |
Overrides
GetObjectAt(int)
Return the underlying object at the given index. This is only used for display in the inspector.
Declaration
protected override Object GetObjectAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the object to retrieve. |
Returns
Type | Description |
---|---|
Object | The |
Overrides
GetPoseAt(int)
Return the world space Pose of the i'th object.
Declaration
protected override Pose GetPoseAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the pose to retrieve. |
Returns
Type | Description |
---|---|
Pose | The world space Pose at given index. |