Skip to Content

Home Position

Quick Facts

PropertyValue
ClassCENPyOlpHomePosition
Modulecenpylib.CENPyOlpHomePosition
Packagecenpylib
ReleaseR2025.2.4
Methods5

Quick Start

# Boilerplate Example homePosition = ... # obtained from the runtime context result = homePosition.GetName()

Method Index

MethodReturnsSummary
GetNamestrGet name of the home position.
GetCountintGet the number of joints/positions in this Home Position
GetJointAtCENPyOlpJointGet the joint at specified index
GetPositionAtfloatGets the position of a joint at a specific index.
GetPositionOffloatGets the position of a given joint.

Query Methods

GetName

def GetName() -> str

Get name of the home position.

Returns: str — home position’s name

GetCount

def GetCount() -> int

Get the number of joints/positions in this Home Position

Returns: int — Returns the number of joints/position in this Home Position

GetJointAt

def GetJointAt(index: int) -> CENPyOlpJoint

Get the joint at specified index

Parameters:

NameTypeDescription
indexintIndex of the joint

Returns: CENPyOlpJoint — Returns the joint at the desired position

GetPositionAt

def GetPositionAt(index: int, isKinematicSpecific: bool) -> float

Gets the position of a joint at a specific index.

Parameters:

NameTypeDescription
indexintthe index of the joint to get the position from
isKinematicSpecificboolIf No, the returned position is the mathematical value. If Yes, it is computed according to the resource’s kinematic conventions.

Returns: float — Returns the joint at the desired position computed according to the resource’s kinematic conventions.

GetPositionOf

def GetPositionOf(joint: CENPyOlpJoint, isKinematicSpecific: bool) -> float

Gets the position of a given joint.

Parameters:

NameTypeDescription
jointCENPyOlpJointThe joint whose position to get
isKinematicSpecificboolIf No, the returned position is the mathematical value. If Yes, it is computed according to the resource’s kinematic conventions.

Returns: float — The position of a given joint.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?