class TorqueCalibration

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
global_gainfloat32Global gain value
global_offsetfloat32Global offset value
gainfloat32Gain (index 0 to 3)
offsetfloat32Offset (index 0 to 3)

Member functions

Function nameReturn typeInput typeDescription
global_gain()float32voidReturns the current value of global_gain. If the global_gain is not set, returns 0.
set_global_gain()voidfloat32Sets the value of global_gain. After calling this, global_gain() will return value.
clear_global_gain()voidvoidClears the value of global_gain. After calling this, global_gain() will return 0.
global_offset()float32voidReturns the current value of global_offset. If the global_offset is not set, returns 0.
set_global_offset()voidfloat32Sets the value of global_offset. After calling this, global_offset() will return value.
clear_global_offset()voidvoidClears the value of global_offset. After calling this, global_offset() will return 0.
gain_size() constintvoidReturns the number of elements currently in the field.
gain() constintint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, gain_size()) yields undefined behavior.
set_gain()void(int index, int32 value)Sets the value of the element at the given zero-based index.
add_gain()void(int32 value)Appends a new element to the field with the given value.
clear_gain()voidvoidRemoves all elements from the field. After calling this, gain_size() will return zero.
gain() constconst RepeatedField<int32>&voidReturns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_gain()RepeatedField<int32>*voidReturns a pointer to the underlying mutable RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
offset_size() constintvoidReturns the number of elements currently in the field.
offset() constintint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, offset_size()) yields undefined behavior.
set_offset()void(int index, int32 value)Sets the value of the element at the given zero-based index.
add_offset()void(int32 value)Appends a new element to the field with the given value.
clear_offset()voidvoidRemoves all elements from the field. After calling this, offset_size() will return zero.
offset() constconst RepeatedField<int32>&voidReturns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_offset()RepeatedField<int32>*voidReturns a pointer to the underlying mutable RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: ActuatorConfig (C++)