public interface UndefinedActionConfig extends GripperNodeConfig
GripperNodeConfig.ConfigType| Modifier and Type | Method and Description |
|---|---|
Optional<SelectableGripper> |
getGripperSelection()
This method returns the individual gripper selected in a Gripper node that uses a multi-gripper device, i.e.
|
boolean |
isForMultiGripper()
Determine if this configuration is a multi-gripper configuration.
|
getConfigTypeboolean 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 falseOptional<SelectableGripper> getGripperSelection()
This method returns the individual gripper 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.Copyright © 2020. All rights reserved.