class Feedback

August 13, 2019 · View on GitHub

Member values

Member nameData typeDescription
feedback_idMessageIdMessageId
status_flagsuint32Status flags (see GripperConfig.RobotiqGripperStatusFlags)
fault_bank_auint32Fault bank A (see GripperConfig.SafetyIdentifier)
fault_bank_buint32Fault bank B (see GripperConfig.SafetyIdentifier)
warning_bank_auint32Warning bank A (see GripperConfig.SafetyIdentifier)
warning_bank_buint32Warning bank B (see GripperConfig.SafetyIdentifier)
motorMotorFeedback 

Member functions

Function nameReturn typeInput typeDescription
has_feedback_id() constboolvoidReturns true if feedback_id is set.
feedback_id()const MessageId&voidReturns the current value of feedback_id. If feedback_id is not set, returns a MessageId with none of its fields set (possibly feedback_id::default_instance()).
mutable_feedback_id()MessageId *voidReturns a pointer to the mutable MessageId object that stores the field's value. If the field was not set prior to the call, then the returned MessageId will have none of its fields set (i.e. it will be identical to a newly-allocated MessageId). After calling this, has_feedback_id() will return true and feedback_id() will return a reference to the same instance of MessageId.
clear_feedback_id()voidvoidClears the value of the field. After calling this, has_feedback_id() will return false and feedback_id() will return the default value.
set_allocated_feedback_id()voidMessageId *Sets the MessageId object to the field and frees the previous field value if it exists. If the MessageId pointer is not NULL, the message takes ownership of the allocated MessageId object and has_ MessageId() will return true. Otherwise, if the feedback_id is NULL, the behavior is the same as calling clear_feedback_id().
release_feedback_id()MessageId *voidReleases the ownership of the field and returns the pointer of the MessageId object. After calling this, caller takes the ownership of the allocated MessageId object, has_feedback_id() will return false, and feedback_id() will return the default value.
status_flags()uint32voidReturns the current value of status_flags. If the status_flags is not set, returns 0.
set_status_flags()voiduint32Sets the value of status_flags. After calling this, status_flags() will return value.
clear_status_flags()voidvoidClears the value of status_flags. After calling this, status_flags() will return 0.
fault_bank_a()uint32voidReturns the current value of fault_bank_a. If the fault_bank_a is not set, returns 0.
set_fault_bank_a()voiduint32Sets the value of fault_bank_a. After calling this, fault_bank_a() will return value.
clear_fault_bank_a()voidvoidClears the value of fault_bank_a. After calling this, fault_bank_a() will return 0.
fault_bank_b()uint32voidReturns the current value of fault_bank_b. If the fault_bank_b is not set, returns 0.
set_fault_bank_b()voiduint32Sets the value of fault_bank_b. After calling this, fault_bank_b() will return value.
clear_fault_bank_b()voidvoidClears the value of fault_bank_b. After calling this, fault_bank_b() will return 0.
warning_bank_a()uint32voidReturns the current value of warning_bank_a. If the warning_bank_a is not set, returns 0.
set_warning_bank_a()voiduint32Sets the value of warning_bank_a. After calling this, warning_bank_a() will return value.
clear_warning_bank_a()voidvoidClears the value of warning_bank_a. After calling this, warning_bank_a() will return 0.
warning_bank_b()uint32voidReturns the current value of warning_bank_b. If the warning_bank_b is not set, returns 0.
set_warning_bank_b()voiduint32Sets the value of warning_bank_b. After calling this, warning_bank_b() will return value.
clear_warning_bank_b()voidvoidClears the value of warning_bank_b. After calling this, warning_bank_b() will return 0.
motor_size() constintvoidReturns the number of elements currently in the field.
motor() constconst MotorFeedbackint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, motor_size()) yields undefined behavior.
mutable_motor()MotorFeedback*int indexReturns a pointer to the mutable MotorFeedback object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, motor_size()) yields undefined behavior.
add_motor()MotorFeedback*voidAdds a new element and returns a pointer to it. The returned MotorFeedback is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated MotorFeedback).
clear_motor()voidvoidRemoves all elements from the field. After calling this, motor_size() will return zero.
motor() constconst RepeatedPtrField< MotorFeedback>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_motor()RepeatedPtrField< MotorFeedback>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: GripperCyclic (C++)