|
Robotran C Documentation
|
Go to the documentation of this file.
11 #ifdef __cplusplus // in case the function is called from a C++ file
14 int set_output(
double value,
const char* label);
User output auto-update.
Definition: auto_output.h:12
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(int index)
get the output vector label corresponding to the requested index
Definition: set_output.c:211
void set_output_nb_new(int nb)
set the number of new user inputs
Definition: set_output.c:268
int get_output_nb()
get the number of user inputs
Definition: set_output.c:231
int set_output_vector_from_id(double *vector, char *label, int output_id)
function called by the user to output the time evolution of a whole vector. It is very similar to set...
Definition: set_output.c:134
int define_output_vector(char *label, int size)
set needed information to handle the specified vector name in the auto_output structure.
Definition: set_output.c:44
int set_output(double value, char *label)
function called by the user to output the time evolution of a value
Definition: set_output.c:74
char * get_output_label(int index)
get the output label corresponding to the requested index
Definition: set_output.c:201
void mbs_error_msg(char *msg,...)
Send an error message.
Definition: mbs_message.c:102
int set_output_vector_from_id(double *vector, char *label, int output_id)
function called by the user to output the time evolution of a whole vector. It is very similar to set...
Definition: set_output.c:134
int set_output_value(double value, int val_index, char *label)
function called by the user to output the time evolution of a value in a vector.
Definition: set_output.c:156
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:54
double * get_output_vector_ptr(int index)
get the pointer to the output vector at the requested index
Definition: set_output.c:259
int set_output_value_from_id(double value, int val_index, char *label, int output_id)
Definition: set_output.c:171
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 update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:137
void free_set_output()
release memory of auto_output
Definition: set_output.c:56
int define_output_vector(char *label, int size)
set needed information to handle the specified vector name in the auto_output structure.
Definition: set_output.c:44
int get_output_vector_size(int index)
get the output vector size corresponding to the requested index
Definition: set_output.c:222
int get_output_nb_new()
get the number of new user inputs
Definition: set_output.c:249
int set_output_value_from_id(double value, int val_index, char *label, int output_id)
Definition: set_output.c:171
char * get_output_label(int index)
get the output label corresponding to the requested index
Definition: set_output.c:201
void reset_flag_output()
reset the flag_output to 0. Useful when running several simulation in a row with different save2file ...
Definition: set_output.c:15
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 nb_new_outputs
number of new user outputs discovered during this time step
Definition: auto_output.h:26
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
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
double get_output_value(int index)
get the output value corresponding to the requested index
Definition: set_output.c:191
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
int set_output_vector(double *vector, char *label)
function called by the user to output the time evolution of a whole vector.
Definition: set_output.c:102
int get_output_vector_nb()
get the number of user vector inputs
Definition: set_output.c:240
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:101
int set_output_value(double value, int val_index, char *label)
function called by the user to output the time evolution of a value in a vector.
Definition: set_output.c:156
int out_nb
current number of user outputs
Definition: auto_output.h:14
int get_output_nb_new()
get the number of new user inputs
Definition: set_output.c:249
set_output function called by the user to output his own variables
int get_output_nb()
get the number of user inputs
Definition: set_output.c:231
void set_output_nb_new(int nb)
set the number of new user inputs
Definition: set_output.c:268
int set_output_vector(double *vector, char *label)
function called by the user to output the time evolution of a whole vector.
Definition: set_output.c:102
int get_output_vector_size(int index)
get the output vector size corresponding to the requested index
Definition: set_output.c:222
int get_output_vector_nb()
get the number of user vector inputs
Definition: set_output.c:240
int set_output(double value, char *label)
function called by the user to output the time evolution of a value
Definition: set_output.c:74
void init_set_output(int max_nb_curves)
initialize the static auto_output structure
Definition: set_output.c:23
double get_output_value(int index)
get the output value corresponding to the requested index
Definition: set_output.c:191
void reset_flag_output()
reset the flag_output to 0. Useful when running several simulation in a row with different save2file ...
Definition: set_output.c:15
char * get_output_vector_label(int index)
get the output vector label corresponding to the requested index
Definition: set_output.c:211
void free_set_output()
release memory of auto_output
Definition: set_output.c:56
void init_set_output(int max_nb_curves)
initialize the static auto_output structure
Definition: set_output.c:23
void mbs_warning_msg(char *msg,...)
Send a warning message.
Definition: mbs_message.c:89
int flag_warning_output_raised
1 if a warning message has already been raised, 0 otherwise
Definition: set_output.c:9
int flag_output
1 if init_set_output was called, 0 otherwise
Definition: set_output.c:8
double * get_output_vector_ptr(int index)
get the pointer to the output vector at the requested index
Definition: set_output.c:259