class Feedback
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| frame_id | uint32 | Frame ID |
| base | BaseFeedback | Base feedback |
| actuators | ActuatorFeedback | Actuator feedback |
| interconnect | Feedback | Interface feedback |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| frame_id() | uint32 | void | Returns the current value of frame_id. If the frame_id is not set, returns 0. |
| set_frame_id() | void | uint32 | Sets the value of frame_id. After calling this, frame_id() will return value. |
| clear_frame_id() | void | void | Clears the value of frame_id. After calling this, frame_id() will return 0. |
| has_base() const | bool | void | Returns true if base is set. |
| base() | const BaseFeedback& | void | Returns 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 * | void | Returns 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() | void | void | Clears the value of the field. After calling this, has_base() will return false and base() will return the default value. |
| set_allocated_base() | void | BaseFeedback * | 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 * | void | Releases 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() const | int | void | Returns the number of elements currently in the field. |
| actuators() const | const ActuatorFeedback | int index | Returns 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 index | Returns 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* | void | Adds 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() | void | void | Removes all elements from the field. After calling this, actuators_size() will return zero. |
| actuators() const | const RepeatedPtrField< ActuatorFeedback>& | void | Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods. |
| mutable_actuators() | RepeatedPtrField< ActuatorFeedback>* | void | Returns 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() const | bool | void | Returns true if interconnect is set. |
| interconnect() | const Feedback& | void | Returns 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 * | void | Returns 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() | void | void | Clears the value of the field. After calling this, has_interconnect() will return false and interconnect() will return the default value. |
| set_allocated_interconnect() | void | Feedback * | 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 * | void | Releases 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++)