Alex exoskeleton
ALEX SoftwareDocumentation
DummyActJoint.h
Go to the documentation of this file.
1 
11 #ifndef DUMMYACTJOINT_H_INCLUDED
12 #define DUMMYACTJOINT_H_INCLUDED
13 
14 #include "ActuatedJoint.h"
15 
22 class DummyActJoint : public ActuatedJoint {
23  private:
24  double lastQCommand = 0;
25 
26  // These functions are defined here to do essentially nothing - it's a straight 1:1 relation between drive and motor units
27  double fromDriveUnits(int driveValue) { return driveValue / 10000; };
28  int toDriveUnits(double jointValue) { return jointValue * 10000; };
29 
30  public:
31  DummyActJoint(int jointID, double jointMin, double jointMax, Drive *drive);
32  bool updateValue();
34  bool initNetwork();
35  double getQ();
36 };
37 
38 #endif
int toDriveUnits(double jointValue)
Converts from the joint value to the equivalent value for the drive.
Definition: DummyActJoint.h:28
Abstract class describing a Drive used to communicate with a CANbus device. Note that many functions ...
Definition: Drive.h:93
bool initNetwork()
Pure virtual function for initialising the underlying CANopen Network to send and recieve PDO message...
Example implementation of the ActuatedJoints class.
Definition: DummyActJoint.h:22
double fromDriveUnits(int driveValue)
Converts from the drive value to the equivalent value for the joint.
Definition: DummyActJoint.h:27
double lastQCommand
Definition: DummyActJoint.h:24
setMovementReturnCode_t
Definition: ActuatedJoint.h:21
Abstract class representing an actuated joint in a Robot Class (extending joint). Requires a Drive ob...
Definition: ActuatedJoint.h:32
DummyActJoint(int jointID, double jointMin, double jointMax, Drive *drive)
Drive * drive
Contains a Drive object, which is a CANOpen device which is used to control the physical hardware...
Definition: ActuatedJoint.h:39
bool updateValue()
Updates the value of the joint. This will read the value from hardware, and update the software's cur...
setMovementReturnCode_t setPosition(double desQ)
Set the Position object.