Robotran C Documentation
mbs_saver_struct.h
Go to the documentation of this file.
1 
9 #ifndef MBS_SAVER_STRUCT_h
10 #define MBS_SAVER_STRUCT_h
11 
12 typedef enum {
19 }ShapeIds;
20 
21 
25 typedef struct UpdateInline
26 {
27  int on_base;
29  char *body_name;
31  char *shape_name;
34  char *shape_url;
38  double *position;
40  double *scale;
42  double *rotation;
44  double transparency;
50  int visible;
52  struct UpdateInline *next;
55 
59 typedef struct UpdateShape
60 {
62  int on_base;
64  char *body_name;
67  char *shape_name;
85  double *size;
90  double *radius;
95  double *height;
97  double *position;
102  double *scale;
104  double *rotation;
107  double transparency;
109  int visible;
111  struct UpdateShape *next;
112 } UpdateShape;
113 
117 typedef struct ExtForces_3D
118 {
119  int show;
120  int show_x;
121  int show_y;
122  int show_z;
129  int *color_x;
130  int *color_y;
131  int *color_z;
135  double diameter;
136  double scale;
137 
138 } ExtForces_3D;
139 
143 typedef struct UpdateExtForces
144 {
145  int on_base;
147  char *body_name;
149  char *point_name;
151  char *name;
161 
165 typedef struct UpdateLinkForces
166 {
167  char *name;
180  int visible;
185 
186 typedef struct UserUpdates
187 {
195 } UserUpdates;
196 
197 #endif
UpdateExtForces::comp_rotation
int * comp_rotation
Definition: mbs_saver_struct.h:153
ExtForces_3D::color_y
int * color_y
Definition: mbs_saver_struct.h:130
UpdateInline::scale
double * scale
Scale (x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver_struct.h:40
ExtForces_3D::color_z
int * color_z
Definition: mbs_saver_struct.h:131
UpdateInline::prj_relative_url
int prj_relative_url
True (1) if the shape url (shape_url) start for project folder (without initial path separator).
Definition: mbs_saver_struct.h:47
ExtForces_3D::show_x
int show_x
Definition: mbs_saver_struct.h:120
UpdateInline::rotation
double * rotation
Rotation (around x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver_struct.h:42
ExtForces_3D::show_resultant
int show_resultant
Flags to activate (1), desactivate (0), or no modification (-1) to the visibility of the force global...
Definition: mbs_saver_struct.h:123
ExtForces_3D
Define 3D field for showing an external force sensor.
Definition: mbs_saver_struct.h:117
ExtForces_3D::scale
double scale
Scale of the arrow, use 0 to not update the diameter.
Definition: mbs_saver_struct.h:136
UpdateShape::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver_struct.h:62
UpdateExtForces::torque_3d
ExtForces_3D * torque_3d
Determine 3D force visualization parameters, set to null to not modify.
Definition: mbs_saver_struct.h:156
UpdateShape::visible
int visible
Flag to show the shape (1) or hide it (0). Set to -1 to not update it.
Definition: mbs_saver_struct.h:109
UserUpdates::shapes
UpdateShape * shapes
Definition: mbs_saver_struct.h:189
ExtForces_3D::show
int show
Definition: mbs_saver_struct.h:119
UpdateExtForces::next
struct UpdateExtForces * next
Pointer to next force to be updated.
Definition: mbs_saver_struct.h:158
UpdateExtForces::comp_jacobian
int * comp_jacobian
Flag (0/1) determining informations to compute.
Definition: mbs_saver_struct.h:153
UpdateExtForces::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver_struct.h:145
UpdateInline::position
double * position
Position (x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver_struct.h:38
UpdateExtForces
Define modifications to be done on external forces, or new to add.
Definition: mbs_saver_struct.h:143
UserUpdates::inlines
UpdateInline * inlines
Definition: mbs_saver_struct.h:188
UpdateExtForces::comp_acceleration
int * comp_acceleration
Definition: mbs_saver_struct.h:153
UserUpdates::allow_new
int allow_new
Flag to create the shape (1) if not found on the body or generating an error (0).
Definition: mbs_saver_struct.h:190
UpdateInline::next
struct UpdateInline * next
Pointer to next inline to be updated.
Definition: mbs_saver_struct.h:52
UpdateShape::height
double * height
DEPRECATED for Json formatted project.
Definition: mbs_saver_struct.h:95
ExtForces_3D::show_y
int show_y
Definition: mbs_saver_struct.h:121
UpdateInline::shape_name
char * shape_name
Name of the shape in the shape list.
Definition: mbs_saver_struct.h:31
UpdateExtForces::comp_velocity
int * comp_velocity
Definition: mbs_saver_struct.h:153
SHAPE_INLINE
@ SHAPE_INLINE
Definition: mbs_saver_struct.h:18
UpdateShape::rotation
double * rotation
Rotation (around x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver_struct.h:104
UpdateExtForces::name
char * name
Name of the external force, should be unique.
Definition: mbs_saver_struct.h:151
UpdateExtForces::comp_position
int * comp_position
Definition: mbs_saver_struct.h:153
UpdateShape::transparency
double transparency
Transparency (1 is invisible, 0 is fully visible) of the inline, Set to negative value to not update ...
Definition: mbs_saver_struct.h:107
UpdateInline::transparency
double transparency
Transparency (1 is invisible, 0 is fully visible) of the inline, Set to negative value to not update ...
Definition: mbs_saver_struct.h:44
UpdateShape::shape_nature
ShapeIds shape_nature
Indicate if the shape is a box, cylinder, cone or sphere:
Definition: mbs_saver_struct.h:75
SHAPE_BOX
@ SHAPE_BOX
Definition: mbs_saver_struct.h:14
UpdateShape::radius
double * radius
DEPRECATED for Json formatted project.
Definition: mbs_saver_struct.h:90
UpdateInline::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver_struct.h:27
UserUpdates::extforces
UpdateExtForces * extforces
Definition: mbs_saver_struct.h:193
ShapeIds
ShapeIds
Definition: mbs_saver_struct.h:12
UpdateInline::visible
int visible
Flag to show the shape (1) or hide it (0). Set to -1 to not update it.
Definition: mbs_saver_struct.h:50
ExtForces_3D::position_at_end
int position_at_end
Put the end of the arrow on the sensor (1) or the beginning (0).
Definition: mbs_saver_struct.h:126
UpdateShape
Define modifications to be done on a basic shape.
Definition: mbs_saver_struct.h:59
UpdateExtForces::point_name
char * point_name
Name of the point with the force.
Definition: mbs_saver_struct.h:149
UpdateExtForces::body_name
char * body_name
Name of the body with the force, disregarded if on_base is true.
Definition: mbs_saver_struct.h:147
SHAPE_CONE
@ SHAPE_CONE
Definition: mbs_saver_struct.h:16
UpdateShape::scale
double * scale
DEPRECATED for Json formatted project.
Definition: mbs_saver_struct.h:102
UpdateShape::position
double * position
Definition: mbs_saver_struct.h:97
ExtForces_3D::color_resultant
int * color_resultant
Color of each arrow in RGB format.
Definition: mbs_saver_struct.h:132
UpdateExtForces::force_3d
ExtForces_3D * force_3d
Definition: mbs_saver_struct.h:155
ExtForces_3D::color_x
int * color_x
Definition: mbs_saver_struct.h:129
SHAPE_CYLINDER
@ SHAPE_CYLINDER
Definition: mbs_saver_struct.h:15
SHAPE_NONE
@ SHAPE_NONE
Definition: mbs_saver_struct.h:13
UserUpdates
Definition: mbs_saver_struct.h:186
UpdateShape::shape_name
char * shape_name
Name of the shape in the shape list.
Definition: mbs_saver_struct.h:67
UpdateShape::next
struct UpdateShape * next
Pointer to next shape to be updated.
Definition: mbs_saver_struct.h:111
ExtForces_3D::show_z
int show_z
Definition: mbs_saver_struct.h:122
UpdateInline::body_name
char * body_name
Name of the body with the shape, disregarded if on_base is true.
Definition: mbs_saver_struct.h:29
UpdateShape::body_name
char * body_name
Name of the body with the shape, disregarded if on_base is true.
Definition: mbs_saver_struct.h:64
UpdateShape::size
double * size
The behavior of this field depend of the loaded project format.
Definition: mbs_saver_struct.h:85
UpdateInline
Define modification to be done on a inline.
Definition: mbs_saver_struct.h:25
UserUpdates::linkforces
UpdateLinkForces * linkforces
Definition: mbs_saver_struct.h:194
SHAPE_SPHERE
@ SHAPE_SPHERE
Definition: mbs_saver_struct.h:17
ExtForces_3D::diameter
double diameter
Diameter of the arrow, use 0 to not update the diameter.
Definition: mbs_saver_struct.h:135
UpdateInline::shape_url
char * shape_url
Path to the shape file.
Definition: mbs_saver_struct.h:34