Robotran C Documentation
mbs_trigo.h
Go to the documentation of this file.
1 
15 #ifndef _MBS_TRIGO_H_
16 #define _MBS_TRIGO_H_
17 
18 #include "math.h"
19 #include "mbs_data.h"
20 
21 
22  /*--------------------*/
32 int mbs_init_sin_cos_q_vecs(MbsData* s, int* qrot_qu_indvec, int* qrot_qc_indvec, int* qrot_qv_indvec);
33 
34 /*--------------------*/
43 void mbs_compute_sin_cos_quc(MbsData *mbs_data, int* qrot_qu_indvec, int* qrot_qc_indvec);
44 
45 
46 /*--------------------*/
54 void mbs_compute_sin_cos_qv(MbsData* mbs_data, int* qrot_qv_indvec);
55 
56 /*--------------------*/
61 void mbs_compute_sin_cos_q_all(MbsData* mbs_data);
62 /*--------------------*/
63 #endif
MbsData::qrot
int * qrot
Array with the indices of the rotational articulations (incremental values)
Definition: mbs_data.h:184
useful_functions.h
mbs_compute_sin_cos_qv
void mbs_compute_sin_cos_qv(MbsData *s, int *qrot_qv_indvec)
Compute the sine and cosine of the q_sin and q_cos, only for the rotational joints that are dependent...
Definition: mbs_trigo.c:80
mbs_compute_sin_cos_q_all
void mbs_compute_sin_cos_q_all(MbsData *mbs_data)
Compute the sine and cosine of the q_sin and q_cos, for all the rotational joints.
Definition: mbs_trigo.c:94
MbsData::nqrot
int nqrot
Number of rotational joint (R1, R2 or R3)
Definition: mbs_data.h:172
mbs_compute_sin_cos_q_all
void mbs_compute_sin_cos_q_all(MbsData *s)
Compute the sine and cosine of the q_sin and q_cos, for all the rotational joints.
Definition: mbs_trigo.c:94
MbsData::nqv
int nqv
Number of dependent articulations.
Definition: mbs_data.h:170
mbs_data.h
MbsData::qc
int * qc
Array with the indices of driven (locked and driven) articulations.
Definition: mbs_data.h:175
MbsData::nqu
int nqu
Number of independent articulations.
Definition: mbs_data.h:165
MbsData::njoint
int njoint
Number of joints in the system.
Definition: mbs_data.h:162
MbsData::q_cos
double * q_cos
Array with the cosine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:197
mbs_msg
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
MbsData::qu
int * qu
Array with the indices of the independent articulations (free)
Definition: mbs_data.h:174
MbsData::qv
int * qv
Array with the indices of the dependent articulations .
Definition: mbs_data.h:182
MbsData::q
double * q
Array with the current values of the generalized coordinates.
Definition: mbs_data.h:187
mbs_init_sin_cos_q_vecs
int mbs_init_sin_cos_q_vecs(MbsData *s, int *qrot_qu_indvec, int *qrot_qc_indvec, int *qrot_qv_indvec)
Initialize the three vectors of indices (they are usually contained in the mbs_aux structure)
Definition: mbs_trigo.c:23
mbs_compute_sin_cos_qv
void mbs_compute_sin_cos_qv(MbsData *mbs_data, int *qrot_qv_indvec)
Compute the sine and cosine of the q_sin and q_cos, only for the rotational joints that are dependent...
Definition: mbs_trigo.c:80
MbsData::nqc
int nqc
Number of driven articulations, it includes qlocked and qdriven.
Definition: mbs_data.h:166
mbs_message.h
MbsData
Definition: mbs_data.h:149
mbs_compute_sin_cos_quc
void mbs_compute_sin_cos_quc(MbsData *s, int *qrot_qu_indvec, int *qrot_qc_indvec)
Compute the sine and cosine of the q_sin and q_cos, only for the rotational joints that are independe...
Definition: mbs_trigo.c:65
mbs_init_sin_cos_q_vecs
int mbs_init_sin_cos_q_vecs(MbsData *s, int *qrot_qu_indvec, int *qrot_qc_indvec, int *qrot_qv_indvec)
Initialize the three vectors of indices (they are usually contained in the mbs_aux structure)
Definition: mbs_trigo.c:23
find_ivec_1
int find_ivec_1(int *vec, int l_v, int f)
return the index of the value f in the (x sized) vector vec of integers, starting with index 1....
Definition: mbs_1D_array.c:832
MbsData::q_sin
double * q_sin
Array with the sine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:196
mbs_compute_sin_cos_quc
void mbs_compute_sin_cos_quc(MbsData *mbs_data, int *qrot_qu_indvec, int *qrot_qc_indvec)
Compute the sine and cosine of the q_sin and q_cos, only for the rotational joints that are independe...
Definition: mbs_trigo.c:65