Alex exoskeleton
ALEX SoftwareDocumentation
Joint.h
Go to the documentation of this file.
1 
11 #ifndef JOINT_H_INCLUDED
12 #define JOINT_H_INCLUDED
13 #include <iostream>
14 
19 class Joint {
20  protected:
25  const int id;
29  double q;
34  const double qMin, qMax;
35 
36  public:
44  Joint(int jointID, double jointMin, double jointMax);
45 
54  Joint(int jointID, double jointMin, double jointMax, double q0);
55 
60  ~Joint();
61 
67  int getId();
68 
82  double getQ();
87  void getStatus();
95  virtual bool updateValue() = 0;
103  virtual bool initNetwork() = 0;
104 };
105 
106 #endif
~Joint()
Destroy the Joint object.
Definition: Joint.cpp:23
const double qMin
Definition: Joint.h:34
Joint(int jointID, double jointMin, double jointMax)
Construct a new Joint object.
Definition: Joint.cpp:16
double q
Definition: Joint.h:29
double getQ()
Returns the internal value of the joint (e.g. Angle, length, depending on joint type) ...
Definition: Joint.cpp:30
void getStatus()
prints out the status of the joints current position in degrees
Definition: Joint.cpp:34
const int id
Definition: Joint.h:25
virtual bool updateValue()=0
Updates the value of the joint. This will read the value from hardware, and update the software&#39;s cur...
Abstract class representing any joints within a Robot.
Definition: Joint.h:19
virtual bool initNetwork()=0
Pure virtual function for initialising the underlying CANopen Network to send and recieve PDO message...
int getId()
Get the Id object.
Definition: Joint.cpp:26
const double qMax
Definition: Joint.h:34