virtual bool setPos(int position)
virtual bool initPosControl(motorProfile posControlMotorProfile)=0
virtual DriveState getDriveState()
Get the current state of the drive.
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 bool enable()
Sets the state of the drive to "enabled".
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.
ActuatedJoint(int jointID, double jointMin, double jointMax, Drive *drive)
Construct a new Actuated Joint object.
virtual bool readyToSwitchOn()
Changes the state of the drive to "ready to switch on".
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 bool setVel(int velocity)
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.
virtual bool posControlConfirmSP()
Flips Bit 4 of Control Word (0x6041) - A new set point is only confirmed if the transition is from 0 ...
Abstract class representing any joints within a Robot.