librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/LinearVelocityController.h>
Public Types | |
using | ConversionUnit |
using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Public Member Functions | |
virtual void | setVelocity (units::meters_per_second_t velocity)=0 |
virtual units::meters_per_second_t | getTargetVelocity () const =0 |
virtual void | setPower (double power)=0 |
virtual double | getPower () const =0 |
virtual void | disable ()=0 |
virtual void | stop ()=0 |
virtual units::meters_per_second_t | getVelocity () const =0 |
virtual units::meter_t | getPosition () const =0 |
virtual void | setEncoderPosition (units::meter_t position=0_m)=0 |
virtual units::meters_per_second_t | getTolerance () const =0 |
virtual units::meters_per_second_t | getError () const |
virtual bool | atTarget () const |
Interface for controlling a mechanism's linear velocity used by wrappers of device specific APIs.
using rmb::LinearVelocityController::ConversionUnit |
Common interface for getting whether the mechanism has achived it's target velocity.
Common interface for disabling a mechanism.
Implemented in rmb::LinearFeedforwardController.
|
inlinevirtual |
Common interface for getting the error between the velocities controllers target velocity and the actual velocity measured by the encoder.
|
pure virtual |
Common interface for returning the linear position of an encoder.
Retrieve the percentage [0.0, 1.0] output of the motor
|
pure virtual |
Common interface for getting the target linear velocity.
Implemented in rmb::LinearFeedforwardController.
|
pure virtual |
Common interface for getting a controllers tolerance
|
pure virtual |
Common interface for returning the linear velocity of an encoder.
|
pure virtual |
Sets the encoder's reported position
position | The position to reset the reference to. Defaults to 0 |
Common interface for setting a mechanism's raw power output.
|
pure virtual |
Common interface for setting the target linear velocity.
velocity | The target linear velocity in meters per second. |
Implemented in rmb::LinearFeedforwardController.
Common interface to stop the mechanism until setPosition
is called again.
Implemented in rmb::LinearFeedforwardController.