@ProviderType
public interface Payload
Modifier and Type | Interface and Description |
---|---|
static class |
Payload.ParametersWarning
This enum represents the different types of warnings that the parameters of a payload can have.
|
Modifier and Type | Method and Description |
---|---|
Position |
getCenterOfGravity()
Gets the payload's center of gravity (CoG), also referred to as center of mass.
|
String |
getDisplayName()
Gets the name of the payload displayed in the PolyScope UI.
|
InertiaMatrix |
getInertiaMatrix()
Gets the inertia matrix of the payload.
|
Mass |
getMass() |
Payload.ParametersWarning |
getParametersWarning()
Use this method to check if the parameters of this payload have any warnings.
|
boolean |
isResolvable()
A payload cannot be guaranteed to be present in PolyScope.
|
boolean |
isUsable()
Use this method to determine if the payload can be used.
|
Mass getMass()
Position getCenterOfGravity()
InertiaMatrix getInertiaMatrix()
Gets the inertia matrix of the payload. The inertia matrix is defined in a coordinate system with center at the payload's center of gravity (CoG) and the axes aligned with the tool output flange coordinate system (axes).
Note: The inertia matrix specified by the end user can be invalid. TheisUsable()
method can be used
determine, if the payload can be used (i.e., has a valid inertia matrix).String getDisplayName()
Gets the name of the payload displayed in the PolyScope UI.
Note: The payload can change name at any time, and thus the name must not be used to uniquely identify a specific payload. The payload name can change in the following situations:boolean isResolvable()
A payload cannot be guaranteed to be present in PolyScope. This method can be used to determine, if the payload is present.
The payload will not be present, if the end user loads a different installation which does not contain the payload, or if the payload is removed by the end user or the URCap that added the payload.
Note: Storing an undefined payload in a program node contribution's (aProgramNodeContribution
instance) data model (DataModel
interface) will automatically make the program node (and the program)
undefined.true
if this payload is present in PolyScope, otherwise false
.boolean isUsable()
Use this method to determine if the payload can be used. An unresolvable payload (see the isResolvable()
method) will always be unusable.
A payload can have an invalid inertia matrix, where all the individual values of the matrix are within the valid range, but the combination of values is invalid.
Note: Storing an unusable payload in a program node contribution's (aProgramNodeContribution
instance) data model (DataModel
interface) will automatically make the program node (and the program)
undefined.true
, if the payload is usable, otherwise false
. false
will always be returned
when the payload is unresolvable (see the isResolvable()
method).Payload.ParametersWarning getParametersWarning()
Use this method to check if the parameters of this payload have any warnings.
A payload can be usable, but may have a value for a payload parameter or may have a combination of (some of the) payload parameters, that could affect performance of the robot, if the payload is used (i.e., if the parameters are applied).
An unresolvable payload (seeisResolvable()
) will have no warning for its parameters (i.e.
Payload.ParametersWarning.NO_WARNING
is returned).Copyright © 2021. All rights reserved.