class TorqueCalibration
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| global_gain | float32 | Global gain value |
| global_offset | float32 | Global offset value |
| gain | float32 | Gain (index 0 to 3) |
| offset | float32 | Offset (index 0 to 3) |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| global_gain() | float32 | void | Returns the current value of global_gain. If the global_gain is not set, returns 0. |
| set_global_gain() | void | float32 | Sets the value of global_gain. After calling this, global_gain() will return value. |
| clear_global_gain() | void | void | Clears the value of global_gain. After calling this, global_gain() will return 0. |
| global_offset() | float32 | void | Returns the current value of global_offset. If the global_offset is not set, returns 0. |
| set_global_offset() | void | float32 | Sets the value of global_offset. After calling this, global_offset() will return value. |
| clear_global_offset() | void | void | Clears the value of global_offset. After calling this, global_offset() will return 0. |
| gain_size() const | int | void | Returns the number of elements currently in the field. |
| gain() const | int | int index | Returns 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() | void | void | Removes all elements from the field. After calling this, gain_size() will return zero. |
| gain() const | const RepeatedField<int32>& | void | Returns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods. |
| mutable_gain() | RepeatedField<int32>* | void | Returns 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() const | int | void | Returns the number of elements currently in the field. |
| offset() const | int | int index | Returns 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() | void | void | Removes all elements from the field. After calling this, offset_size() will return zero. |
| offset() const | const RepeatedField<int32>& | void | Returns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods. |
| mutable_offset() | RepeatedField<int32>* | void | Returns 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++)