12 #ifndef ACTUATEDJOINT_H_INCLUDED 13 #define ACTUATEDJOINT_H_INCLUDED
Abstract class describing a Drive used to communicate with a CANbus device. Note that many functions ...
virtual int toDriveUnits(double jointValue)=0
Converts from the joint value to the equivalent value for the drive.
virtual double fromDriveUnits(int driveValue)=0
Converts from the drive value to the equivalent value for the joint.
virtual ControlMode setMode(ControlMode driveMode_, motorProfile profile)
Set the mode of the device (nominally, position, velocity or torque control)
virtual void readyToSwitchOn()
Set the joint ready to switch On.
virtual setMovementReturnCode_t setTorque(double torque)
Set the torque set point.
Abstract class representing an actuated joint in a Robot Class (extending joint). Requires a Drive ob...
ActuatedJoint(int jointID, double jointMin, double jointMax, Drive *drive)
Construct a new Actuated Joint object.
Drive * drive
Contains a Drive object, which is a CANOpen device which is used to control the physical hardware...
virtual setMovementReturnCode_t setPosition(double desQ)
Set the Position object.
struct to hold desired velocity, acceleration and deceleration values for a drives motor controller p...
virtual setMovementReturnCode_t setVelocity(double velocity)
Sets a velocity set point (in joint units)
ControlMode driveMode
The current mode of the drive.
bool enable()
Enable the joint.
Abstract class representing any joints within a Robot.