Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "mex.h"
#include "gait10dof18musc.h"
Macros | |
#define | EXTRACTINERTIAL(S, NUM) |
#define | JACOBIANSIZING 0 |
#define | MAXCONTACTS 20 |
#define | MAXMUSCLES 18 |
#define | MAXPWR 4 |
#define | MAXSTATES (2*NDOF+2*MAXMUSCLES+NCVAR*MAXCONTACTS) |
Functions | |
double | extract (const mxArray *P, char *fieldname1, unsigned int i1) |
double | extract2 (const mxArray *P, char *fieldname1, unsigned int i1, char *fieldname2, unsigned int i2) |
void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
double | MuscleDynamics (muscleprop *m, double a, double s, double sdot, double Lm, double *df_da, double *df_ds, double *df_dsdot, double *df_dLm, double *force, double *dforce_dLm, double *dforce_ds, double *forceCE, double *dforceCE_da, double *dforceCE_ds, double *dforceCE_dsdot, double *powerCE) |
void | MusclePaths (double q[NDOF], double Lm[MAXMUSCLES], double dLm_dq[MAXMUSCLES][NDOF], double dLm_dqdq[MAXMUSCLES][NDOF][NDOF], int derivatives) |
Variables | |
static contactprop | contacts [MAXCONTACTS] |
static int | initialized = 0 |
static jointprop | joints [NDOF] |
static muscleprop | muscles [MAXMUSCLES] |
static int | ncontacts |
static int | nf |
static int | nmuscles |
static int | nstates |
static int | nstrainterms |
static param_struct | parameters |
static double | straincoeff [MAXPOLTERMS] |
static int | strainexpon [MAXPOLTERMS][NDOF] |
static double | zeros [MAXSTATES] |
#define EXTRACTINERTIAL | ( | S, | |
NUM | |||
) |
#define JACOBIANSIZING 0 |
#define MAXCONTACTS 20 |
#define MAXMUSCLES 18 |
#define MAXPWR 4 |
#define MAXSTATES (2*NDOF+2*MAXMUSCLES+NCVAR*MAXCONTACTS) |
double extract | ( | const mxArray * | P, |
char * | fieldname1, | ||
unsigned int | i1 | ||
) |
double extract2 | ( | const mxArray * | P, |
char * | fieldname1, | ||
unsigned int | i1, | ||
char * | fieldname2, | ||
unsigned int | i2 | ||
) |
void mexFunction | ( | int | nlhs, |
mxArray * | plhs[], | ||
int | nrhs, | ||
const mxArray * | prhs[] | ||
) |
double MuscleDynamics | ( | muscleprop * | m, |
double | a, | ||
double | s, | ||
double | sdot, | ||
double | Lm, | ||
double * | df_da, | ||
double * | df_ds, | ||
double * | df_dsdot, | ||
double * | df_dLm, | ||
double * | force, | ||
double * | dforce_dLm, | ||
double * | dforce_ds, | ||
double * | forceCE, | ||
double * | dforceCE_da, | ||
double * | dforceCE_ds, | ||
double * | dforceCE_dsdot, | ||
double * | powerCE | ||
) |
void MusclePaths | ( | double | q[NDOF], |
double | Lm[MAXMUSCLES], | ||
double | dLm_dq[MAXMUSCLES][NDOF], | ||
double | dLm_dqdq[MAXMUSCLES][NDOF][NDOF], | ||
int | derivatives | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |