class CustomData

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
frame_iduint32Frame ID
custom_data_0uint32Custom data word 0
custom_data_1uint32Custom data word 1
custom_data_2uint32Custom data word 2
custom_data_3uint32Custom data word 3
custom_data_4uint32Custom data word 4
custom_data_5uint32Custom data word 5
custom_data_6uint32Custom data word 6
custom_data_7uint32Custom data word 7
actuators_custom_dataActuatorCustomDataActuator custom data (repeated)
interconnect_custom_dataCustomDataInterconnect custom data

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.
custom_data_0()uint32voidReturns the current value of custom_data_0. If the custom_data_0 is not set, returns 0.
set_custom_data_0()voiduint32Sets the value of custom_data_0. After calling this, custom_data_0() will return value.
clear_custom_data_0()voidvoidClears the value of custom_data_0. After calling this, custom_data_0() will return 0.
custom_data_1()uint32voidReturns the current value of custom_data_1. If the custom_data_1 is not set, returns 0.
set_custom_data_1()voiduint32Sets the value of custom_data_1. After calling this, custom_data_1() will return value.
clear_custom_data_1()voidvoidClears the value of custom_data_1. After calling this, custom_data_1() will return 0.
custom_data_2()uint32voidReturns the current value of custom_data_2. If the custom_data_2 is not set, returns 0.
set_custom_data_2()voiduint32Sets the value of custom_data_2. After calling this, custom_data_2() will return value.
clear_custom_data_2()voidvoidClears the value of custom_data_2. After calling this, custom_data_2() will return 0.
custom_data_3()uint32voidReturns the current value of custom_data_3. If the custom_data_3 is not set, returns 0.
set_custom_data_3()voiduint32Sets the value of custom_data_3. After calling this, custom_data_3() will return value.
clear_custom_data_3()voidvoidClears the value of custom_data_3. After calling this, custom_data_3() will return 0.
custom_data_4()uint32voidReturns the current value of custom_data_4. If the custom_data_4 is not set, returns 0.
set_custom_data_4()voiduint32Sets the value of custom_data_4. After calling this, custom_data_4() will return value.
clear_custom_data_4()voidvoidClears the value of custom_data_4. After calling this, custom_data_4() will return 0.
custom_data_5()uint32voidReturns the current value of custom_data_5. If the custom_data_5 is not set, returns 0.
set_custom_data_5()voiduint32Sets the value of custom_data_5. After calling this, custom_data_5() will return value.
clear_custom_data_5()voidvoidClears the value of custom_data_5. After calling this, custom_data_5() will return 0.
custom_data_6()uint32voidReturns the current value of custom_data_6. If the custom_data_6 is not set, returns 0.
set_custom_data_6()voiduint32Sets the value of custom_data_6. After calling this, custom_data_6() will return value.
clear_custom_data_6()voidvoidClears the value of custom_data_6. After calling this, custom_data_6() will return 0.
custom_data_7()uint32voidReturns the current value of custom_data_7. If the custom_data_7 is not set, returns 0.
set_custom_data_7()voiduint32Sets the value of custom_data_7. After calling this, custom_data_7() will return value.
clear_custom_data_7()voidvoidClears the value of custom_data_7. After calling this, custom_data_7() will return 0.
actuators_custom_data_size() constintvoidReturns the number of elements currently in the field.
actuators_custom_data() constconst ActuatorCustomDataint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, actuators_custom_data_size()) yields undefined behavior.
mutable_actuators_custom_data()ActuatorCustomData*int indexReturns a pointer to the mutable ActuatorCustomData object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, actuators_custom_data_size()) yields undefined behavior.
add_actuators_custom_data()ActuatorCustomData*voidAdds a new element and returns a pointer to it. The returned ActuatorCustomData is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated ActuatorCustomData).
clear_actuators_custom_data()voidvoidRemoves all elements from the field. After calling this, actuators_custom_data_size() will return zero.
actuators_custom_data() constconst RepeatedPtrField< ActuatorCustomData>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_actuators_custom_data()RepeatedPtrField< ActuatorCustomData>*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_custom_data() constboolvoidReturns true if interconnect_custom_data is set.
interconnect_custom_data()const CustomData&voidReturns the current value of interconnect_custom_data. If interconnect_custom_data is not set, returns a CustomData with none of its fields set (possibly interconnect_custom_data::default_instance()).
mutable_interconnect_custom_data()CustomData *voidReturns a pointer to the mutable CustomData object that stores the field's value. If the field was not set prior to the call, then the returned CustomData will have none of its fields set (i.e. it will be identical to a newly-allocated CustomData). After calling this, has_interconnect_custom_data() will return true and interconnect_custom_data() will return a reference to the same instance of CustomData.
clear_interconnect_custom_data()voidvoidClears the value of the field. After calling this, has_interconnect_custom_data() will return false and interconnect_custom_data() will return the default value.
set_allocated_interconnect_custom_data()voidCustomData *Sets the CustomData object to the field and frees the previous field value if it exists. If the CustomData pointer is not NULL, the message takes ownership of the allocated CustomData object and has_ CustomData() will return true. Otherwise, if the interconnect_custom_data is NULL, the behavior is the same as calling clear_interconnect_custom_data().
release_interconnect_custom_data()CustomData *voidReleases the ownership of the field and returns the pointer of the CustomData object. After calling this, caller takes the ownership of the allocated CustomData object, has_interconnect_custom_data() will return false, and interconnect_custom_data() will return the default value.

Parent topic: BaseCyclic (C++)