|
Robotran C Documentation
|
Go to the documentation of this file.
32 #define WIN32_LEAN_AND_MEAN
34 #elif defined(__unix__) || defined(__APPLE__)
37 #error Platform not supported.
49 #elif defined(__unix__) || defined(__APPLE__)
52 #error Platform not supported.
452 #if !defined SENSORKIN
int * qrot
Array with the indices of the rotational articulations (incremental values)
Definition: mbs_data.h:342
void(* mbs_link_ptr)(double **frc, double **trq, double *Flnk, double *Z, double *Zd, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:106
user_LinkForces_d_ptr user_LinkForces_dq
Definition: mbs_data.h:169
void(* mbs_print_user_IO_ptr)(UserIO *uio)
Definition: mbs_project_fct_ptr.h:92
int(* set_mbs_to_output_ptr)(MbsData *mbs_data)
Definition: mbs_project_fct_ptr.h:51
void(* mbs_delete_user_IO_ptr)(UserIO *uvs)
Definition: mbs_project_fct_ptr.h:83
double *** dSWr_dq
The derivative matrices of each external force MbsData::SWr vector according to the independent joint...
Definition: mbs_data.h:225
mbs_checksymb_ptr mbs_check_symbolic
Definition: mbs_data.h:80
void(* user_realtime_options_ptr)(MbsData *mbs_data, Realtime_option *options)
Definition: mbs_project_fct_ptr.h:97
int * xfidpt
Array of the points defined as force application points.
Definition: mbs_data.h:443
mbs_invdynared_d_ptr mbs_invdynared_dqdd
Definition: mbs_data.h:83
void(* mbs_link3D_ptr)(double **frc, double **trq, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:107
int Ncons
Number of algebraic constraints.
Definition: mbs_data.h:378
double ** M
Tangent matrix to acceleration of size [njoint+1, njoint+1].
Definition: mbs_data.h:204
mbs_invdynared_d_ptr mbs_invdynared_dqd
Definition: mbs_data.h:82
Definition: user_model.h:24
Definition: mbs_output_struct.h:44
user_realtime_visu_ptr user_realtime_visu
Definition: mbs_data.h:190
double * qd
Array with the current values of the generalized velocities.
Definition: mbs_data.h:346
double *** dSWr_link3d_dqd
The derivative matrices of each link3d MbsData::SWr vector according to the independent joint velocit...
Definition: mbs_data.h:237
double(* user_LinkForces_d_ptr)(double Z, double d_Z, double Zd, double d_Zd, MbsData *mbs_data, double tsim, int i_link, int index)
Definition: mbs_project_fct_ptr.h:55
void(* user_realtime_plot_ptr)(MbsData *mbs_data)
Definition: mbs_project_fct_ptr.h:101
double ** dQq_dqd
The derivative matrix of the joint force vector according to the independent joint velocities: .
Definition: mbs_data.h:217
int * qa
Array with the indices of actuated articulations (only for inverse dynamic).
Definition: mbs_data.h:338
double dt0
Initial value of the integration step size [s]. For dirdyn and invdyn only. This parameter is set fro...
Definition: mbs_data.h:370
void(* user_invdyn_finish_ptr)(MbsData *MBSdata, MbsInvdyn *mbs_invd)
Definition: mbs_project_fct_ptr.h:34
double * m
Array containing the mass of each body.
Definition: mbs_data.h:313
int DonePart
Flag that indicates if the coordinate partitioning module has been executed (default: 0=not done; 1=d...
Definition: mbs_data.h:482
UserIO * user_IO
Structure containing all the user IO.
Definition: mbs_data.h:465
void(* mbs_save_um_ptr)(FILE *stream, UserModel *ums)
Definition: mbs_project_fct_ptr.h:91
double * dq_dp
derivative of joint position q w.r.t. param p, vector size of [njoint+1].
Definition: mbs_data.h:207
mbs_cons_hJ_ptr mbs_cons_hJ
Definition: mbs_data.h:76
double *** dSWr_dqd
The derivative matrices of each external force MbsData::SWr vector according to the independent joint...
Definition: mbs_data.h:227
user_equil_finish_ptr user_equil_finish
Definition: mbs_data.h:104
double tsim
The time value.
Definition: mbs_data.h:366
int nqrot
Number of rotational joint (R1, R2 or R3)
Definition: mbs_data.h:330
int Nlink3D
Number of 3D links.
Definition: mbs_data.h:417
Contains information about UserIO.
Definition: mbs_user_interface.h:32
char * mbs_filename
Path to mbs file including the file with the extension (.mbs)
Definition: mbs_data.h:505
void(* mbs_dirdyna_ptr)(double **M, double *c, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:110
mbs_invdynared_d_ptr mbs_invdynared_dp
Definition: mbs_data.h:84
int nqv
Number of dependent articulations.
Definition: mbs_data.h:328
mbs_link_ptr mbs_link
Definition: mbs_data.h:70
mbs_new_user_model_ptr mbs_new_user_model
Definition: mbs_data.h:125
int DoneEquil
Flag that indicates the equilibrium module output.
Definition: mbs_data.h:488
int(* mbs_checksymb_ptr)(MbsData *s)
Definition: mbs_project_fct_ptr.h:116
int * qc
Array with the indices of driven (locked and driven) articulations.
Definition: mbs_data.h:333
double * ux0
Array with the initial values of the user variables.
Definition: mbs_data.h:476
mbs_invdyna_ptr mbs_invdyna
Definition: mbs_data.h:75
void(* mbs_delete_user_model_ptr)(UserModel *ums)
Definition: mbs_project_fct_ptr.h:82
int nqu
Number of independent articulations.
Definition: mbs_data.h:323
void(* mbs_save_user_IO_ptr)(FILE *stream, UserIO *uio)
Definition: mbs_project_fct_ptr.h:93
int njoint
Number of joints in the system.
Definition: mbs_data.h:320
double tf
Final time of the simulation [s]. For dirdyn and invdyn only. This parameter is set from dirdyn/invyn...
Definition: mbs_data.h:369
double ** G
Damping matrix of size [njoint+1, njoint+1].
Definition: mbs_data.h:203
int npt
Number of anchor points.
Definition: mbs_data.h:310
double *** dSWr_link3d_dq
The derivative matrices of each link3d MbsData::SWr vector according to the independent joint coordin...
Definition: mbs_data.h:235
mbs_delete_user_model_ptr mbs_delete_user_model
Definition: mbs_data.h:126
user_equil_init_ptr user_equil_init
Definition: mbs_data.h:102
int(* mbs_accelred_ptr)(MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:109
user_dirdyn_init_ptr user_dirdyn_init
Definition: mbs_data.h:94
int n_ball
Number of ball constraint in the system.
Definition: mbs_data.h:374
MbsDataUtils * data_utils
Structure gathering multibody informations that are not required for computation.
Definition: mbs_data.h:526
user_equil_loop_ptr user_equil_loop
Definition: mbs_data.h:103
set_mbs_to_output_ptr user_synch_outputs
Definition: mbs_data.h:193
mbs_save_um_ptr mbs_save_um
Definition: mbs_data.h:148
user_dirdyn_loop_ptr user_dirdyn_loop
Definition: mbs_data.h:95
user_invdyn_finish_ptr user_invdyn_finish
Definition: mbs_data.h:100
char ** link_names
Pointer to the list of link force names.
Definition: mbs_data.h:281
int Nux
Number of user variable.
Definition: mbs_data.h:477
int flag_jac_position
Flag to compute the Jacobian of the constraint for position or velocity solution.
Definition: mbs_data.h:494
double ** jac_user
Jacobian of constraints [nqv x njoint] (starting at 1), only used in symbolic accelred,...
Definition: mbs_data.h:408
double zero_division_thrs
Value from which a warning is raised if a division by zero (or close to) occurs. Default=1....
Definition: mbs_data.h:503
user_JointForces_d_ptr user_JointForces_dqdd
Definition: mbs_data.h:166
user_ExtForces_ptr user_ExtForces
Definition: mbs_data.h:116
MbsDp * mbs_dp
Structure to store the matrix of tangent analysis (symbolic).
Definition: mbs_data.h:512
int DoneModal
Flag that indicates if the modal module has been executed (default: 0=not done; 1=done).
Definition: mbs_data.h:489
mbs_dirdyna_ptr mbs_dirdyna
Definition: mbs_data.h:74
user_joystick_axes_ptr user_joystick_axes
Definition: mbs_data.h:188
Gather utilities for the multibody system that are not requires for computation.
Definition: mbs_data.h:250
double *(* user_ExtForces_d_ptr)(double PxF[4], double d_PxF[4], double RxF[4][4], double d_RxF[4][4], double VxF[4], double d_VxF[4], double OMxF[4], double d_OMxF[4], double AxF[4], double d_AxF[4], double OMPxF[4], double d_OMPxF[4], MbsData *s, double tsim, int i_force, int index)
Definition: mbs_project_fct_ptr.h:68
int flag_optim_symb_sin_cos
allow the "optimisation" of the computation of the sine/cosine in the symbolic files....
Definition: mbs_data.h:356
UserIO *(* mbs_new_user_IO_ptr)(UserIoInfo *ioInfo)
Definition: mbs_project_fct_ptr.h:80
double ** SWr
Array of Swr vector for each external forces.
Definition: mbs_data.h:444
char ** rod_names
Pointer to the list of rod constraint names.
Definition: mbs_data.h:301
char ** body_names
Pointer to the list of body names.
Definition: mbs_data.h:261
int(* mbs_bind_user_name_ptr)(MbsData *mbs_data)
Definition: mbs_project_fct_ptr.h:89
double *(* user_Link3DForces_d_ptr)(double PxF[4], double d_PxF[4], double RxF[4][4], double d_RxF[4][4], double VxF[4], double d_VxF[4], double OMxF[4], double d_OMxF[4], double AxF[4], double d_AxF[4], double OMPxF[4], double d_OMPxF[4], MbsData *s, double tsim, int i_link3d, int index)
Definition: mbs_project_fct_ptr.h:59
mbs_link3D_ptr mbs_link3D
Definition: mbs_data.h:71
char * mbsysc_path
Installation directory of MBsysC.
Definition: mbs_data.h:519
double * q_cos
Array with the cosine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:355
void(* mbs_extforces_ptr)(double **frc, double **trq, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:108
user_Link3DForces_ptr user_Link3DForces
Definition: mbs_data.h:115
void(* user_cons_hJ_ptr)(double *h, double **Jac, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:41
int * hu
Array with the indices of independent constraints.
Definition: mbs_data.h:341
double ** dSWr_link3d_dp
The derivative matrices of each link3d MbsData::SWr vector according to the specified parameter: .
Definition: mbs_data.h:241
double ** dSWr_dp
The derivative matrices of each external force MbsData::SWr vector according to the specified paramet...
Definition: mbs_data.h:231
int Nxfrc
Number of points where an external force is applied into a body.
Definition: mbs_data.h:442
double *(* user_Link3DForces_dp_ptr)(double PxF[4], double d_PxF[4], double RxF[4][4], double d_RxF[4][4], double VxF[4], double d_VxF[4], double OMxF[4], double d_OMxF[4], double AxF[4], double d_AxF[4], double OMPxF[4], double d_OMPxF[4], MbsData *s, double tsim, int i_link3d)
Definition: mbs_project_fct_ptr.h:63
char ** sensor_names
Pointer to the list of sensor names.
Definition: mbs_data.h:271
void(* user_joystick_buttons_ptr)(MbsData *mbs_data, int buttonID)
Definition: mbs_project_fct_ptr.h:103
double *** dSWr_dqdd
The derivative matrices of each external force MbsData::SWr vector according to the independent joint...
Definition: mbs_data.h:229
void(* user_keyboard_ptr)(MbsData *mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates)
Definition: mbs_project_fct_ptr.h:100
user_joystick_buttons_ptr user_joystick_buttons
Definition: mbs_data.h:189
double *(* user_JointForces_dp_ptr)(MbsData *mbs_data, double tsim)
Definition: mbs_project_fct_ptr.h:54
Simu_realtime * realtime
Pointer to Simu_realtime structure.
Definition: mbs_data.h:514
double * qd0
Array with the initial values of the generalized velocities.
Definition: mbs_data.h:350
char ** point_names
Pointer to the list of point names.
Definition: mbs_data.h:266
mbs_get_user_model_list_ptr mbs_get_user_model_list
Definition: mbs_data.h:147
mbs_print_user_IO_ptr mbs_print_user_IO
Print the current UserIO values.
Definition: mbs_data.h:154
int Nlink
Number of forces acting between two points of the system (force law implemented in user_LinkForces())...
Definition: mbs_data.h:416
Definition: mbs_data.h:59
double * dQq_dp
The derivative vector of the joint force vector according to the specified parameter: .
Definition: mbs_data.h:221
void(* mbs_load_user_model_ptr)(MbsInfos *mbs_infos, UserModel *ums)
Definition: mbs_project_fct_ptr.h:87
mbs_load_user_model_ptr mbs_load_user_model
Definition: mbs_data.h:142
void(* user_cons_J_accelred_ptr)(MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:43
user_Link3DForces_d_ptr user_Link3DForces_dqd
Definition: mbs_data.h:175
user_keyboard_ptr user_keyboard
Definition: mbs_data.h:186
double(* user_LinkForces_ptr)(double Z, double Zd, MbsData *mbs_data, double tsim, int ilnk)
Definition: mbs_project_fct_ptr.h:44
int flag_safety_checks
Flag to activate safety checks everywhere in mbsysc core. Faster computation if this flag is put to 0...
Definition: mbs_data.h:502
user_free_ptr user_free
Definition: mbs_data.h:92
UserIoInfo * __user_IO_info
Details of the user IO loaded from multibody file.
Definition: mbs_data.h:469
UserModel *(* mbs_new_user_model_ptr)()
Definition: mbs_project_fct_ptr.h:81
mbs_sensor_ptr mbs_sensor
Definition: mbs_data.h:78
int MAX_NR_ITER
Maximal number of iterations for NR procedure, default 100.
Definition: mbs_data.h:381
int Nuserc
Number of user constraints.
Definition: mbs_data.h:379
user_equil_fxe_ptr user_equil_fxe
Definition: mbs_data.h:105
mbs_bind_user_name_ptr mbs_bind_user_name
Definition: mbs_data.h:144
double * Fl
Array with the current values of the forces on each link (see: user_LinkForces()).
Definition: mbs_data.h:420
int * qu
Array with the indices of the independent articulations (free)
Definition: mbs_data.h:332
void(* user_Derivative_ptr)(MbsData *s)
Definition: mbs_project_fct_ptr.h:39
double NRerr
Maximal error on constraint allowed in Newton-Raphson algorithm, default 1.0e-9.
Definition: mbs_data.h:380
double ** dQq_dq
The derivative matrix of the joint force vector according to the independent joint coordinates: .
Definition: mbs_data.h:215
double ** trq
Matrix with the components of the resultant external torques (pure torque and couple produced by forc...
Definition: mbs_data.h:361
int * qv
Array with the indices of the dependent articulations .
Definition: mbs_data.h:340
user_Link3DForces_d_ptr user_Link3DForces_dq
Definition: mbs_data.h:174
double * Qc
Array with the value of joint force introduced in driven joint to respect the user function.
Definition: mbs_data.h:412
int Nloopc
Number of loop constraints.
Definition: mbs_data.h:377
double *(* user_JointForces_ptr)(MbsData *, double)
Definition: mbs_project_fct_ptr.h:26
mbs_extforces_ptr mbs_extforces
Definition: mbs_data.h:72
user_cons_hJ_ptr user_cons_hJ
Definition: mbs_data.h:110
double * Zd
Array with the current values of the speed (spreading) between of the points of a link (see: user_Lin...
Definition: mbs_data.h:419
user_LinkForces_ptr user_LinkForces
Definition: mbs_data.h:114
double * Qq
Array with the values of the joint forces.
Definition: mbs_data.h:362
void(* mbs_invdynared_d_ptr)(MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:117
double * q
Array with the current values of the generalized coordinates.
Definition: mbs_data.h:345
char ** ball_names
Pointer to the list of ball constraint names.
Definition: mbs_data.h:291
double ** In
Array containing the inertia tensor component of each body (in the body fixed frame,...
Definition: mbs_data.h:314
int Nsensor
< Array of l3DWr vector for each 3D link forces.
Definition: mbs_data.h:439
void(* user_realtime_visu_ptr)(MbsData *mbs_data, int nb_models, int *nb_q, double **q_vec)
Definition: mbs_project_fct_ptr.h:104
user_ExtForces_dp_ptr user_ExtForces_dp
Definition: mbs_data.h:182
char * project_path
Path to the mbs project folder.
Definition: mbs_data.h:507
user_Link3DForces_dp_ptr user_Link3DForces_dp
Definition: mbs_data.h:177
MbsDataLibInfo * symbolicLibHandle
Definition: mbs_data.h:62
user_realtime_plot_ptr user_realtime_plot
Definition: mbs_data.h:187
int nqdriven
Number of driven articulations.
Definition: mbs_data.h:326
user_JointForces_d_ptr user_JointForces_dqd
Definition: mbs_data.h:165
user_realtime_options_ptr user_realtime_options
Definition: mbs_data.h:185
void(* user_DrivenJoints_ptr)(MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:40
Functions fct
Structure to store the pointer to the project-specific functions.
Definition: mbs_data.h:510
user_Derivative_ptr user_Derivative
Definition: mbs_data.h:107
void(* user_invdyn_init_ptr)(MbsData *MBSdata, MbsInvdyn *mbs_invd)
Definition: mbs_project_fct_ptr.h:32
char ** link3D_names
Pointer to the list of link3D force names.
Definition: mbs_data.h:286
void(* mbs_cons_hJ_ptr)(double *h, double **Jac, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:112
user_invdyn_loop_ptr user_invdyn_loop
Definition: mbs_data.h:99
mbs_get_user_model_size_ptr mbs_get_user_model_size
Definition: mbs_data.h:146
double ** frc
Matrix with the components of the resultant external forces (in the body fixed frame) applied to the ...
Definition: mbs_data.h:360
double ** dQq_dqdd
The derivative matrix of the joint force vector according to the independent joint accelerations: .
Definition: mbs_data.h:219
void(* mbs_cons_jdqd_ptr)(double *Jdqd, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:113
int nqc
Number of driven articulations, it includes qlocked and qdriven.
Definition: mbs_data.h:324
void(* mbs_bind_user_model_ptr)(MbsInfos *mbs_infos, UserModel *ums)
Definition: mbs_project_fct_ptr.h:88
void(* user_invdyn_loop_ptr)(MbsData *MBSdata, MbsInvdyn *mbs_invd)
Definition: mbs_project_fct_ptr.h:33
double * dQc_dp
Derivative of Q driven w.r.t. param p, vector size of [njoint+1].
Definition: mbs_data.h:212
double ** l3DWr
Definition: mbs_data.h:422
This structures contains a reference to a dynamic library handle.
Definition: mbs_data.h:46
UserModel * user_model
Structure containing all user models.
Definition: mbs_data.h:459
user_LinkForces_dp_ptr user_LinkForces_dp
Definition: mbs_data.h:172
mbs_print_user_model_ptr mbs_print_user_model
Definition: mbs_data.h:145
double(* user_LinkForces_dp_ptr)(double Z, double d_Z, double Zd, double d_Zd, MbsData *mbs_data, double tsim, int i_link)
Definition: mbs_project_fct_ptr.h:57
mbs_accelred_ptr mbs_accelred
Definition: mbs_data.h:73
double ** dpt
Array containing the coordinate of all anchor points (3+1 lines, npt+1 columns).
Definition: mbs_data.h:311
char ** solid_names
Pointer to the list of solid constraint names.
Definition: mbs_data.h:296
void(* mbs_get_user_model_size_ptr)(int *n_usr_model)
Definition: mbs_project_fct_ptr.h:85
double ** K
Stiffness matrix of size [njoint+1, njoint+1].
Definition: mbs_data.h:202
char * mbs_name
Name of the mbs project as it is stored in the xml file.
Definition: mbs_data.h:508
double *** dSWr_link3d_dqdd
The derivative matrices of each link3d MbsData::SWr vector according to the independent joint acceler...
Definition: mbs_data.h:239
void(* user_cons_jdqd_ptr)(double *jdqd, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:42
void(* user_equil_finish_ptr)(MbsData *, MbsEquil *)
Definition: mbs_project_fct_ptr.h:37
double * q0
Array with the initial values of the generalized coordinates.
Definition: mbs_data.h:349
Definition: mbs_data.h:307
int n_solid
Number of solid constraint in the system.
Definition: mbs_data.h:373
mbs_get_user_IO_size_ptr mbs_get_user_IO_size
Get the size of the UserIO structure inside the user_IO.c file.
Definition: mbs_data.h:141
mbs_gensensor_ptr mbs_gensensor
Definition: mbs_data.h:79
int n_rod
Number of rod constraint in the system.
Definition: mbs_data.h:375
real-time structure
Definition: mbs_realtime_struct.h:133
double * dqdd_dp
derivative of joint acceleration qdd w.r.t. param p, vector size of [njoint+1].
Definition: mbs_data.h:209
user_cons_J_accelred_ptr user_cons_J_accelred
Definition: mbs_data.h:112
user_ExtForces_d_ptr user_ExtForces_dqd
Definition: mbs_data.h:180
user_Link3DForces_d_ptr user_Link3DForces_dqdd
Definition: mbs_data.h:176
MbsDataLibInfo * userfctLibHandle
Definition: mbs_data.h:63
int * qlocked
Array with the indices of locked articulations.
Definition: mbs_data.h:334
double * Qa
Array of active joint forces (in case of simulink,invdyna,equil,linearization,...)
Definition: mbs_data.h:363
void(* user_equil_loop_ptr)(MbsData *MBSdata, MbsEquil *mbs_equil)
Definition: mbs_project_fct_ptr.h:36
user_load_post_ptr user_load_post
Definition: mbs_data.h:91
int Nuser_model
Number of declared user models in MBsysPad, retrieved from the multibody file.
Definition: mbs_data.h:455
char * build_path
Path to the build folder.
Definition: mbs_data.h:506
mbs_new_user_IO_ptr mbs_new_user_IO
Initialize the UserIO structure and bind the ioInfo pointer to the allocated memory (project specific...
Definition: mbs_data.h:123
int process
Flag that indicate which module is currently running (1=partitioning, 2=equilibrium,...
Definition: mbs_data.h:491
int nbody
Number of bodies in the system.
Definition: mbs_data.h:318
Structure related to tangent matrices computations.
Definition: mbs_data.h:201
double ** l
Array containing the center of mass coordinates (in the body fixed frame, one column per body includi...
Definition: mbs_data.h:312
user_JointForces_d_ptr user_JointForces_dq
Definition: mbs_data.h:164
void(* user_dirdyn_loop_ptr)(MbsData *MBSdata, MbsDirdyn *mbs_dd)
Definition: mbs_project_fct_ptr.h:30
double t0
Initial time of the simulation [s]. For dirdyn and invdyn only. This parameter is set from dirdyn/inv...
Definition: mbs_data.h:368
double * dqd_dp
derivative of joint velocity qd w.r.t. param p, vector size of [njoint+1].
Definition: mbs_data.h:208
void(* user_dirdyn_finish_ptr)(MbsData *, MbsDirdyn *)
Definition: mbs_project_fct_ptr.h:31
char ** extforce_names
Pointer to the list of external force names.
Definition: mbs_data.h:276
user_cons_jdqd_ptr user_cons_jdqd
Definition: mbs_data.h:111
double *(* user_JointForces_d_ptr)(MbsData *mbs_data, double tsim, int index)
Definition: mbs_project_fct_ptr.h:53
user_DrivenJoints_ptr user_DrivenJoints
Definition: mbs_data.h:108
user_invdyn_init_ptr user_invdyn_init
Definition: mbs_data.h:98
double * Z
Array with the current values of the distances between of the points of a link (see: user_LinkForces(...
Definition: mbs_data.h:418
void(* mbs_invdyna_ptr)(double *Q, MbsData *s, double tsim)
Definition: mbs_project_fct_ptr.h:111
double g[3+1]
The 3 gravity components.
Definition: mbs_data.h:316
int flag_stop
stop the simulation in case of non zero value. Negative for error, positive for user_wanted behavior.
Definition: mbs_data.h:493
double * dQa_dp
[Inverse Dynamics] derivative of Q actuated w.r.t. param p, vector size of [njoint+1].
Definition: mbs_data.h:211
void(* user_equil_fxe_ptr)(MbsData *, double *f)
Definition: mbs_project_fct_ptr.h:38
user_JointForces_dp_ptr user_JointForces_dp
Definition: mbs_data.h:167
void(* user_joystick_axes_ptr)(MbsData *mbs_data, Simu_realtime *realtime, int nb_joysticks)
Definition: mbs_project_fct_ptr.h:102
void(* mbs_get_user_IO_size_ptr)(int *n_in, int *n_out, int *n_user_IO)
Definition: mbs_project_fct_ptr.h:84
MbsOutputPtr user_outputs
Structure to share outputs between different process/libraries.
Definition: mbs_data.h:516
mbs_bind_user_model_ptr mbs_bind_user_model
Definition: mbs_data.h:143
void(* mbs_gensensor_ptr)(MbsSensor *sens, MbsData *s, int isens)
Definition: mbs_project_fct_ptr.h:115
void(* mbs_get_user_model_list_ptr)(int *user_model_list)
Definition: mbs_project_fct_ptr.h:86
int * qdriven
Array with the indices of driven articulations.
Definition: mbs_data.h:336
double * lambda
Array with the values of the Lagrange Multipliers related to the constraints.
Definition: mbs_data.h:407
double * uxd
Array with the values of the time derivatives of the user variables.
Definition: mbs_data.h:475
void(* user_free_ptr)(MbsData *MBSdata)
Definition: mbs_project_fct_ptr.h:28
double * q_sin
Array with the sine values of the generalized coordinates, if rotational (if translational,...
Definition: mbs_data.h:354
double * qdd0
Array with the initial values of the generalized acceleration.
Definition: mbs_data.h:351
void(* user_equil_init_ptr)(MbsData *MBSdata, MbsEquil *mbs_equil)
Definition: mbs_project_fct_ptr.h:35
int nqa
Number of actuated articulations.
Definition: mbs_data.h:327
mbs_delete_user_IO_ptr mbs_delete_user_IO
Free the memory associated to the given UserIO structure.
Definition: mbs_data.h:131
int nqlocked
Number of locked articulations.
Definition: mbs_data.h:325
double *(* user_ExtForces_dp_ptr)(double PxF[4], double d_PxF[4], double RxF[4][4], double d_RxF[4][4], double VxF[4], double d_VxF[4], double OMxF[4], double d_OMxF[4], double AxF[4], double d_AxF[4], double OMPxF[4], double d_OMPxF[4], MbsData *s, double tsim, int i_force)
Definition: mbs_project_fct_ptr.h:73
user_ExtForces_d_ptr user_ExtForces_dqdd
Definition: mbs_data.h:181
double *(* user_Link3DForces_ptr)(double PxF[4], double RxF[4][4], double VxF[4], double OMxF[4], double AxF[4], double OMPxF[4], MbsData *s, double tsim, int ixF)
Definition: mbs_project_fct_ptr.h:45
mbs_save_user_IO_ptr mbs_save_user_IO
Save the current UserIO values into a file stream.
Definition: mbs_data.h:161
user_LinkForces_d_ptr user_LinkForces_dqd
Definition: mbs_data.h:170
double * qdd
Array with the current values of the generalized acceleration.
Definition: mbs_data.h:347
mbs_cons_jdqd_ptr mbs_cons_jdqd
Definition: mbs_data.h:77
char ** joint_names
Pointer to the list of joint names.
Definition: mbs_data.h:256
double * jdqd_user
Vector of jdqd for user constraints [nqv] (starting at 1), only used in symbolic accelred,...
Definition: mbs_data.h:409
user_LinkForces_d_ptr user_LinkForces_dqdd
Definition: mbs_data.h:171
void(* mbs_sensor_ptr)(MbsSensor *sens, MbsData *s, int isens)
Definition: mbs_project_fct_ptr.h:114
double * udd
For axelle red: array with the values of the acceleration of independent coordinate.
Definition: mbs_data.h:480
double * ux
Array with the values of the user variables.
Definition: mbs_data.h:474
mbs_invdynared_d_ptr mbs_invdynared_dq
Definition: mbs_data.h:81
void(* user_dirdyn_init_ptr)(MbsData *MBSdata, MbsDirdyn *mbs_dd)
Definition: mbs_project_fct_ptr.h:29
void(* mbs_print_user_model_ptr)(UserModel *ums, FILE *fs)
Definition: mbs_project_fct_ptr.h:90
double *(* user_ExtForces_ptr)(double PxF[4], double RxF[4][4], double VxF[4], double OMxF[4], double AxF[4], double OMPxF[4], MbsData *s, double tsim, int ixF)
Definition: mbs_project_fct_ptr.h:46
user_JointForces_ptr user_JointForces
Definition: mbs_data.h:89
int nhu
Number of independent constraints.
Definition: mbs_data.h:329
double * lrod
Array with the length of each rod.
Definition: mbs_data.h:376
int n_user_IO
Number of declared user IO in MBsysPad, retrieved from the file.
Definition: mbs_data.h:462
void(* user_load_post_ptr)(MbsData *MBSdata, MbsLoader *mbs_loader)
Definition: mbs_project_fct_ptr.h:27
user_dirdyn_finish_ptr user_dirdyn_finish
Definition: mbs_data.h:96
user_ExtForces_d_ptr user_ExtForces_dq
Definition: mbs_data.h:179