class PositionCommand
August 13, 2019 ยท View on GitHub
Member values
| Member name | Data type | Description |
|---|---|---|
| position | float32 | Position value (degrees) |
| velocity | float32 | Velocity value (degrees per second) |
| acceleration | float32 | Acceleration value (degrees per second^squared) |
Member functions
| Function name | Return type | Input type | Description |
|---|---|---|---|
| position() | float32 | void | Returns the current value of position. If the position is not set, returns 0. |
| set_position() | void | float32 | Sets the value of position. After calling this, position() will return value. |
| clear_position() | void | void | Clears the value of position. After calling this, position() will return 0. |
| velocity() | float32 | void | Returns the current value of velocity. If the velocity is not set, returns 0. |
| set_velocity() | void | float32 | Sets the value of velocity. After calling this, velocity() will return value. |
| clear_velocity() | void | void | Clears the value of velocity. After calling this, velocity() will return 0. |
| acceleration() | float32 | void | Returns the current value of acceleration. If the acceleration is not set, returns 0. |
| set_acceleration() | void | float32 | Sets the value of acceleration. After calling this, acceleration() will return value. |
| clear_acceleration() | void | void | Clears the value of acceleration. After calling this, acceleration() will return 0. |
Parent topic: ActuatorConfig (C++)