Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
Loading...
Searching...
No Matches
gait2d_osim_contact.h
Go to the documentation of this file.
1// gait2d_osim_contact.h
2// This file defines things needed in the contact model
3
4#define NCVAR 4 // number of state variables for each contact element
5#define NCEQ 4 // number of equality constraints (f=0) for each contact element
6#define NCINEQ 0 // number of inequality constraints (f>0) for each contact element
7#define NCF 4 // total number of f's for each contact element
8
9typedef struct {
10 int segment; // Which body segment it is attached to (referring to my forward kinematic segment list)
11 int grfseg; // Which GRF segment this contact point contributes to (referring to my GRF array)
12 double xp,yp; // Position of contact element on body segment
14
15// prototype for the Autolev C function for contact deformation
16void contact_al(contactprop* contact, // parameters for one contact point
17 double fk[6], double fkdot[6], double x[NCVAR], double xdot[NCVAR], // inputs for one contact point
18 double f[NCF], double df_dfk[NCF][6], double df_dfkdot[NCF][6], // outputs
19 double df_dx[NCF][NCVAR], double df_dxdot[NCF][NCVAR]);
double df_dx[4][4]
Definition: contact_2d_raw.c:21
double f[4]
Definition: contact_2d_raw.c:20
double df_dxdot[4][4]
Definition: contact_2d_raw.c:21
double df_dfk[4][6]
Definition: contact_2d_raw.c:20
double df_dfkdot[4][6]
Definition: contact_2d_raw.c:20
double fkdot[48]
Definition: gait10dof18musc_FK_raw.c:24
double fk[48]
Definition: gait10dof18musc_FK_raw.c:24
#define NCVAR
Definition: gait2d_osim_contact.h:4
#define NCF
Definition: gait2d_osim_contact.h:7
void contact_al(contactprop *contact, double fk[6], double fkdot[6], double x[NCVAR], double xdot[NCVAR], double f[NCF], double df_dfk[NCF][6], double df_dfkdot[NCF][6], double df_dx[NCF][NCVAR], double df_dxdot[NCF][NCVAR])
Definition: gait2d_osim_contact.h:9
int segment
Definition: gait2d_osim_contact.h:10
int grfseg
Definition: gait2d_osim_contact.h:11
double xp
Definition: gait2d_osim_contact.h:12