|
librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/LinearPositionController.h>
Public Types | |
| using | ConversionUnit |
| using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Public Member Functions | |
| virtual void | setPosition (units::meter_t position)=0 |
| virtual units::meter_t | getTargetPosition () const =0 |
| virtual void | setPower (double power)=0 |
| virtual double | getPower () const =0 |
| virtual units::meter_t | getMinPosition () const =0 |
| virtual units::meter_t | getMaxPosition () 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::meter_t | getTolerance () const =0 |
| virtual units::meter_t | getError () const |
| virtual bool | atTarget () const |
Interface for controlling a mechanism's linear position used by wrappers of device specific APIs.
| using rmb::LinearPositionController::ConversionUnit |
Common interface for getting whether the mechanism has achived it's target velocity.
Common interface for disabling a mechanism.
|
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 getting the maximum linear position.
|
pure virtual |
Common interface for getting the minimum linear position.
|
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 position.
|
pure virtual |
Common interface for getting a controllers tolerance
|
pure virtual |
Common interface for returning the linear velocity of an encoder.
|
pure virtual |
Common interface for setting the reported encoder position
| position | The position to report |
Common interface for setting the target linear position.
| position | The target linear position in meters. |
Common interface for setting a mechanism's raw power output.
Common interface to stop the mechanism until setPosition is called again.