Robotran C Documentation
write_files.h
Go to the documentation of this file.
1 /*
2  * Write the output vectors and tabs (.anim,...)
3  *
4  * author: Nicolas Van der Noot and Allan Barrea
5  */
6 #ifndef __WRITE_FILES_H_INCLUDED__ // guard against multiple/recursive includes
7 #define __WRITE_FILES_H_INCLUDED__
8 
9 
10 #include "mbs_data.h"
11 
12 #define NB_OUTPUT_VEC 5
13 
14 // -- Structures -- //
15 
16 // .anim structure
17 typedef struct Write_files
18 {
19  double *t;
20  double **qq;
21  int kount;
22  double **out_vec;
23 
24 } Write_files;
25 
26 // -- Functions prototypes -- //
27 
28 Write_files* init_write_files(int nstep, int njoint);
29 void free_write_files(Write_files *write_files, int njoint);
30 int write_anim_file(Write_files* write_files, int njoint, const char *fileout);
31 int write_out_files(Write_files* write_files, const char generic_fileout[50]);
32 
33 // configure
34 void update_write_files(Write_files *write_files, MbsData *mbs_data);
35 
36 
37 #endif
NB_OUTPUT_VEC
#define NB_OUTPUT_VEC
Definition: write_files.h:12
write_out_files
int write_out_files(Write_files *write_files, const char generic_fileout[50])
useful_functions.h
mbs_error_msg
void mbs_error_msg(char *msg,...)
Send an error message.
Definition: mbs_message.c:102
mbs_data.h
get_dvec_0
double * get_dvec_0(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 0
Definition: mbs_1D_array.c:880
init_write_files
Write_files * init_write_files(int nstep, int njoint)
free_dmat_0
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:293
Write_files::out_vec
double ** out_vec
Definition: write_files.h:22
Write_files::qq
double ** qq
Definition: write_files.h:20
get_dmat_0
double ** get_dmat_0(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of doubles, starting at index 0
Definition: mbs_matrix.c:238
nstep
static long nstep
Definition: dopri5.c:29
update_write_files
void update_write_files(Write_files *write_files, MbsData *mbs_data)
free_write_files
void free_write_files(Write_files *write_files, int njoint)
Write_files::kount
int kount
Definition: write_files.h:21
mbs_message.h
MbsData
Definition: mbs_data.h:149
free_dvec_0
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:896
Write_files::t
double * t
Definition: write_files.h:19
Write_files
Definition: write_files.h:17
write_anim_file
int write_anim_file(Write_files *write_files, int njoint, const char *fileout)