class Feedback

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
frame_iduint32Frame ID
baseBaseFeedbackBase feedback
actuatorsActuatorFeedbackActuator feedback
interconnectFeedbackInterface feedback

Member functions

Function nameReturn typeInput typeDescription
frame_id()uint32voidReturns the current value of frame_id. If the frame_id is not set, returns 0.
set_frame_id()voiduint32Sets the value of frame_id. After calling this, frame_id() will return value.
clear_frame_id()voidvoidClears the value of frame_id. After calling this, frame_id() will return 0.
has_base() constboolvoidReturns true if base is set.
base()const BaseFeedback&voidReturns the current value of base. If base is not set, returns a BaseFeedback with none of its fields set (possibly base::default_instance()).
mutable_base()BaseFeedback *voidReturns a pointer to the mutable BaseFeedback object that stores the field's value. If the field was not set prior to the call, then the returned BaseFeedback will have none of its fields set (i.e. it will be identical to a newly-allocated BaseFeedback). After calling this, has_base() will return true and base() will return a reference to the same instance of BaseFeedback.
clear_base()voidvoidClears the value of the field. After calling this, has_base() will return false and base() will return the default value.
set_allocated_base()voidBaseFeedback *Sets the BaseFeedback object to the field and frees the previous field value if it exists. If the BaseFeedback pointer is not NULL, the message takes ownership of the allocated BaseFeedback object and has_ BaseFeedback() will return true. Otherwise, if the base is NULL, the behavior is the same as calling clear_base().
release_base()BaseFeedback *voidReleases the ownership of the field and returns the pointer of the BaseFeedback object. After calling this, caller takes the ownership of the allocated BaseFeedback object, has_base() will return false, and base() will return the default value.
actuators_size() constintvoidReturns the number of elements currently in the field.
actuators() constconst ActuatorFeedbackint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, actuators_size()) yields undefined behavior.
mutable_actuators()ActuatorFeedback*int indexReturns a pointer to the mutable ActuatorFeedback object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, actuators_size()) yields undefined behavior.
add_actuators()ActuatorFeedback*voidAdds a new element and returns a pointer to it. The returned ActuatorFeedback is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated ActuatorFeedback).
clear_actuators()voidvoidRemoves all elements from the field. After calling this, actuators_size() will return zero.
actuators() constconst RepeatedPtrField< ActuatorFeedback>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_actuators()RepeatedPtrField< ActuatorFeedback>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
has_interconnect() constboolvoidReturns true if interconnect is set.
interconnect()const Feedback&voidReturns the current value of interconnect. If interconnect is not set, returns a Feedback with none of its fields set (possibly interconnect::default_instance()).
mutable_interconnect()Feedback *voidReturns a pointer to the mutable Feedback object that stores the field's value. If the field was not set prior to the call, then the returned Feedback will have none of its fields set (i.e. it will be identical to a newly-allocated Feedback). After calling this, has_interconnect() will return true and interconnect() will return a reference to the same instance of Feedback.
clear_interconnect()voidvoidClears the value of the field. After calling this, has_interconnect() will return false and interconnect() will return the default value.
set_allocated_interconnect()voidFeedback *Sets the Feedback object to the field and frees the previous field value if it exists. If the Feedback pointer is not NULL, the message takes ownership of the allocated Feedback object and has_ Feedback() will return true. Otherwise, if the interconnect is NULL, the behavior is the same as calling clear_interconnect().
release_interconnect()Feedback *voidReleases the ownership of the field and returns the pointer of the Feedback object. After calling this, caller takes the ownership of the allocated Feedback object, has_interconnect() will return false, and interconnect() will return the default value.

Parent topic: BaseCyclic (C++)