@ProviderType
public interface GripActionConfigBuilder
This interface can be used to build a single gripper configuration for a grip action. The resulting configuration
can be applied to a GripperNode
instance.
Each configuration being built should ideally use a new GripActionConfigBuilder
instance. Note that if a
gripper selection was specified when the builder was used to create a configuration for a Gripper node (which is using
a multi-gripper device), then a new builder instance must be obtained to create a new configuration for another
Gripper node which is using a single gripper device.
GripperDevice.getCapabilitySupport(Class)
to ensure that the gripper device used by a Gripper node
(accessible through GripperNode.getGripperDevice()
) supports a specific capability (or set of capabilities)
before applying a configuration. Applying a configuration not supported by the gripper node/device will
throw an exception.Modifier and Type | Method and Description |
---|---|
GripActionConfig |
build()
Build the gripper configuration for a Gripper program node.
|
GripActionConfigBuilder |
setEmptyGripperSelection()
Set an empty gripper selection for a Gripper node that uses a multi-gripper device, i.e.
|
GripActionConfigBuilder |
setEmptyPayloadMass()
Enable the payload setting and configure it to apply a total payload mass (to be applied after the grip action has
finished executing), but clear the associated 'Set Total Payload' payload mass field.
|
GripActionConfigBuilder |
setGripperSelection(Optional<SelectableGripper> gripperSelection)
Apply an existing gripper selection to a Gripper node that uses a multi-gripper device, i.e.
|
GripActionConfigBuilder |
setGripperSelection(SelectableGripper gripper)
Select the specified individual gripper/zone for a Gripper node that uses a multi-gripper device, i.e.
|
GripActionConfigBuilder |
setPayloadMass(Mass mass)
Enable the payload setting for a Gripper node and configure it to apply the specified total payload mass after
the grip action has finished executing.
|
GripActionConfigBuilder |
setPayloadSelection(Payload payload)
Enable the payload setting for a Gripper node and configure it to apply the specified payload (from the
installation) after the grip action has finished executing.
|
GripActionConfigBuilder |
setPayloadSettingDisabled()
Disable the payload setting for a Gripper node.
|
GripActionConfigBuilder setEmptyGripperSelection()
Set an empty gripper selection for a Gripper node that uses a multi-gripper device, i.e. a gripper device
supporting the multi-gripper capability (see the MultiGripperSupport
interface). No individual gripper/zone
will be selected in the Gripper node (any existing selection will be cleared).
GripperDevice.getCapabilitySupport(Class)
with the class of the MultiGripperSupport
interface as
argument to verify that the gripper device used by a Gripper node (accessible through
GripperNode.getGripperDevice()
) supports multiple grippers. Attempting to apply a configuration to a
Gripper node (using GripperNode.setConfig(GripperNodeConfig)
) will throw the UnsupportedConfig
exception, if the node uses a single gripper device.GripActionConfigBuilder setGripperSelection(Optional<SelectableGripper> gripperSelection)
Apply an existing gripper selection to a Gripper node that uses a multi-gripper device, i.e. a gripper device
supporting the multi-gripper capability (see the MultiGripperSupport
interface). The specified gripper/zone
selection must be taken from an existing configuration by using the return value of
GripActionConfig.getGripperSelection()
or ReleaseActionConfig.getGripperSelection()
.
GripperDevice.getCapabilitySupport(Class)
with the class of the MultiGripperSupport
interface as
argument to verify that the gripper device used by a Gripper node (accessible through
GripperNode.getGripperDevice()
) supports multiple grippers. Attempting to apply a configuration to a
Gripper node (using GripperNode.setConfig(GripperNodeConfig)
) will throw the UnsupportedConfig
exception, if the node uses a single gripper device.gripperSelection
- The existing gripper selection to apply, not null
GripActionConfigBuilder setGripperSelection(SelectableGripper gripper)
Select the specified individual gripper/zone for a Gripper node that uses a multi-gripper device, i.e. a gripper
device supporting the multi-gripper capability (see the MultiGripperSupport
interface).
GripperDevice.getCapabilitySupport(Class)
with the class of the MultiGripperSupport
interface as
argument to verify that the gripper device used by a Gripper node (accessible through
GripperNode.getGripperDevice()
) supports multiple grippers. Attempting to apply a configuration to a
Gripper node (using GripperNode.setConfig(GripperNodeConfig)
) will throw the UnsupportedConfig
exception, if the node uses a single gripper device.gripper
- The individual gripper/zone to be selected, not null
GripActionConfigBuilder setPayloadMass(Mass mass)
Enable the payload setting for a Gripper node and configure it to apply the specified total payload mass after the grip action has finished executing.
Use the SimpleValueFactory.createMass(double, Mass.Unit)
method to create the payload mass. The valid
range for the payload mass is available through the RobotLimits
interface which can be accessed with
RobotModel.getRobotLimits()
(an instance of the RobotModel
interface can be retrieved through
SystemAPI.getRobotModel()
).
Note: The specified mass must be the total mass of the payload attached to the tool output flange of the robot.
Consider instead using the setPayloadSelection(Payload)
method which allows for selecting a pre-defined
payload from the installation in PolyScope.
mass
- The total mass of the payload (attached to the tool ouput flange of the robot) to be applied after the
execution of this grip action, not null
.IllegalMassException
- If the specified mass is not inside the valid range as defined by PolyScope.GripActionConfigBuilder setEmptyPayloadMass()
GripActionConfigBuilder setPayloadSelection(Payload payload)
Enable the payload setting for a Gripper node and configure it to apply the specified payload (from the installation) after the grip action has finished executing.
Use the PayloadModel
interface to get a list of available payloads from the installation to choose from.
payload
- The payload (from the installation) to be applied after the execution of this grip action, not
null
GripActionConfigBuilder setPayloadSettingDisabled()
GripActionConfig build()
Copyright © 2023. All rights reserved.