public interface CustomPayloadParameters extends PayloadSetting
PayloadSetting.SettingType
Modifier and Type | Method and Description |
---|---|
Optional<Mass> |
getPayloadMass()
This method returns the total payload mass (if any is specified) to be applied after the gripper action has
finished executing.
|
getSettingType
Optional<Mass> getPayloadMass()
This method returns the total payload mass (if any is specified) to be applied after the gripper action has finished executing.
The payload setting on the Gripper node can be enabled with no payload mass specified (the associated 'Set Total Payload' payload mass field is empty). Therefore the payload mass is wrapped in anOptional
, whose
Optional.isPresent()
method must always be used to check if a payload mass has been specified before
accessing it using Optional.get()
.Optional
. Use Optional.isPresent()
to verify that a
payload mass value has been specified before using Optional.get()
to retrieve it.Copyright © 2021. All rights reserved.