Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 {
61  int on_base;
63  char *body_name;
65  char *shape_name;
76  double *size;
78  double *radius;
80  double *height;
83  double *position;
85  double *scale;
87  double *rotation;
89  double transparency;
92  int visible;
94  struct UpdateShape *next;
96 } UpdateShape;
97 
101 typedef struct ExtForces_3D
102 {
103  int show;
104  int show_x;
105  int show_y;
106  int show_z;
113  int *color_x;
114  int *color_y;
115  int *color_z;
119  double diameter;
120  double scale;
121 
122 } ExtForces_3D;
123 
127 typedef struct UpdateExtForces
128 {
129  int on_base;
131  char *body_name;
133  char *point_name;
135  char *name;
145 
149 typedef struct UpdateLinkForces
150 {
151  char *name;
164  int visible;
169 
170 typedef struct UserUpdates
171 {
179 } UserUpdates;
180 
181 #endif
UpdateExtForces::comp_rotation
int * comp_rotation
Definition: mbs_saver_struct.h:137
ExtForces_3D::color_y
int * color_y
Definition: mbs_saver_struct.h:114
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:115
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:104
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:107
ExtForces_3D
Define 3D field for showing an external force sensor.
Definition: mbs_saver_struct.h:101
ExtForces_3D::scale
double scale
Scale of the arrow, use 0 to not update the diameter.
Definition: mbs_saver_struct.h:120
UpdateShape::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver_struct.h:61
UpdateExtForces::torque_3d
ExtForces_3D * torque_3d
Determine 3D force visualization parameters, set to null to not modify.
Definition: mbs_saver_struct.h:140
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:92
UserUpdates::shapes
UpdateShape * shapes
Definition: mbs_saver_struct.h:173
ExtForces_3D::show
int show
Definition: mbs_saver_struct.h:103
UpdateExtForces::next
struct UpdateExtForces * next
Pointer to next force to be updated.
Definition: mbs_saver_struct.h:142
UpdateExtForces::comp_jacobian
int * comp_jacobian
Flag (0/1) determining informations to compute.
Definition: mbs_saver_struct.h:137
UpdateExtForces::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver_struct.h:129
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:127
UserUpdates::inlines
UpdateInline * inlines
Definition: mbs_saver_struct.h:172
UpdateExtForces::comp_acceleration
int * comp_acceleration
Definition: mbs_saver_struct.h:137
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:174
UpdateInline::next
struct UpdateInline * next
Pointer to next inline to be updated.
Definition: mbs_saver_struct.h:52
UpdateShape::height
double * height
Height, except for SHAPE_BOX and SHAPE_SPHERE, of the shape.
Definition: mbs_saver_struct.h:80
ExtForces_3D::show_y
int show_y
Definition: mbs_saver_struct.h:105
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:137
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:87
UpdateExtForces::name
char * name
Name of the external force, should be unique.
Definition: mbs_saver_struct.h:135
UpdateExtForces::comp_position
int * comp_position
Definition: mbs_saver_struct.h:137
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:89
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:68
SHAPE_BOX
@ SHAPE_BOX
Definition: mbs_saver_struct.h:14
UpdateShape::radius
double * radius
Radius, except for SHAPE_BOX, of the shape. Set to NULL to not update it.
Definition: mbs_saver_struct.h:78
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:177
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:110
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:133
UpdateExtForces::body_name
char * body_name
Name of the body with the force, disregarded if on_base is true.
Definition: mbs_saver_struct.h:131
SHAPE_CONE
@ SHAPE_CONE
Definition: mbs_saver_struct.h:16
UpdateShape::scale
double * scale
Scale (x, y, z) of the shape, Set to NULL to not update it.
Definition: mbs_saver_struct.h:85
UpdateShape::position
double * position
Position (x, y, z) of the shape, Set to NULL to not update it.
Definition: mbs_saver_struct.h:83
ExtForces_3D::color_resultant
int * color_resultant
Color of each arrow in RGB format.
Definition: mbs_saver_struct.h:116
UpdateExtForces::force_3d
ExtForces_3D * force_3d
Definition: mbs_saver_struct.h:139
ExtForces_3D::color_x
int * color_x
Definition: mbs_saver_struct.h:113
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:170
UpdateShape::shape_name
char * shape_name
Name of the shape in the shape list.
Definition: mbs_saver_struct.h:65
UpdateShape::next
struct UpdateShape * next
Pointer to next shape to be updated.
Definition: mbs_saver_struct.h:94
ExtForces_3D::show_z
int show_z
Definition: mbs_saver_struct.h:106
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:63
UpdateShape::size
double * size
Size, SHAPE_BOX only, along x, y, z. Set to NULL to not update it.
Definition: mbs_saver_struct.h:76
UpdateInline
Define modification to be done on a inline.
Definition: mbs_saver_struct.h:25
UserUpdates::linkforces
UpdateLinkForces * linkforces
Definition: mbs_saver_struct.h:178
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:119
UpdateInline::shape_url
char * shape_url
Path to the shape file.
Definition: mbs_saver_struct.h:34