|
Robotran C Documentation
|
Go to the documentation of this file.
7 #ifndef _AUTO_OUTPUT_H_
8 #define _AUTO_OUTPUT_H_
int max_nb
maximum number of user outputs (max vectors and max scalar)
Definition: auto_output.h:16
User output auto-update.
Definition: auto_output.h:12
int update_auto_output_vector(AutoOutput *auto_output, double *vector, char *label, int output_id)
update auto_output when a 'set_output_vector' is encountered
Definition: auto_output.c:189
double * get_output_vector_ptr_auto(AutoOutput *auto_output, int index)
get the pointer to the output vector at the requested index
Definition: auto_output.c:359
static AutoOutput * auto_output
Definition: set_output.c:7
char * get_output_vector_label_auto(AutoOutput *auto_output, int index)
get the output vector label corresponding to the requested index
Definition: auto_output.c:392
int index_output_vector_string(AutoOutput *auto_output, char *label)
get index for a output vector with its label
Definition: auto_output.c:321
void mbs_error_msg(char *msg,...)
Send an error message.
Definition: mbs_message.c:102
double get_output_value_auto(AutoOutput *auto_output, int index)
get the output value corresponding to the requested index
Definition: auto_output.c:342
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:54
int index_output_vector_string(AutoOutput *auto_output, char *label)
get index for a output vector with its label
Definition: auto_output.c:321
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
char * get_output_vector_label_auto(AutoOutput *auto_output, int index)
get the output vector label corresponding to the requested index
Definition: auto_output.c:392
char ** label_outputs_vector
tabular with the current user outputs labels
Definition: auto_output.h:19
int update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:137
int get_output_vector_size_auto(AutoOutput *auto_output, int index)
get the output vector size corresponding to the requested index
Definition: auto_output.c:409
void free_char_tab(char **mat)
release memory for a matrix of chars
Definition: useful_functions.c:217
double get_output_value_auto(AutoOutput *auto_output, int index)
get the output value corresponding to the requested index
Definition: auto_output.c:342
double * y_outputs
tabular with the current outputs values
Definition: auto_output.h:21
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:54
int * v_size
tabular with the size of each outputs vector
Definition: auto_output.h:24
int nb_new_outputs
number of new user outputs discovered during this time step
Definition: auto_output.h:26
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
int update_auto_output_value(AutoOutput *auto_output, double value, int val_index, char *label, int output_id)
update auto_output when a 'set_output_value' is encountered It can take the label and/or the output_i...
Definition: auto_output.c:247
int update_auto_output_vector(AutoOutput *auto_output, double *vector, char *label, int output_id)
update auto_output when a 'set_output_vector' is encountered
Definition: auto_output.c:189
double * get_output_vector_ptr_auto(AutoOutput *auto_output, int index)
get the pointer to the output vector at the requested index
Definition: auto_output.c:359
AutoOutput * init_auto_output(int max_nb)
initialize the AutoOutput structure
Definition: auto_output.c:13
int out_vector_nb
current number of user outputs vectors
Definition: auto_output.h:15
int update_auto_output_value(AutoOutput *auto_output, double value, int val_index, char *label, int output_id)
update auto_output when a 'set_output_value' is encountered It can take the label and/or the output_i...
Definition: auto_output.c:247
char * get_output_label_auto(AutoOutput *auto_output, int index)
get the output label corresponding to the requested index
Definition: auto_output.c:376
char ** label_outputs
tabular with the current user outputs labels
Definition: auto_output.h:18
char ** get_char_tab(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of chars WARNING: only the first dimension...
Definition: useful_functions.c:170
char * get_output_label_auto(AutoOutput *auto_output, int index)
get the output label corresponding to the requested index
Definition: auto_output.c:376
int get_output_vector_size_auto(AutoOutput *auto_output, int index)
get the output vector size corresponding to the requested index
Definition: auto_output.c:409
functions used to automatically update the user output values
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:101
int out_nb
current number of user outputs
Definition: auto_output.h:14
int update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:137
double ** v_outputs
tabular with the current outputs vector
Definition: auto_output.h:23
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:101
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:896
AutoOutput * init_auto_output(int max_nb)
initialize the AutoOutput structure
Definition: auto_output.c:13
int index_output_string(AutoOutput *auto_output, char *label)
get index for a output with its label
Definition: auto_output.c:300
void mbs_warning_msg(char *msg,...)
Send a warning message.
Definition: mbs_message.c:89
int index_output_string(AutoOutput *auto_output, char *label)
get index for a output with its label
Definition: auto_output.c:300