Go to the documentation of this file.
18 for (j = 1; j <= 6; j++)
20 psens->
J[j] = (
double*) calloc(njoint + 1,
sizeof(
double));
21 psens->
J[j][0] = njoint;
29 for (i = 1; i <= 3; i++)
36 for (j = 1; j <= 3; j++)
41 for (i = 1; i <= 6; i++)
42 for (j = 1; j <= njoint; j++)
53 for (j = 1; j <= 6; j++)
void allocate_sensor(MbsSensor *psens, int njoint)
Allocate the Jacobian matrix of the MbsSensor according to the number of joints in the multibody syst...
void free_sensor(MbsSensor *psens)
Free the memory of MbsSensor structure.
double V[4]
Velocity vector of the sensor expressed in the inertial frame: .
double OMP[4]
Angular acceleration vector of the sensor expressed in the inertial frame: .
double * J[7]
Jacobian matrix of the sensor: .
double P[4]
Position vector of the sensor expressed in the inertial frame: .
void init_sensor(MbsSensor *psens, int njoint)
Initialize all fields of MbsSensor structure to 0.
double OM[4]
Angular velocity vector of the sensor expressed in the inertial frame: .
double R[4][4]
Rotation matrix from the inertial frame to the sensor frame: .
double A[4]
Acceleration vector of the sensor expressed in the inertial frame: .