1 #ifndef CONTROL_MOTOR_COMMAND_H 2 #define CONTROL_MOTOR_COMMAND_H 5 #include <KrisLibrary/math/vector.h> 6 #include <KrisLibrary/math/math.h> 17 enum { OFF, TORQUE, PID, LOCKED_VELOCITY };
21 void SetPID(Real qdes,Real dqdes=Zero,Real iterm=Zero);
22 void SetTorque(Real t);
23 void SetLockedVelocity(Real vel,Real torqueMax);
24 Real GetPIDTorque(Real q,Real dq)
const;
25 void IntegratePID(Real q,Real dt);
29 bool measureAngleAbsolute;
45 void SetTorque(
const Vector& torques);
46 Real GetTorque(
int i,
double q,
double dq);
48 void ResetPIDIntegrals();
50 bool Write(File& f)
const;
52 vector<ActuatorCommand> actuators;
A collection of basic motor types.
Definition: Command.h:43
A basic motor type. Handles PID, torque, and locked velocity modes.
Definition: Command.h:15