@ProviderType public interface GripActionConfig extends GripperNodeConfig
GripperNodeConfig.ConfigType
Modifier and Type | Method and Description |
---|---|
Optional<SelectableGripper> |
getGripperSelection()
This method returns the individual gripper selected (if any is selected) in a Gripper node that uses a
multi-gripper device, i.e.
|
Optional<PayloadSetting> |
getPayloadSetting()
This method returns the configuration of the payload setting for a Gripper node.
|
boolean |
isForMultiGripper()
Determine if this configuration is a multi-gripper configuration.
|
getConfigType
boolean isForMultiGripper()
Determine if this configuration is a multi-gripper configuration. This will be the case, if the config was created
for, or retrieved from, a Gripper node that uses a multi-gripper device, i.e. a gripper device supporting the
multi-gripper capability (see the MultiGripperSupport
interface).
getGripperSelection()
method can be used to retrieve a (valid) gripper selection (which can be
empty). Note that, if calling the Optional.isPresent()
method on the retrieved Optional
instance returns false
, it can both indicate that the configuration is for a single gripper (not
supporting the multi-gripper capability) as well as indicate that no gripper has been selected (an empty
gripper selection).
true
if this configuration is a multi-gripper configuration, otherwise false
Optional<SelectableGripper> getGripperSelection()
This method returns the individual gripper selected (if any is selected) in a Gripper node that uses a
multi-gripper device, i.e. a gripper device supporting the multi-gripper capability (see the
MultiGripperSupport
interface).
isForMultiGripper()
method can be used to determine, if this configuration is for a multi-gripper device.Optional
. Use Optional.isPresent()
to check,
if a gripper has been selected. The gripper selection can be retrieved using Optional.get()
. Note
that Optional.isPresent()
will also return false
, if this configuration was created for a
single gripper. isForMultiGripper()
can be used to check if this configuration is for a
multi-gripper device.Optional<PayloadSetting> getPayloadSetting()
This method returns the configuration of the payload setting for a Gripper node.
It is not mandatory to configure the Gripper node to apply a payload after the grip action has finished executing and the payload setting can thus be disabled/enabled. The configuration of the payload setting will not be available here if the payload setting is disabled in the Gripper node. Therefore the returned payload setting is wrapped in anOptional
, whose Optional.isPresent()
method must always be used to check if the
payload setting is enabled before accessing it using Optional.get()
.Optional
. Use Optional.isPresent()
to check, if the
payload setting is enabled (since this is an optional setting). The payload setting can then be retrieved
using Optional.get()
.Copyright © 2021. All rights reserved.