|
Robotran C Documentation
|
Go to the documentation of this file.
9 #ifndef _REAL_TIME_EXT_
10 #define _REAL_TIME_EXT_
16 #define SAFETY_TIME 0.001
22 typedef struct Realtime_sdl
32 int last_action_break_usec;
33 int next_user_keyboard_event_usec;
34 int next_generic_keyboard_event_usec;
35 int last_mouse_event_usec;
36 int mouse_left_pressed;
37 int mouse_right_pressed;
47 typedef struct Realtime_visu
58 int flag_buffer_round;
84 Realtime_sdl* init_realtime_sdl(
void *screen_sdl);
85 void free_realtime_sdl(Realtime_sdl *sdl);
89 Realtime_visu* init_realtime_visu(
void *realtime_options,
MbsData* mbs_data,
int *err);
90 int free_realtime_visu(Realtime_visu *visu);
int simu_break
1 to make a break, 0 otherwise
Definition: realtime.h:103
user real-time option
Definition: realtime.h:42
int init_t_sec
initial real time [s], without us
Definition: realtime.h:122
Java functions used for the visualization.
int last_break
1 to indicate last break, 0 otherwise
Definition: realtime.h:104
Real-time constraints header for external modules.
#define SAFETY_TIME
safety time: difference between min and max time in case of problems [s]
Definition: realtime_ext.h:16
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
main SDL functions (plot curves and handles keyboard, joystick... inputs)
int nb_models
number of models to load
Definition: realtime.h:77
functions used to get the time expressed in us (micro seconds)
int t_usec(int init_t_sec, int init_t_usec)
return the elapsed time (in us) since time 'init_t' (expressed in s and us)
Definition: time_functions.c:25
interface to call C++ functions from C code
char ** mbs_file
path and file name fot the .mbs file used for Java visualization (for each model)
Definition: realtime.h:79
int buffer_size
size of the buffer for 3D and sdl
Definition: realtime.h:53
Definition: mbs_data.h:149
Real-time constraints main header.
real-time structure
Definition: realtime.h:99
int * nb_q
number of joints in the .mbs used for visualization (for each model)
Definition: realtime.h:78
double t0
initial simulation time [s]
Definition: realtime.h:45
int init_t_usec
initial real time [us], without s (kind of modulo)
Definition: realtime.h:123
int start_viewpoint
initial visu viewpoint ID
Definition: realtime.h:81