CODeME
Complex_Dynamic_Control.h
1 
12 #ifndef COMPLEX_DYNAMIC_CONTROL_H_INCLUDED
13 #define COMPLEX_DYNAMIC_CONTROL_H_INCLUDED
14 
16 #include "Miscellaneous/Trayectory_Library.h"
17 
18 typedef struct CONTROL_DATA
19 {
20  int DOF;
21  int Links;
22  int NTP;
23  int Articulations;
24  double* Time;
25  double* Initial_Position;
26  double* Initial_Velocity;
27  double* Initial_Acceleration;
28  double* Trayectory_Parameters;
30 
31 typedef struct ROBOT_DATA
32 {
33  int DOF;
34 
36  double Density; //Links Density
37  double* Mass; //Mass Per Link
38  double* Radoius; //Radious Per Link
39  double*** Inertia; //Inertia Tensor Per Link
40 
42  double** Torque;
43  double** Position;
44  double** Velocity;
45  double** Acceleration;
46 
48  double* Gravity;
49  double* Viscous_fric;
50  double* Dynamic_fric;
51 }ROBOT_DATA;
52 
53 void Dyn_Control_Function_Parameters_Set (CONTROL_DATA* Data , double** Parameters);
54 void Dyn_Control_Function_Parameters_From_File (CONTROL_DATA* Data , char* Filename);
55 void Dyn_Control_Function_Parameters_Free (CONTROL_DATA* Data);
56 
57 double Computed_Torque_Control (CONTROL_DATA Data, ROBOT_DATA Robot, double* Opt_Parameter, FILE** pipeOut);
58 
59 double Computed_Torque_Control_Interpolation (CONTROL_DATA Data, ROBOT_DATA Robot, DATA_INTER Inter, double* Opt_Parameter, FILE** pipeOut);
60 
61 double* Joints_Positions_Torque_Error (CONTROL_DATA Data, ROBOT_DATA Robot, DATA_INTER Inter, double* Opt_Parameter, FILE** pipeOut);
62 double* Joints_Positions_Torque_Error_2 (CONTROL_DATA Data, ROBOT_DATA Robot, CUBIC_DATA Inter, double* Opt_Parameter, FILE** pipeOut);
63 double* Joints_Positions_Torque_Error_3 (CONTROL_DATA Data, ROBOT_DATA Robot, CUBIC_DATA Inter, double* Opt_Parameter, FILE** pipeOut);
64 double* Joints_Positions_Torque_Error_4 (CONTROL_DATA Data, ROBOT_DATA Robot, CUBIC_DATA Inter, double* Opt_Parameter, FILE** pipeOut);
65 
66 #endif // COMPLEX_DYNAMIC_CONTROL_H_INCLUDED
Function prototypes for the Interpolation routines.
Definition: Complex_Dynamic_Control.h:31
Definition: Trayectory_Library.h:16
double Density
Definition: Complex_Dynamic_Control.h:36
Definition: Interpolation_Algorithm.h:15
Definition: Complex_Dynamic_Control.h:18
double * Gravity
Definition: Complex_Dynamic_Control.h:48
double ** Torque
Definition: Complex_Dynamic_Control.h:42