6#include <units/angle.h>
7#include <units/length.h>
9#include <units/velocity.h>
13class AngularVelocityController;
32 virtual void setVelocity(units::meters_per_second_t velocity) = 0;
92 virtual units::meters_per_second_t
getError()
const {
110 using ConversionUnit =
111 units::compound_unit<units::meters, units::inverse<units::radians>>;
112 using ConversionUnit_t = units::unit_t<ConversionUnit>;
125std::unique_ptr<AngularVelocityController>
126asAngular(std::unique_ptr<LinearVelocityController> linearController,
127 LinearVelocityController::ConversionUnit_t conversion);
Definition LinearVelocityController.h:19
virtual units::meters_per_second_t getVelocity() const =0
virtual units::meters_per_second_t getTolerance() const =0
virtual void setPower(double power)=0
virtual void setVelocity(units::meters_per_second_t velocity)=0
virtual double getPower() const =0
virtual units::meters_per_second_t getTargetVelocity() const =0
virtual bool atTarget() const
Definition LinearVelocityController.h:102
virtual units::meter_t getPosition() const =0
virtual units::meters_per_second_t getError() const
Definition LinearVelocityController.h:92
virtual void setEncoderPosition(units::meter_t position=0_m)=0
the master namespace of librmb
Definition LogitechGamepad.h:9
std::unique_ptr< AngularPositionController > asAngular(std::unique_ptr< LinearPositionController > linearController, LinearPositionController::ConversionUnit_t conversion)