CORC Project
CANOpen Robot Controller Software Documentation
RobotParams.h
Go to the documentation of this file.
1 
11 #ifndef ROBOT_PARAMS_H
12 #define ROBOT_PARAMS_H
13 
14 //#define _NOANKLES //w / o ankles
15 #ifndef _NOANKLES
16 #define NUM_JOINTS 6
17 #else
18 #define NUM_JOINTS 4
19 #endif
20 // Macros
21 #define deg2rad(deg) ((deg)*M_PI / 180.0)
22 #define rad2deg(rad) ((rad)*180.0 / M_PI)
23 
29  LEFT_HIP = 0,
30  LEFT_KNEE = 1,
31  RIGHT_HIP = 2,
32  RIGHT_KNEE = 3,
33  LEFT_ANKLE = 4,
35 };
40 enum class RobotMode {
41  NORMALWALK,
42  SITDWN,
43  STNDUP,
44  UPSTAIR,
45  DWNSTAIR,
46  TILTUP,
47  TILTDWN,
48  BKSTEP,
49  FTTG,
50  UNEVEN,
51  INITIAL
52 };
57 #define KNEE_MOTOR_POS1 (250880)
58 #define KNEE_MOTOR_DEG1 (90)
59 #define KNEE_MOTOR_POS2 (0)
60 #define KNEE_MOTOR_DEG2 (0)
61 
65 #define HIP_MOTOR_POS1 (250880)
66 #define HIP_MOTOR_DEG1 (90)
67 #define HIP_MOTOR_POS2 (0)
68 #define HIP_MOTOR_DEG2 (180)
69 
73 #define ANKLE_MOTOR_POS1 (0)
74 #define ANKLE_MOTOR_DEG1 (90)
75 #define ANKLE_MOTOR_POS2 (-800000)
76 #define ANKLE_MOTOR_DEG2 (115)
77 
78 #endif /*ROBOT_PARAMS_H*/
robotJoints
Definition: RobotParams.h:28
RobotMode
Definition: RobotParams.h:40