Robotran C Documentation
mbs_trigo.h
Go to the documentation of this file.
1 
12 #ifndef _MBS_TRIGO_H_
13 #define _MBS_TRIGO_H_
14 
15 typedef struct MbsData MbsData;
16 
17 
18  /*--------------------*/
28 int mbs_init_sin_cos_q_vecs(MbsData* s, int* qrot_qu_indvec, int* qrot_qc_indvec, int* qrot_qv_indvec);
29 
30 /*--------------------*/
50 void mbs_compute_sin_cos_quc(MbsData *mbs_data, int* qrot_qu_indvec, int* qrot_qc_indvec);
51 
52 
53 /*--------------------*/
68 void mbs_compute_sin_cos_qv(MbsData* mbs_data, int* qrot_qv_indvec);
69 
70 /*--------------------*/
76 void mbs_compute_sin_cos_q_all(MbsData* mbs_data);
77 /*--------------------*/
78 #endif
MbsData::qrot
int * qrot
Array with the indices of the rotational articulations (incremental values)
Definition: mbs_data.h:342
mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
mbs_compute_sin_cos_qv
void mbs_compute_sin_cos_qv(MbsData *s, int *qrot_qv_indvec)
Compute the sine and cosine of dependant rotational joints.
Definition: mbs_trigo.c:74
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:88
MbsData::nqrot
int nqrot
Number of rotational joint (R1, R2 or R3)
Definition: mbs_data.h:330
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:88
MbsData::nqv
int nqv
Number of dependent articulations.
Definition: mbs_data.h:328
mbs_data.h
MbsData::qc
int * qc
Array with the indices of driven (locked and driven) articulations.
Definition: mbs_data.h:333
MbsData::nqu
int nqu
Number of independent articulations.
Definition: mbs_data.h:323
MbsData::njoint
int njoint
Number of joints in the system.
Definition: mbs_data.h:320
mbs_1D_array.h
Declares all operation betweens vectors, vector and scalar.
MbsData::q_cos
double * q_cos
Array with the cosine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:355
MbsData::qu
int * qu
Array with the indices of the independent articulations (free)
Definition: mbs_data.h:332
MbsData::qv
int * qv
Array with the indices of the dependent articulations .
Definition: mbs_data.h:340
MbsData::q
double * q
Array with the current values of the generalized coordinates.
Definition: mbs_data.h:345
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:17
mbs_compute_sin_cos_qv
void mbs_compute_sin_cos_qv(MbsData *mbs_data, int *qrot_qv_indvec)
Compute the sine and cosine of dependant rotational joints.
Definition: mbs_trigo.c:74
MbsData::nqc
int nqc
Number of driven articulations, it includes qlocked and qdriven.
Definition: mbs_data.h:324
mbs_message.h
MbsData
Definition: mbs_data.h:307
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 non-dependant rotational joints.
Definition: mbs_trigo.c:59
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:17
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:1270
MbsData::q_sin
double * q_sin
Array with the sine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:354
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 non-dependant rotational joints.
Definition: mbs_trigo.c:59