class GripperCommand

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
modeuint32Mode in which to control the gripper
gripperGripperGripper movement values
durationuint32Duration constraint. If not 0, allows to set a limit (in seconds) to the GripperCommand

Member functions

Function nameReturn typeInput typeDescription
mode() constuint32voidReturns the current value of mode. If the mode is not set, returns 0.
set_mode()voiduint32Sets the value of mode. After calling this, mode() will return value.
clear_mode()voidvoidClears the value of mode. After calling this, mode() will return the empty string/empty bytes.
has_gripper() constboolvoidReturns true if gripper is set.
gripper()const Gripper&voidReturns the current value of gripper. If gripper is not set, returns a Gripper with none of its fields set (possibly gripper::default_instance()).
mutable_gripper()Gripper *voidReturns a pointer to the mutable Gripper object that stores the field's value. If the field was not set prior to the call, then the returned Gripper will have none of its fields set (i.e. it will be identical to a newly-allocated Gripper). After calling this, has_gripper() will return true and gripper() will return a reference to the same instance of Gripper.
clear_gripper()voidvoidClears the value of the field. After calling this, has_gripper() will return false and gripper() will return the default value.
set_allocated_gripper()voidGripper *Sets the Gripper object to the field and frees the previous field value if it exists. If the Gripper pointer is not NULL, the message takes ownership of the allocated Gripper object and has_ Gripper() will return true. Otherwise, if the gripper is NULL, the behavior is the same as calling clear_gripper().
release_gripper()Gripper *voidReleases the ownership of the field and returns the pointer of the Gripper object. After calling this, caller takes the ownership of the allocated Gripper object, has_gripper() will return false, and gripper() will return the default value.
duration()uint32voidReturns the current value of duration. If the duration is not set, returns 0.
set_duration()voiduint32Sets the value of duration. After calling this, duration() will return value.
clear_duration()voidvoidClears the value of duration. After calling this, duration() will return 0.

Parent topic: Base (C++)