34#include <NDEVR/Device.h>
35#include <NDEVR/Angle.h>
53 [[nodiscard]]
virtual bool activated()
const {
return m_activated; };
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
A root class which describes some physical object, such as a Motor, Sensor, or Connection....
Definition Device.h:52
Definition Matrix.hpp:176
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
A motor is a device which produces rotational spin. This could be anything from a servo motor to a ra...
Definition Motor.h:44
Matrix< fltp08 > m_model_transform_offset
Definition Motor.h:78
virtual void setSpeed(const Angle< fltp08 > &speed)
virtual Angle< fltp08 > parkAngle() const
Definition Motor.h:49
virtual bool supportsSetSpeed() const
virtual void updateModel()
Angle< fltp08 > m_preferred_speed
Definition Motor.h:76
Vector< 3, fltp08 > m_axis_of_rotation
Definition Motor.h:73
virtual Angle< fltp08 > preferredSpeed() const
Definition Motor.h:50
Angle< fltp08 > m_current_angle
Definition Motor.h:74
void setTarget(const Angle< fltp08 > &location)
virtual bool activated() const
Definition Motor.h:53
Angle< fltp08 > m_park_angle
Definition Motor.h:79
virtual Bounds< 2, Angle< fltp08 > > speedRange() const
Definition Motor.h:64
virtual void setAxisOfRotation(const Vector< 3, fltp08 > &rotation_axis)
virtual void setParkAngle(const Angle< fltp08 > &location)
Motor(const Model &model, ProgressInfo *log=nullptr, QObject *parent=nullptr)
virtual Angle< fltp08 > speed() const
Definition Motor.h:48
Angle< fltp08 > m_current_speed
Definition Motor.h:75
virtual void setModelTransformOffset(const Matrix< fltp08 > &offset)
virtual void parkMotor(const Angle< fltp08 > &speed)
Angle< fltp08 > m_target_angle
Definition Motor.h:77
virtual void setActivated(bool activated)
virtual bool supportsMoveTo() const
virtual Angle< fltp08 > location() const
bool m_activated
Definition Motor.h:82
virtual void setLocation(const Angle< fltp08 > &location)
fltp08 m_torque_limit
Definition Motor.h:81
virtual void setTarget(const Angle< fltp08 > &location, const Angle< fltp08 > &speed)
Time m_initial_target_time
Definition Motor.h:80
virtual void setPreferredSpeed(const Angle< fltp08 > &location)
Definition Motor.h:59
Bounds< 1, Angle< fltp08 > > m_bounds
Definition Motor.h:72
virtual void setTorqueLimit(fltp08 limit)
Definition Motor.h:61
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233