1#ifndef BITSIM_ACTUATORS_BACKENDS_DC_MOTOR_BACKEND_BASE_H
2#define BITSIM_ACTUATORS_BACKENDS_DC_MOTOR_BACKEND_BASE_H
107 const std::string backend_type_;
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
virtual real_t speed() const =0
const std::string & backend_type_str() const noexcept
Definition dc_motor_backend_base.h:101
virtual bool is_ready() const
Definition dc_motor_backend_base.h:96
virtual real_t torque() const
Definition dc_motor_backend_base.h:90
OutputType
Definition dc_motor_backend_base.h:41
@ ANGLE
Definition dc_motor_backend_base.h:43
@ TORQUE
Definition dc_motor_backend_base.h:42
DCMotorBackendBase(const std::string &backend_type)
Definition dc_motor_backend_base.h:104
virtual OutputType output_type() const noexcept=0
virtual ~DCMotorBackendBase()=default
virtual void step(real_t dt)=0
Advance the backend by dt. A model moves its own shaft.
virtual real_t encoder_angle() const
Definition dc_motor_backend_base.h:84
virtual void set_target_speed(real_t speed)=0
Set the target speed of the output shaft [rad/s].
virtual real_t angle() const =0
Definition dc_motor_backend_base.h:23
Definition dc_motor_backend_base.h:11
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20
The state of the output shaft of a motor, as a simulator sees it.
Definition dc_motor_backend_base.h:17
real_t speed
[rad/s]
Definition dc_motor_backend_base.h:19
real_t angle
[rad]
Definition dc_motor_backend_base.h:18