Robotran C Documentation
mbs_xml_binder_private.h
Go to the documentation of this file.
1 /*
2  This header includes the functions to bind the XML information to the MbsInfos structure
3  @Date Nov 2022 (modification)
4  @Author Robotran Team
5 */
6 
7 #ifndef MBS_INFO_XML_BINDER_PRIVATE_h
8 #define MBS_INFO_XML_BINDER_PRIVATE_h
9 
10 #include <libxml/tree.h>
11 #include <libxml/parser.h>
12 #include "mbs_binder_public.h"
13 #include "mbs_saver.h"
14 #include "useful_functions.h"
15 
16 int mbs_info_coordinates_xml_binder(double *coordinates_pointer, xmlNodePtr node, int mission);
17 int mbs_info_sensor_xml_binder(MbsInfoSensor *mbs_info_sensor, xmlNodePtr node, int mission);
18 int mbs_info_extforce_xml_binder(MbsInfoExtforce *mbs_info_extforce, xmlNodePtr node, int mission);
19 int mbs_info_joint_xml_binder(MbsInfoJoint *mbs_info_joint, xmlNodePtr node, int mission, int verbose);
20 int mbs_info_joint_list_xml_binder(MbsInfoJoint **joint_list, xmlNodePtr node, int mission, int verbose);
21 int mbs_info_point_xml_binder(MbsInfoPoint *mbs_info_point, xmlNodePtr node, int mission);
22 int mbs_info_point_list_xml_binder(MbsInfoPoint **mbs_info_point_list, xmlNodePtr node, int mission, char *body_name);
23 int mbs_info_ref_point_xml_binder(MbsInfoRefPoint* mbs_info_ref_point, xmlNodePtr node, int mission);
24 int mbs_info_base_xml_binder(MbsInfoBase *mbs_info_base, xmlNodePtr node, int mission);
25 int mbs_info_body_xml_binder(MbsInfoBody *mbs_info_body, xmlNodePtr node, int mission, int verbose);
26 int mbs_info_bodytree_xml_binder(MbsInfoBodytree *mbs_info_bodytree, xmlNodePtr node, int mission, int verbose);
27 int mbs_info_ball_xml_binder(MbsInfoBall *mbs_info_ball, xmlNodePtr node, int mission);
28 int mbs_info_rod_xml_binder(MbsInfoRod *mbs_info_rod, xmlNodePtr node, int mission);
29 int mbs_info_solid_xml_binder(MbsInfoSolid *mbs_info_solid, xmlNodePtr node, int mission);
30 int mbs_info_cuts_xml_binder(MbsInfoCuts *mbs_info_cuts, xmlNodePtr node, int mission);
31 int mbs_info_link_xml_binder(MbsInfoLink *mbs_info_link, xmlNodePtr node, int mission);
32 int mbs_info_links_xml_binder(MbsInfoLinks *mbs_info_links, xmlNodePtr node, int mission);
33 int mbs_info_parameter_xml_binder(MbsInfoParameter *mbs_info_parameter, xmlNodePtr node, int mission);
34 int mbs_info_user_model_xml_binder(MbsInfoUserModel *mbs_info_user_model, xmlNodePtr node, int mission);
35 int mbs_info_user_models_xml_binder(MbsInfoUserModels* mbs_info_user_models, xmlNodePtr node, int mission, int verbose);
36 int mbs_info_user_IOs_xml_binder(MbsInfoUserIOs *mbs_info_user_IOs, xmlNodePtr node, int mission, int verbose);
37 int mbs_info_mbsDescR7_binder(MbsInfos *mbs_infos, xmlDocPtr doc, int mission);
38 int mbs_info_mbs_linker(MbsInfos* mbs_info, int mission);
39 int mbs_info_init_and_binderXML(MbsInfos *mbs_infos, const char* mbs_xml_name, int mission);
40 
41 
50 xmlNodePtr mbs_info_find_children_xml(xmlNodePtr node, const char *name);
51 
59 void *mbs_xml_free_clean(xmlDocPtr doc);
60 
69 int mbs_xml_info_to_loader(MbsLoader *mbs_loader, const char *mbs_xml_name);
70 
78 xmlDocPtr mbs_xml_get_doc(const char *mbs_xml_name);
79 
87 xmlNodePtr get_basebody_node(xmlDocPtr doc);
88 
96 xmlNodePtr get_bodytree_node(xmlDocPtr doc);
105 xmlNodePtr get_body_node(xmlNodePtr bodytree, const char *body_name);
106 
119 xmlNodePtr get_point_node(xmlNodePtr body_node, const char *point_name,
120  int allow_new, double coords_2d[2]);
121 
131 xmlNodePtr get_basebody_point(xmlDocPtr doc, const char *point_name, int allow_new);
132 
143 xmlNodePtr get_body_point(xmlDocPtr doc, const char *body_name, const char *point_name, int allow_new);
144 
154 xmlNodePtr get_links_node(xmlDocPtr doc, int create);
155 
165 xmlNodePtr get_basebody_3Dshapes(xmlDocPtr doc, int create);
166 
174 xmlNodePtr get_body_3Dshapes(xmlDocPtr doc, const char *body_name);
175 
185 xmlNodePtr get_inline_shape(xmlNodePtr shape3D_node, const char *shape_name,
186  int allow_creation);
187 
198 xmlNodePtr get_base_shape(xmlNodePtr shape3D_node, const char *shape_name,
199  int nature, int allow_creation);
200 
213 int mbs_info_update_inlines_xml(MbsLoader *mbs_loader, UpdateInline *up_in,
214  int allow_creation);
215 
228 int mbs_info_update_shapes_xml(MbsLoader *mbs_loader, UpdateShape *up_in,
229  int allow_new);
230 
244  int allow_new);
245 
259  int allow_new);
260 #endif
MbsLoader::opts
MbsLoadOptions * opts
Contains the options that must be used when loading the project.
Definition: mbs_load_struct.h:78
get_links_node
xmlNodePtr get_links_node(xmlDocPtr doc, int create)
Look for the node containing all the links.
Definition: mbs_xml_binder.c:1040
MbsInfoCuts::n_rod
int n_rod
Definition: mbs_binder_public.h:252
MbsInfoBall::endpoint1
MbsInfoRefPoint * endpoint1
Definition: mbs_binder_public.h:215
MbsInfos::cuts
MbsInfoCuts * cuts
Definition: mbs_binder_public.h:432
UpdateExtForces::comp_rotation
int * comp_rotation
Definition: mbs_saver.h:136
ExtForces_3D::color_y
int * color_y
Definition: mbs_saver.h:113
mbs_info_user_IOs_xml_binder
int mbs_info_user_IOs_xml_binder(MbsInfoUserIOs *mbs_info_user_IOs, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:2496
MBS_INFO_UPDATER
#define MBS_INFO_UPDATER
Definition: mbs_define.h:24
MbsInfoPoint::pt
double * pt
Array with the coordinates (x, y, z) of the point relative to the origin of the body expressed in the...
Definition: mbs_binder_public.h:108
MbsInfoExtforce::name
char * name
Definition: mbs_binder_public.h:86
mbs_new_info_body
MbsInfoBody * mbs_new_info_body(void)
Definition: mbs_loader_public.c:719
MbsInfoParameter::structure_name
char * structure_name
Name of the structure, filled if the parameter is a structure.
Definition: mbs_binder_public.h:335
MbsInfoExtforce::Vit
int Vit
1 if the computation of the sensor linear velocity has been asked, 0 otherwise.
Definition: mbs_binder_public.h:92
MbsInfoBall::endpoint2
MbsInfoRefPoint * endpoint2
Definition: mbs_binder_public.h:216
MBS_INFO_FAILURE
#define MBS_INFO_FAILURE
Definition: mbs_define.h:31
MbsInfoBodytree
Definition: mbs_binder_public.h:180
mbs_xmlNewDocNode_xyz
xmlNodePtr mbs_xmlNewDocNode_xyz(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content, double value)
Definition: mbs_xml_binder.c:204
mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
UpdateInline::scale
double * scale
Scale (x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver.h:41
ExtForces_3D::color_z
int * color_z
Definition: mbs_saver.h:114
set_double_xlm_node
int set_double_xlm_node(xmlNodePtr in_node, double value)
SET functions ///////////////////////.
Definition: mbs_xml_binder.c:134
get_base_shape
xmlNodePtr get_base_shape(xmlNodePtr shape3D_node, const char *shape_name, int nature, int allow_creation)
Look for the specified basic shape.
Definition: mbs_xml_binder.c:895
MbsInfoRefPoint::bodyname
char * bodyname
Name of the body that bear the reference point (origin of the joint chain until first body encounter)...
Definition: mbs_binder_public.h:55
MbsInfos::verbose
int verbose
Verbosity level (not yet implemented everywhere):
Definition: mbs_binder_public.h:488
mbs_saver.h
Declare required stuffs to update mbs files from MbsData state and user wishes.
MbsLoader::loaded_structure
void * loaded_structure
Pointer to the loaded mbs file specific structure (related to file format).
Definition: mbs_load_struct.h:103
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.h:48
MbsInfoRod::name
char * name
Definition: mbs_binder_public.h:224
get_char_cpy
char * get_char_cpy(const char *fmt,...)
Copy the provided formatted string into a newly allocated memory.
Definition: useful_functions.c:196
mbs_info_mbs_linker
int mbs_info_mbs_linker(MbsInfos *mbs_info, int mission)
Definition: mbs_xml_binder.c:2797
MbsInfoParameter::value_list
double * value_list
Vector (index starting at 1) containing the values retrieved from the multibody file.
Definition: mbs_binder_public.h:302
get_inline_shape
xmlNodePtr get_inline_shape(xmlNodePtr shape3D_node, const char *shape_name, int allow_creation)
Look for the specified inline shape.
Definition: mbs_xml_binder.c:835
mbs_info_joint_xml_binder
int mbs_info_joint_xml_binder(MbsInfoJoint *mbs_info_joint, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1236
MbsInfoParameter::name
char * name
Name of the parameter in the user model.
Definition: mbs_binder_public.h:285
mbs_info_mbsDescR7_binder
int mbs_info_mbsDescR7_binder(MbsInfos *mbs_infos, xmlDocPtr doc, int mission)
Definition: mbs_xml_binder.c:2556
useful_functions.h
ExtForces_3D::show_x
int show_x
Definition: mbs_saver.h:103
MbsInfoUserIOs::n_out
int n_out
Number of OUTPUT user IO in the system.
Definition: mbs_binder_public.h:395
mbs_new_info_bodytree
MbsInfoBodytree * mbs_new_info_bodytree(void)
Definition: mbs_loader_public.c:775
UpdateInline::rotation
double * rotation
Rotation (around x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver.h:43
SHAPE_NONE
@ SHAPE_NONE
Definition: mbs_saver.h:15
mbs_info_mbsDescR7_binder
int mbs_info_mbsDescR7_binder(MbsInfos *mbs_infos, xmlDocPtr doc, int mission)
Definition: mbs_xml_binder.c:2556
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.h:106
MbsInfoRefPoint
Structure defining the parent point of a body.
Definition: mbs_binder_public.h:53
MbsInfoJoint::qdd0
double qdd0
Initial acceleration of the joint.
Definition: mbs_binder_public.h:141
mbs_info_user_model_xml_binder
int mbs_info_user_model_xml_binder(MbsInfoUserModel *mbs_info_user_model, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2348
mbs_info_update_extforces_xml
int mbs_info_update_extforces_xml(MbsLoader *mbs_loader, UpdateExtForces *frc, int allow_new)
Update, or create this external force all next ExtFrc in the linked list.
Definition: mbs_xml_binder.c:3508
mbs_info_ref_point_xml_binder
int mbs_info_ref_point_xml_binder(MbsInfoRefPoint *mbs_info_ref_point, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1563
MbsInfos::base
MbsInfoBase * base
Definition: mbs_binder_public.h:430
mbs_info_user_models_xml_binder
int mbs_info_user_models_xml_binder(MbsInfoUserModels *mbs_info_user_models, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:2398
mbs_info_sensor_xml_binder
int mbs_info_sensor_xml_binder(MbsInfoSensor *mbs_info_sensor, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1132
ExtForces_3D::scale
double scale
Scale of the arrow, use 0 to not update the diameter.
Definition: mbs_saver.h:119
get_string_xml_attr
int get_string_xml_attr(xmlAttrPtr in_node, char **dest)
Definition: mbs_xml_binder.c:96
get_basebody_3Dshapes
xmlNodePtr get_basebody_3Dshapes(xmlDocPtr doc, int create)
Look for the node containing the 3D shape (x3D) of the base node.
Definition: mbs_xml_binder.c:434
MbsInfoBase::n_base_point
int n_base_point
Number of point of interest (extremities of joint bearing a sensor plus anchor point) defined on the ...
Definition: mbs_binder_public.h:125
fill_all_joint_list
int fill_all_joint_list(MbsInfos *mbs_infos)
Fill the joints list with children parent...
Definition: mbs_loader_public.c:1483
UpdateShape::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver.h:62
mbs_new_info_solid
MbsInfoSolid * mbs_new_info_solid(void)
Definition: mbs_loader_public.c:906
mbs_error_msg
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
_MBS_ERR_LOW_FILES
#define _MBS_ERR_LOW_FILES
Low Level error number Error during opening/writing files = -9.
Definition: mbs_errors_names.h:157
MbsInfoUserIOs::user_IO_list
MbsInfoUserIO ** user_IO_list
The detail of each user IO in the system.
Definition: mbs_binder_public.h:397
UpdateExtForces::torque_3d
ExtForces_3D * torque_3d
Determine 3D force visualization parameters, set to null to not modify.
Definition: mbs_saver.h:139
mbs_info_cuts_xml_binder
int mbs_info_cuts_xml_binder(MbsInfoCuts *mbs_info_cuts, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1978
MbsInfoJoint
This structure contains all informations about a joint.
Definition: mbs_binder_public.h:133
MbsInfoCuts
Definition: mbs_binder_public.h:249
UpdateShape::visible
int visible
Flag to show the shape (1) or hide it (0). Set to -1 to not update it.
Definition: mbs_saver.h:91
new_char_xlm_node
xmlNodePtr new_char_xlm_node(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content, const char *text)
Definition: mbs_xml_binder.c:195
mbs_define.h
MbsInfoExtforce::Omp
int Omp
1 if the computation of the sensor angular acceleration has been asked, 0 otherwise.
Definition: mbs_binder_public.h:96
mbs_binder_private.h
mbs_info_rod_xml_binder
int mbs_info_rod_xml_binder(MbsInfoRod *mbs_info_rod, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1875
MbsInfoExtforce::Om
int Om
1 if the computation of the sensor angular velocity has been asked, 0 otherwise.
Definition: mbs_binder_public.h:93
ExtForces_3D::show
int show
Definition: mbs_saver.h:102
mbs_info_joint_xml_binder
int mbs_info_joint_xml_binder(MbsInfoJoint *mbs_info_joint, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1236
mbs_strcmp
int mbs_strcmp(const char *__s1, const char *__s2)
Compare two char with strcmp.
Definition: useful_functions.c:388
MbsInfoExtforce::parent_point
MbsInfoRefPoint * parent_point
parent point of the sensor (NULL if it is a parent joint)
Definition: mbs_binder_public.h:87
MbsInfoParameter::d_value
MbsInfoDData ** d_value
d_data for the value.
Definition: mbs_binder_public.h:324
MbsInfoBase::gravity
double * gravity
Array with the component (x, y, z) of the gravity vector expressed in the inertial frame.
Definition: mbs_binder_public.h:124
MbsInfoCuts::n_ball
int n_ball
Definition: mbs_binder_public.h:251
get_body_node
xmlNodePtr get_body_node(xmlNodePtr bodytree, const char *body_name)
Look for the specified body node in the tree.
Definition: mbs_xml_binder.c:374
MbsInfoBody::mass
double mass
Mass of the body.
Definition: mbs_binder_public.h:171
mbs_xml_get_doc
xmlDocPtr mbs_xml_get_doc(const char *mbs_xml_name)
Load an xml file to memory.
Definition: mbs_xml_binder.c:2685
cmp_string_xml_attr
int cmp_string_xml_attr(xmlAttrPtr in_node, const char *string)
other functions /////////////////////
Definition: mbs_xml_binder.c:236
get_bodytree_node
xmlNodePtr get_bodytree_node(xmlDocPtr doc)
Look for the bodytree node in the document.
Definition: mbs_xml_binder.c:337
mbs_info_body_xml_binder
int mbs_info_body_xml_binder(MbsInfoBody *mbs_info_body, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1637
mbs_new_info_parameter
MbsInfoParameter * mbs_new_info_parameter(void)
Definition: mbs_loader_public.c:1066
KEEP_LOADED
@ KEEP_LOADED
Definition: mbs_load_struct.h:74
mbs_info_user_IOs_xml_binder
int mbs_info_user_IOs_xml_binder(MbsInfoUserIOs *mbs_info_user_IOs, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:2496
mbs_new_info_sensor
MbsInfoSensor * mbs_new_info_sensor(void)
Definition: mbs_loader_public.c:518
mbs_xml_free_clean
void * mbs_xml_free_clean(xmlDocPtr doc)
Free the xml document and clean the xml library parser.
Definition: mbs_xml_binder.c:2732
MbsInfoUserIO::size
int size
Number of values in the user IO.
Definition: mbs_binder_public.h:378
MbsInfoSensor::Acc
int Acc
1 if the computation of the sensor linear acceleration has been asked, 0 otherwise....
Definition: mbs_binder_public.h:74
mbs_warning_msg
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
mbs_info_parameter_xml_binder
int mbs_info_parameter_xml_binder(MbsInfoParameter *mbs_info_parameter, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2150
mbs_xml_get_doc
xmlDocPtr mbs_xml_get_doc(const char *mbs_xml_name)
Load an xml file to memory.
Definition: mbs_xml_binder.c:2685
SHAPE_CYLINDER
@ SHAPE_CYLINDER
Definition: mbs_saver.h:17
MbsInfos
Definition: mbs_binder_public.h:428
UpdateExtForces::next
struct UpdateExtForces * next
Pointer to next force to be updated.
Definition: mbs_saver.h:141
UpdateExtForces::comp_jacobian
int * comp_jacobian
Flag (0/1) determining informations to compute.
Definition: mbs_saver.h:136
UpdateExtForces::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver.h:128
mbs_info_joint_list_xml_binder
int mbs_info_joint_list_xml_binder(MbsInfoJoint **joint_list, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1417
MbsInfoUserIO::type
int type
Nature of the user IO:
Definition: mbs_binder_public.h:376
UpdateInline::position
double * position
Position (x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver.h:39
UpdateExtForces
Define modifications to be done on external forces, or new to add.
Definition: mbs_saver.h:126
new_double_xlm_node
xmlNodePtr new_double_xlm_node(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content, double value)
Creation functions //////////////////.
Definition: mbs_xml_binder.c:186
mbs_info_base_xml_binder
int mbs_info_base_xml_binder(MbsInfoBase *mbs_info_base, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1585
MbsInfoPoint::name
char * name
Name of the point.
Definition: mbs_binder_public.h:106
UpdateExtForces::comp_acceleration
int * comp_acceleration
Definition: mbs_saver.h:136
get_basebody_point
xmlNodePtr get_basebody_point(xmlDocPtr doc, const char *point_name, int allow_new)
Look for the specified point node on the base.
Definition: mbs_xml_binder.c:976
mbs_info_user_IO_xml_binder
int mbs_info_user_IO_xml_binder(MbsInfoUserIO *mbs_info_user_IO, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2449
compare_char_xml_node
int compare_char_xml_node(xmlNodePtr in_node, const char *text)
COMPARE functions ///////////////////.
Definition: mbs_xml_binder.c:167
MbsInfoPoint::sensor
MbsInfoSensor * sensor
Pointer to a sensor structure if a sensor is defined on the point.
Definition: mbs_binder_public.h:110
mbs_info_ball_xml_binder
int mbs_info_ball_xml_binder(MbsInfoBall *mbs_info_ball, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1817
mbs_info_extforce_xml_binder
int mbs_info_extforce_xml_binder(MbsInfoExtforce *mbs_info_extforce, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1186
mbs_xml_free_clean
void * mbs_xml_free_clean(xmlDocPtr doc)
Free the xml document and clean the xml library parser.
Definition: mbs_xml_binder.c:2732
mbs_info_update_linkforce_xml
int mbs_info_update_linkforce_xml(MbsLoader *mbs_loader, UpdateLinkForces *lnk, int allow_new)
Update, or create the provided link force.
Definition: mbs_xml_binder.c:3969
get_body_point
xmlNodePtr get_body_point(xmlDocPtr doc, const char *body_name, const char *point_name, int allow_new)
Look for the specified point node on the specified body.
Definition: mbs_xml_binder.c:1003
MbsInfoBase::base_point_list
MbsInfoPoint ** base_point_list
Array of pointers to the MDS_point_strct describing each point of the MBS.
Definition: mbs_binder_public.h:126
MbsInfoJoint::name
char * name
Name of the joint.
Definition: mbs_binder_public.h:135
mbs_info_rod_xml_binder
int mbs_info_rod_xml_binder(MbsInfoRod *mbs_info_rod, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1875
MbsInfoSolid
Definition: mbs_binder_public.h:238
mbs_new_info_user_IO
MbsInfoUserIO * mbs_new_info_user_IO(void)
Definition: mbs_loader_public.c:1204
mbs_new_info_joint
MbsInfoJoint * mbs_new_info_joint(void)
Definition: mbs_loader_public.c:674
MbsInfoCuts::rod_list
MbsInfoRod ** rod_list
Definition: mbs_binder_public.h:256
MbsInfoUserModel
Definition: mbs_binder_public.h:350
get_body_node
xmlNodePtr get_body_node(xmlNodePtr bodytree, const char *body_name)
Look for the specified body node in the tree.
Definition: mbs_xml_binder.c:374
MbsInfoUserModel::parameter_list
MbsInfoParameter ** parameter_list
Definition: mbs_binder_public.h:355
mbs_binder_public.h
This header defines MbsInfos (and its substructures) as well as the loading/deleting functions.
MbsInfoBody::point_list
MbsInfoPoint ** point_list
Array of pointers to the MDS_point_strct describing each point of current body.
Definition: mbs_binder_public.h:176
UpdateInline::next
struct UpdateInline * next
Pointer to next inline to be updated.
Definition: mbs_saver.h:53
UpdateShape::height
double * height
Height, except for SHAPE_BOX and SHAPE_SPHERE, of the shape.
Definition: mbs_saver.h:79
ExtForces_3D::show_y
int show_y
Definition: mbs_saver.h:104
mbs_new_info_user_IOs
MbsInfoUserIOs * mbs_new_info_user_IOs(void)
Definition: mbs_loader_public.c:1224
mbs_new_info_ball
MbsInfoBall * mbs_new_info_ball(void)
Definition: mbs_loader_public.c:836
get_bodytree_node
xmlNodePtr get_bodytree_node(xmlDocPtr doc)
Look for the bodytree node in the document.
Definition: mbs_xml_binder.c:337
mbs_info_bodytree_xml_binder
int mbs_info_bodytree_xml_binder(MbsInfoBodytree *mbs_info_bodytree, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1772
UpdateInline::shape_name
char * shape_name
Name of the shape in the shape list.
Definition: mbs_saver.h:32
mbs_info_mbs_linker
int mbs_info_mbs_linker(MbsInfos *mbs_info, int mission)
Definition: mbs_xml_binder.c:2797
MbsInfoBody::inertia
double * inertia
Array with the inertia tensor (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) of the body relative to the center of ma...
Definition: mbs_binder_public.h:173
mbs_info_init_and_binderXML
int mbs_info_init_and_binderXML(MbsInfos *mbs_infos, const char *mbs_xml_name, int mission)
Definition: mbs_xml_binder.c:2879
mbs_info_coordinates_xml_binder
int mbs_info_coordinates_xml_binder(double *coordinates_pointer, xmlNodePtr node, int mission)
Binders /////////////////////////////.
Definition: mbs_xml_binder.c:1088
MbsInfoJoint::actuated
int actuated
For inverse dynamic only: 1 if actuated, 0 otherwise.
Definition: mbs_binder_public.h:143
mbs_info_cuts_xml_binder
int mbs_info_cuts_xml_binder(MbsInfoCuts *mbs_info_cuts, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1978
MbsInfoExtforce::Pos
int Pos
1 if the computation of the sensor position has been asked, 0 otherwise.
Definition: mbs_binder_public.h:90
UpdateExtForces::comp_velocity
int * comp_velocity
Definition: mbs_saver.h:136
MbsInfoExtforce::Jdqd
int Jdqd
1 if the computation of the sensor jdqd term has been asked, 0 otherwise. Mutually exclusive with Acc...
Definition: mbs_binder_public.h:95
MbsInfoBall::name
char * name
Definition: mbs_binder_public.h:213
get_body_3Dshapes
xmlNodePtr get_body_3Dshapes(xmlDocPtr doc, const char *body_name)
Look for the node containing the 3D shape (x3D) of the specified body.
Definition: mbs_xml_binder.c:700
MbsInfos::sensor_list
MbsInfoSensor ** sensor_list
Pointer to a list of sensor.
Definition: mbs_binder_public.h:477
MbsInfoParameter::type
int type
Type of the parameter between 1 and 7.
Definition: mbs_binder_public.h:288
mbs_adapt_joint_nature
int mbs_adapt_joint_nature(MbsInfoJoint *joint_info, int verbose)
Check the symbols definition and changes the nature to locked if compatible.
Definition: mbs_loader_public.c:1634
MbsInfoJoint::qd0
double qd0
Initial velocity of the joint.
Definition: mbs_binder_public.h:140
MbsInfoUserModel::description
char * description
Description of the user model.
Definition: mbs_binder_public.h:353
mbs_info_sensor_xml_binder
int mbs_info_sensor_xml_binder(MbsInfoSensor *mbs_info_sensor, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1132
mbs_info_coordinates_xml_binder
int mbs_info_coordinates_xml_binder(double *coordinates_pointer, xmlNodePtr node, int mission)
Binders /////////////////////////////.
Definition: mbs_xml_binder.c:1088
MbsInfos::user_IOs
MbsInfoUserIOs * user_IOs
Definition: mbs_binder_public.h:435
MbsInfoParameter
Description of a user model parameter loaded from the mbs file.
Definition: mbs_binder_public.h:283
mbs_new_info_links
MbsInfoLinks * mbs_new_info_links(void)
Definition: mbs_loader_public.c:1022
mbs_info_solid_xml_binder
int mbs_info_solid_xml_binder(MbsInfoSolid *mbs_info_solid, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1920
MbsInfoSensor::Om
int Om
1 if the computation of the sensor angular velocity has been asked, 0 otherwise.
Definition: mbs_binder_public.h:73
MbsInfoParameter::structure_header
char * structure_header
Header name with path (relative or absolute) of header describing a structure parameter.
Definition: mbs_binder_public.h:337
mbs_msg_v
void mbs_msg_v(int v_opt, int v_lvl, const char *msg,...)
Send a message only of the message level is lower than the verbosity option.
Definition: mbs_message.c:143
MbsLoader
Definition: mbs_load_struct.h:76
MbsInfoParameter::val_ptr
void * val_ptr
Pointer to the memory storing the value.
Definition: mbs_binder_public.h:308
MSG_ERR
#define MSG_ERR
Definition: mbs_xml_binder.c:19
get_inline_shape
xmlNodePtr get_inline_shape(xmlNodePtr shape3D_node, const char *shape_name, int allow_creation)
Look for the specified inline shape.
Definition: mbs_xml_binder.c:835
MbsInfoUserModel::n_parameter
int n_parameter
Definition: mbs_binder_public.h:354
MbsInfoSensor::reference_joint
char * reference_joint
joint of the reference frame - relative sensor (NULL if the sensor is relative to the base)....
Definition: mbs_binder_public.h:68
mbs_info_update_shapes_xml
int mbs_info_update_shapes_xml(MbsLoader *mbs_loader, UpdateShape *up_in, int allow_new)
Update, or create this 3D shape and all next 3D shapes in the linked list.
Definition: mbs_xml_binder.c:3192
MbsInfoExtforce::Acc
int Acc
1 if the computation of the sensor linear acceleration has been asked, 0 otherwise....
Definition: mbs_binder_public.h:94
SHAPE_BOX
@ SHAPE_BOX
Definition: mbs_saver.h:16
MbsInfoSolid::endpoint2
MbsInfoRefPoint * endpoint2
Definition: mbs_binder_public.h:243
get_base_shape
xmlNodePtr get_base_shape(xmlNodePtr shape3D_node, const char *shape_name, int nature, int allow_creation)
Look for the specified basic shape.
Definition: mbs_xml_binder.c:895
MbsInfoJoint::type
int type
Joint type: T1=1, T2=2, T3=3, R1=4, R2=5, R3=6.
Definition: mbs_binder_public.h:136
mbs_new_info_extforce
MbsInfoExtforce * mbs_new_info_extforce(void)
Definition: mbs_loader_public.c:549
UpdateShape::rotation
double * rotation
Rotation (around x, y, z) of the inline, Set to NULL to not update it.
Definition: mbs_saver.h:86
mbs_new_info_d_data
MbsInfoDData * mbs_new_info_d_data(void)
Definition: mbs_loader_public.c:462
MbsInfoSolid::ignore
int * ignore
Definition: mbs_binder_public.h:245
MbsInfoUserIOs
Definition: mbs_binder_public.h:388
UpdateExtForces::name
char * name
Name of the external force, should be unique.
Definition: mbs_saver.h:134
get_double_xlm_node
double get_double_xlm_node(xmlNodePtr in_node)
Definition: mbs_xml_binder.c:47
MbsInfoUserIO::name
char * name
Name of the user IO.
Definition: mbs_binder_public.h:372
mbs_info_bodytree_xml_binder
int mbs_info_bodytree_xml_binder(MbsInfoBodytree *mbs_info_bodytree, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1772
UpdateExtForces::comp_position
int * comp_position
Definition: mbs_saver.h:136
MbsInfoUserIOs::n_user_IO
int n_user_IO
Number of user IO in the system.
Definition: mbs_binder_public.h:391
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.h:88
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.h:45
MBS_INFO_INIT
#define MBS_INFO_INIT
Definition: mbs_define.h:27
mbs_info_update_linkforce_xml
int mbs_info_update_linkforce_xml(MbsLoader *mbs_loader, UpdateLinkForces *lnk, int allow_new)
Update, or create the provided link force.
Definition: mbs_xml_binder.c:3969
set_char_xlm_node
int set_char_xlm_node(xmlNodePtr in_node, const char *text)
Definition: mbs_xml_binder.c:147
mbs_load_struct.h
MbsInfoSolid::name
char * name
Definition: mbs_binder_public.h:240
mbs_new_info_base
MbsInfoBase * mbs_new_info_base(void)
Definition: mbs_loader_public.c:639
mbs_info_user_models_xml_binder
int mbs_info_user_models_xml_binder(MbsInfoUserModels *mbs_info_user_models, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:2398
MBS_VERBOSE_ERROR
#define MBS_VERBOSE_ERROR
Definition: mbs_define.h:44
get_string_xml_node
int get_string_xml_node(xmlNodePtr in_node, char **dest)
Definition: mbs_xml_binder.c:68
MbsInfos::n_sensor
int n_sensor
Number of sensor in the model.
Definition: mbs_binder_public.h:451
MbsInfoBodytree::body_list
MbsInfoBody ** body_list
Definition: mbs_binder_public.h:183
get_point_node
xmlNodePtr get_point_node(xmlNodePtr body_node, const char *point_name, int allow_new, double coords_2d[2])
Look for the specified point node in the body or base node.
Definition: mbs_xml_binder.c:503
MbsInfoBody::n_point
int n_point
Number of point defined on the body.
Definition: mbs_binder_public.h:175
UpdateShape::radius
double * radius
Radius, except for SHAPE_BOX, of the shape. Set to NULL to not update it.
Definition: mbs_saver.h:77
MbsInfoSensor::Pos
int Pos
1 if the computation of the sensor position has been asked, 0 otherwise.
Definition: mbs_binder_public.h:70
MbsInfoBody
This structure contains all informations about a body.
Definition: mbs_binder_public.h:161
mbs_info_links_xml_binder
int mbs_info_links_xml_binder(MbsInfoLinks *mbs_info_links, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2089
mbs_new_info_ref_point
MbsInfoRefPoint * mbs_new_info_ref_point(void)
Definition: mbs_loader_public.c:487
SHAPE_CONE
@ SHAPE_CONE
Definition: mbs_saver.h:18
UpdateInline::on_base
int on_base
True (1) if the shape is on the basebody.
Definition: mbs_saver.h:28
mbs_xml_binder_private.h
MbsInfoPoint::extforce
MbsInfoExtforce * extforce
Pointer to an external force sensor structure if it is defined on the point.
Definition: mbs_binder_public.h:111
mbs_info_find_children_xml
xmlNodePtr mbs_info_find_children_xml(xmlNodePtr node, const char *name)
Return the children whose name matches.
Definition: mbs_xml_binder.c:273
mbs_info_parameter_xml_binder
int mbs_info_parameter_xml_binder(MbsInfoParameter *mbs_info_parameter, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2150
MbsLoader::mbs_infos
MbsInfos * mbs_infos
Contains the multibody structure with more informations than used by computation.
Definition: mbs_load_struct.h:80
MbsInfoParameter::string_name
char * string_name
Pointer containing the string name (if type is 8). NULL otherwise.
Definition: mbs_binder_public.h:306
MbsInfos::links
MbsInfoLinks * links
Definition: mbs_binder_public.h:433
get_basebody_node
xmlNodePtr get_basebody_node(xmlDocPtr doc)
Look for the base node in the document.
Definition: mbs_xml_binder.c:300
find_xmlNodePtr
xmlNodePtr find_xmlNodePtr(xmlNodePtr node, char *name)
Definition: mbs_xml_binder.c:248
mbs_message.h
get_point_node
xmlNodePtr get_point_node(xmlNodePtr body_node, const char *point_name, int allow_new, double coords_2d[2])
Look for the specified point node in the body or base node.
Definition: mbs_xml_binder.c:503
mbs_info_point_list_xml_binder
int mbs_info_point_list_xml_binder(MbsInfoPoint **mbs_info_point_list, xmlNodePtr node, int mission, char *body_name)
Definition: mbs_xml_binder.c:1514
mbs_xml_info_to_loader
int mbs_xml_info_to_loader(MbsLoader *mbs_loader, const char *mbs_xml_name)
Load and store the specified xml file into both MbsInfo and xmlDocPtr format.
Definition: mbs_xml_binder.c:2742
MbsInfoSensor::name
char * name
Name of the sensor.
Definition: mbs_binder_public.h:65
mbs_info_base_xml_binder
int mbs_info_base_xml_binder(MbsInfoBase *mbs_info_base, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1585
mbs_info_links_xml_binder
int mbs_info_links_xml_binder(MbsInfoLinks *mbs_info_links, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2089
set_char_cpy
int set_char_cpy(char **dest, const char *fmt,...)
Set a copy the provided formatted string into a newly allocated memory.
Definition: useful_functions.c:228
mbs_info_link_xml_binder
int mbs_info_link_xml_binder(MbsInfoLink *mbs_info_link, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2055
MbsInfoCuts::n_solid
int n_solid
Definition: mbs_binder_public.h:253
MbsInfoUserIO
Definition: mbs_binder_public.h:369
UpdateInline::visible
int visible
Flag to show the shape (1) or hide it (0). Set to -1 to not update it.
Definition: mbs_saver.h:51
MbsInfoBody::joint_parent
char * joint_parent
parent joint of the current body (NULL if it is a parent point)
Definition: mbs_binder_public.h:166
get_int_xlm_attr
int get_int_xlm_attr(xmlAttrPtr in_node)
Definition: mbs_xml_binder.c:36
MbsInfoRod
Definition: mbs_binder_public.h:222
MbsInfoParameter::n_value
int n_value
Number of values in the parameter.
Definition: mbs_binder_public.h:300
MbsInfoUserModels::n_user_model
int n_user_model
Definition: mbs_binder_public.h:361
mbs_info_body_xml_binder
int mbs_info_body_xml_binder(MbsInfoBody *mbs_info_body, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1637
MbsInfoBody::com
double * com
Array with the coordinate (x, y, z) of the center of mass of the body relative to the origin of the b...
Definition: mbs_binder_public.h:172
MbsInfoSensor
This structure contains all information about a sensor defined on the MBS structure.
Definition: mbs_binder_public.h:63
get_basebody_point
xmlNodePtr get_basebody_point(xmlDocPtr doc, const char *point_name, int allow_new)
Look for the specified point node on the base.
Definition: mbs_xml_binder.c:976
MbsInfoJoint::symb_q
int symb_q
Flag to generate symbol for position.
Definition: mbs_binder_public.h:149
MbsInfoDData
Definition: mbs_binder_public.h:32
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.h:109
MbsInfoParameter::structure_lutfile
char * structure_lutfile
File and path (relative or absolute) to the file containing the Look-up-Table dats.
Definition: mbs_binder_public.h:344
UpdateShape
Define modifications to be done on a basic shape.
Definition: mbs_saver.h:60
mbs_info_point_xml_binder
int mbs_info_point_xml_binder(MbsInfoPoint *mbs_info_point, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1450
XML_LOADED
@ XML_LOADED
Definition: mbs_load_struct.h:74
MbsInfoJoint::nature
int nature
Nature of the joint: independent=1, dependent=2, driven=3, locked=4.
Definition: mbs_binder_public.h:137
UpdateExtForces::point_name
char * point_name
Name of the point with the force.
Definition: mbs_saver.h:132
MbsInfoBall::ignore
int * ignore
Definition: mbs_binder_public.h:218
MbsInfoBase
Structure handling the informations defined on the base of the MBS.
Definition: mbs_binder_public.h:122
MbsInfoSensor::Rot
int Rot
1 if the computation of the sensor rotation matrix has been asked, 0 otherwise.
Definition: mbs_binder_public.h:71
mbs_new_info_point
MbsInfoPoint * mbs_new_info_point(void)
Definition: mbs_loader_public.c:578
get_string_xml_node_2
int get_string_xml_node_2(char **string_ptr, xmlNodePtr in_node)
Definition: mbs_xml_binder.c:120
IGNORE_LOADED
@ IGNORE_LOADED
Definition: mbs_load_struct.h:74
MbsInfoPoint
This structure handle everything that a point on a MBS structure can handle (sensor,...
Definition: mbs_binder_public.h:104
UpdateExtForces::body_name
char * body_name
Name of the body with the force, disregarded if on_base is true.
Definition: mbs_saver.h:130
mbs_info_link_xml_binder
int mbs_info_link_xml_binder(MbsInfoLink *mbs_info_link, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2055
MbsInfoRefPoint::pointname
char * pointname
Name of the reference point on the previous body.
Definition: mbs_binder_public.h:56
mbs_is_dir_or_file
int mbs_is_dir_or_file(const char *path)
Check if the path is valid and lead to a file or directory.
Definition: mbs_path.c:547
MbsInfoRod::endpoint1
MbsInfoRefPoint * endpoint1
Definition: mbs_binder_public.h:226
SHAPE_SPHERE
@ SHAPE_SPHERE
Definition: mbs_saver.h:19
MSG_PRE
#define MSG_PRE
Definition: mbs_xml_binder.c:20
MbsInfoCuts::solid_list
MbsInfoSolid ** solid_list
Definition: mbs_binder_public.h:257
MbsInfoSolid::endpoint1
MbsInfoRefPoint * endpoint1
Definition: mbs_binder_public.h:242
MbsInfos::bodytree
MbsInfoBodytree * bodytree
Definition: mbs_binder_public.h:431
create_shape
xmlNodePtr create_shape(xmlNodePtr parent_node, const char *shape_name, char *shape_nature)
Definition: mbs_xml_binder.c:768
UpdateShape::scale
double * scale
Scale (x, y, z) of the shape, Set to NULL to not update it.
Definition: mbs_saver.h:84
UpdateShape::position
double * position
Position (x, y, z) of the shape, Set to NULL to not update it.
Definition: mbs_saver.h:82
mbs_info_solid_xml_binder
int mbs_info_solid_xml_binder(MbsInfoSolid *mbs_info_solid, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1920
mbs_info_init_and_binderXML
int mbs_info_init_and_binderXML(MbsInfos *mbs_infos, const char *mbs_xml_name, int mission)
Definition: mbs_xml_binder.c:2879
MbsLoadOptions::verbose
int verbose
Verbosity level (not yet implemented everywhere): Verbosity level propagated to other compatible modu...
Definition: mbs_load_struct.h:39
ExtForces_3D::color_resultant
int * color_resultant
Color of each arrow in RGB format.
Definition: mbs_saver.h:115
mbs_info_update_inlines_xml
int mbs_info_update_inlines_xml(MbsLoader *mbs_loader, UpdateInline *up_in, int allow_new)
Update, or create this inline and all next inlines in the linked list.
Definition: mbs_xml_binder.c:2930
UpdateExtForces::force_3d
ExtForces_3D * force_3d
Definition: mbs_saver.h:138
MbsInfoRod::length
double length
Definition: mbs_binder_public.h:229
mbs_info_ref_point_xml_binder
int mbs_info_ref_point_xml_binder(MbsInfoRefPoint *mbs_info_ref_point, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1563
MbsInfoUserModels::user_model_list
MbsInfoUserModel ** user_model_list
Definition: mbs_binder_public.h:362
ExtForces_3D::color_x
int * color_x
Definition: mbs_saver.h:112
mbs_info_find_children_xml
xmlNodePtr mbs_info_find_children_xml(xmlNodePtr node, const char *name)
Return the children whose name matches.
Definition: mbs_xml_binder.c:273
mbs_new_info_user_model
MbsInfoUserModel * mbs_new_info_user_model(void)
Definition: mbs_loader_public.c:1137
MbsInfoCuts::ball_list
MbsInfoBall ** ball_list
Definition: mbs_binder_public.h:255
mbs_new_info_cuts
MbsInfoCuts * mbs_new_info_cuts(void)
Definition: mbs_loader_public.c:939
MbsInfoBall
Definition: mbs_binder_public.h:211
MbsInfoBody::joint_list
MbsInfoJoint ** joint_list
Array of pointers to the MDS_joint_strct describing each joint leaving the body.
Definition: mbs_binder_public.h:169
MbsInfoSensor::parent_point
MbsInfoRefPoint * parent_point
parent point of the sensor (NULL if it is a parent joint)
Definition: mbs_binder_public.h:66
MbsInfoExtforce::Rot
int Rot
1 if the computation of the sensor rotation matrix has been asked, 0 otherwise.
Definition: mbs_binder_public.h:91
get_dvec_1
double * get_dvec_1(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 1
Definition: mbs_1D_array.c:960
mbs_new_info_user_models
MbsInfoUserModels * mbs_new_info_user_models(void)
Definition: mbs_loader_public.c:1171
mbs_path.h
get_basebody_node
xmlNodePtr get_basebody_node(xmlDocPtr doc)
Look for the base node in the document.
Definition: mbs_xml_binder.c:300
get_links_node
xmlNodePtr get_links_node(xmlDocPtr doc, int create)
Look for the node containing all the links.
Definition: mbs_xml_binder.c:1040
MbsInfoParameter::description
char * description
Description of the parameter in the user model.
Definition: mbs_binder_public.h:286
MbsInfoBodytree::n_body
int n_body
Definition: mbs_binder_public.h:182
get_int_xlm_node
int get_int_xlm_node(xmlNodePtr in_node)
GET functions ///////////////////////.
Definition: mbs_xml_binder.c:25
MbsLoader::loaded_nature
int loaded_nature
Flag to specifying either if the deep mbs file specific structure must be kept in memory (before load...
Definition: mbs_load_struct.h:100
MbsInfoRod::endpoint2
MbsInfoRefPoint * endpoint2
Definition: mbs_binder_public.h:227
MBS_INFO_SUCCESS
#define MBS_INFO_SUCCESS
Definition: mbs_define.h:29
UpdateShape::shape_name
char * shape_name
Name of the shape in the shape list.
Definition: mbs_saver.h:66
MbsInfos::user_models
MbsInfoUserModels * user_models
Definition: mbs_binder_public.h:434
MbsInfoJoint::q0
double q0
Initial position of the joint.
Definition: mbs_binder_public.h:139
UpdateShape::next
struct UpdateShape * next
Pointer to next shape to be updated.
Definition: mbs_saver.h:93
MBS_INFO_READER
#define MBS_INFO_READER
Definition: mbs_define.h:23
mbs_info_joint_list_xml_binder
int mbs_info_joint_list_xml_binder(MbsInfoJoint **joint_list, xmlNodePtr node, int mission, int verbose)
Definition: mbs_xml_binder.c:1417
MbsInfoJoint::symb_qdd
int symb_qdd
Flag to generate symbol for acceleration.
Definition: mbs_binder_public.h:151
mbs_info_update_shapes_xml
int mbs_info_update_shapes_xml(MbsLoader *mbs_loader, UpdateShape *up_in, int allow_new)
Update, or create this 3D shape and all next 3D shapes in the linked list.
Definition: mbs_xml_binder.c:3192
get_basebody_3Dshapes
xmlNodePtr get_basebody_3Dshapes(xmlDocPtr doc, int create)
Look for the node containing the 3D shape (x3D) of the base node.
Definition: mbs_xml_binder.c:434
MbsInfos::extforce_list
MbsInfoExtforce ** extforce_list
Pointer to a list of external force sensor
Definition: mbs_binder_public.h:479
MbsInfoBase::base_body_name
char * base_body_name
baseBodyName as defined in the base body in mbs/json file
Definition: mbs_binder_public.h:127
ExtForces_3D::show_z
int show_z
Definition: mbs_saver.h:105
mbs_info_update_extforces_xml
int mbs_info_update_extforces_xml(MbsLoader *mbs_loader, UpdateExtForces *frc, int allow_new)
Update, or create this external force all next ExtFrc in the linked list.
Definition: mbs_xml_binder.c:3508
UpdateInline::body_name
char * body_name
Name of the body with the shape, disregarded if on_base is true.
Definition: mbs_saver.h:30
MbsInfoUserModel::name
char * name
Definition: mbs_binder_public.h:352
mbs_info_extforce_xml_binder
int mbs_info_extforce_xml_binder(MbsInfoExtforce *mbs_info_extforce, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1186
MbsInfoExtforce::Jac
int Jac
1 if the computation of the sensor Jacobian ( ) has been asked, 0 otherwise.
Definition: mbs_binder_public.h:97
MbsInfoBody::name
char * name
Name of the body.
Definition: mbs_binder_public.h:163
get_body_point
xmlNodePtr get_body_point(xmlDocPtr doc, const char *body_name, const char *point_name, int allow_new)
Look for the specified point node on the specified body.
Definition: mbs_xml_binder.c:1003
MBS_INFO_COUNTER
#define MBS_INFO_COUNTER
Definition: mbs_define.h:26
UpdateShape::shape_nature
int shape_nature
Indicate if the shape is a box, cylinder, cone or sphere:
Definition: mbs_saver.h:69
MbsInfoParameter::flag_PRJPATH
int flag_PRJPATH
Flag to indicate that the path to the data file start from the project path (stored as "PRJPATH" in m...
Definition: mbs_binder_public.h:342
mbs_info_ball_xml_binder
int mbs_info_ball_xml_binder(MbsInfoBall *mbs_info_ball, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1817
UpdateShape::body_name
char * body_name
Name of the body with the shape, disregarded if on_base is true.
Definition: mbs_saver.h:64
MbsInfoSensor::Jdqd
int Jdqd
1 if the computation of the sensor jdqd term has been asked, 0 otherwise. Mutually exclusive with Acc...
Definition: mbs_binder_public.h:75
MbsInfos::mbsname
char * mbsname
Name of the project in the multibody system file.
Definition: mbs_binder_public.h:441
MbsInfos::padversion
char * padversion
Version number of the MBsysPAD that last modified the file.
Definition: mbs_binder_public.h:443
mbs_info_point_list_xml_binder
int mbs_info_point_list_xml_binder(MbsInfoPoint **point_list, xmlNodePtr node, int mission, char *body_name)
Definition: mbs_xml_binder.c:1514
MbsInfos::n_extforce
int n_extforce
Number of external force in the model.
Definition: mbs_binder_public.h:456
UpdateShape::size
double * size
Size, SHAPE_BOX only, along x, y, z. Set to NULL to not update it.
Definition: mbs_saver.h:75
UpdateInline
Define modification to be done on a inline.
Definition: mbs_saver.h:26
mbs_new_info_link
MbsInfoLink * mbs_new_info_link(void)
Definition: mbs_loader_public.c:992
MbsInfoBody::point_parent
MbsInfoRefPoint * point_parent
Description of the parent point of the current body. (NULL if it is a parent joint)
Definition: mbs_binder_public.h:165
MbsInfoUserIOs::n_in
int n_in
Number of INPUT user IO in the system.
Definition: mbs_binder_public.h:393
mbs_info_update_inlines_xml
int mbs_info_update_inlines_xml(MbsLoader *mbs_loader, UpdateInline *up_in, int allow_creation)
Update, or create this inline and all next inlines in the linked list.
Definition: mbs_xml_binder.c:2930
mbs_new_info_rod
MbsInfoRod * mbs_new_info_rod(void)
Definition: mbs_loader_public.c:868
ExtForces_3D::diameter
double diameter
Diameter of the arrow, use 0 to not update the diameter.
Definition: mbs_saver.h:118
mbs_info_point_xml_binder
int mbs_info_point_xml_binder(MbsInfoPoint *mbs_info_point, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:1450
MbsInfoUserModels
Definition: mbs_binder_public.h:359
mbs_xml_info_to_loader
int mbs_xml_info_to_loader(MbsLoader *mbs_loader, const char *mbs_xml_name)
Load and store the specified xml file into both MbsInfo and xmlDocPtr format.
Definition: mbs_xml_binder.c:2742
MbsInfoSensor::Omp
int Omp
1 if the computation of the sensor angular acceleration has been asked, 0 otherwise.
Definition: mbs_binder_public.h:76
mbs_xmlNewDocNode_attr_rgb
xmlNodePtr mbs_xmlNewDocNode_attr_rgb(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content, char *R, char *G, char *B)
Definition: mbs_xml_binder.c:218
mbs_info_user_model_xml_binder
int mbs_info_user_model_xml_binder(MbsInfoUserModel *mbs_info_user_model, xmlNodePtr node, int mission)
Definition: mbs_xml_binder.c:2348
MbsInfoJoint::symb_qd
int symb_qd
Flag to generate symbol for velocity.
Definition: mbs_binder_public.h:150
get_body_3Dshapes
xmlNodePtr get_body_3Dshapes(xmlDocPtr doc, const char *body_name)
Look for the node containing the 3D shape (x3D) of the specified body.
Definition: mbs_xml_binder.c:700
mbs_errors_names.h
MbsInfoSensor::Vit
int Vit
1 if the computation of the sensor linear velocity has been asked, 0 otherwise.
Definition: mbs_binder_public.h:72
MbsInfoExtforce
This structure contains all information about an external force sensor defined on the MBS structure.
Definition: mbs_binder_public.h:84
UpdateInline::shape_url
char * shape_url
Path to the shape file.
Definition: mbs_saver.h:35
MbsInfoSensor::Jac
int Jac
1 if the computation of the sensor Jacobian ( ) has been asked, 0 otherwise.
Definition: mbs_binder_public.h:77
MbsInfoBody::n_joint
int n_joint
Number of joints leaving the body.
Definition: mbs_binder_public.h:168