Robotran C Documentation
user_IO.h
Go to the documentation of this file.
1 /*===========================================================================*
2  *
3  * user_sf_IO.h
4  *
5  * Project: PendulumSpringC
6  *
7  * Generation date: 14-Nov-2014 18:28:15
8  *
9  * (c) Universite catholique de Louvain
10  *
11  * http://www.robotran.be//
12  *
13  /*===========================================================================*/
14 
15 #ifndef UsersfIO_h
16 #define UsersfIO_h
17 /*--------------------*/
18 
19 
20 #define SF_N_USER_INPUT 0
21 #define SF_N_USER_OUTPUT 0
22 
23 #include "mbs_user_interface.h"
24 
25 struct UserIO
26 {
27  double Fspring; // empty variable for making the compiler happy! (should be improved)
28 
29 };
30 
31 
32 
33 /*--------------------*/
34 #endif
mbs_new_dirdyn
MbsDirdyn * mbs_new_dirdyn(MbsData *mbs_data)
Create a new direct dynamic structure.
Definition: mbs_dirdyn.c:33
MbsSolvekin::options
MbsInvOptions * options
Structure defining the option of a inverse kinematic analysis.
Definition: mbs_solvekin_struct.h:153
UserIO::Fspring
double Fspring
Definition: user_IO.h:27
user_cons_J_accelred
int user_cons_J_accelred(MbsData *s, double tsim)
[Accelred only] Compute the Jac_user matrix nqv x Njoint matrix (starting at one) for custom user con...
Definition: user_cons_J_accelred.c:16
MbsData::xfidpt
int * xfidpt
Array of the points defined as force application points.
Definition: mbs_data.h:264
MbsInvdyn
General structure of the inverse dynamics module.
Definition: mbs_invdyn_struct.h:27
mbs_extforces
void mbs_extforces(double **frc, double **trq, MbsData *s, double tsim)
Definition: mbs_extforces_void.c:15
mbs_dirdyn.h
UserIoInfo
Contains information about UserIO.
Definition: mbs_user_interface.h:44
mbs_delete_data
void mbs_delete_data(MbsData *s)
Free the memory used by the given MbsData structure.
Definition: mbs_loader.c:985
user_dirdyn_finish
void user_dirdyn_finish(MbsData *mbs_data, MbsDirdyn *mbs_dd)
user own finishing functions
Definition: user_dirdyn.c:59
mbs_error_msg
void mbs_error_msg(char *msg,...)
Send an error message.
Definition: mbs_message.c:102
mbs_delete_modal
void mbs_delete_modal(MbsModal *mo, MbsData *s)
Free the MbsModal structure (pointers table, ...)
Definition: mbs_modal.c:663
MbsModalOptions::mode_ampl
double mode_ampl
amplification factor for the animation of the modes, application dependent [default = 0....
Definition: mbs_modal_struct.h:21
mbs_delete_invdyn
void mbs_delete_invdyn(MbsInvdyn *invdyn, MbsData *mbs_data)
Free memory of the inverse dynamic structure The options (MbsInvOptions) and MbsAux structures are al...
Definition: mbs_invdyn.c:84
mbs_data.h
MbsModalOptions::save_result
int save_result
no = 0, yes = 1, flag to save the modal results summary [default = 1]
Definition: mbs_modal_struct.h:18
user_invdyn_init
void user_invdyn_init(MbsData *mbs_data, MbsInvdyn *mbs_invdyn)
Definition: user_invdyn.c:16
_MBS_ERR_MOD_LOAD
#define _MBS_ERR_MOD_LOAD
Module error number module: Loading = -900.
Definition: mbs_errors_names.h:73
mbs_dirdyn_struct.h
mbs_run_dirdyn
int mbs_run_dirdyn(MbsDirdyn *dd, MbsData *mbs_data)
Run the direct dynamic simulation.
Definition: mbs_dirdyn.c:203
mbs_accelred
int mbs_accelred(MbsData *s, double tsim)
Definition: mbs_accelred_void.c:15
_MBS_ERR_LOW_FILES
#define _MBS_ERR_LOW_FILES
Low Level error number Error during opening/writing files = -9.
Definition: mbs_errors_names.h:147
MbsEquilOptions::verbose
int verbose
no = 0, yes = 1, extra outputs = 2 [default = 1]
Definition: mbs_equil_struct.h:16
mbs_project_interface.h
MbsInvOptions::trajectoryqddname
char * trajectoryqddname
Give the path and filename (with extention) to the file containing the input trajectory in accelerati...
Definition: mbs_solvekin_struct.h:73
MbsEquilOptions::method
int method
fsolvepk = 1, other method to be added. [default = 1]
Definition: mbs_equil_struct.h:14
mbs_modal.h
mbs_new_user_IO
UserIO * mbs_new_user_IO(UserIoInfo *ioInfo)
Initialize the UserIO structure and bind the ioInfo pointer to the allocated memory (project specific...
Definition: user_IO.c:20
MbsPart::options
MbsPartOptions * options
Structure containing the options for coordinate partitioning module.
Definition: mbs_part.h:36
mbs_invdyn.h
MbsSolvekin
General structure of the inverse kinematics module.
Definition: mbs_solvekin_struct.h:149
mbs_run_part
int mbs_run_part(MbsPart *mbs_part, MbsData *mbs_data)
Main function of the coordinate partitioning module.
Definition: mbs_part.c:494
UserIO
Definition: user_IO.h:25
MbsInvOptions::dt
double dt
Time step, default = 0.001.
Definition: mbs_solvekin_struct.h:86
MbsModalOptions::verbose
int verbose
no = 0, yes = 1, [default = 1]
Definition: mbs_modal_struct.h:20
MbsData::jac_user
double ** jac_user
Jacobian of constraints [nqv x njoint] (starting at 1), only used in symbolic accelred,...
Definition: mbs_data.h:229
user_invdyn_loop
void user_invdyn_loop(MbsData *mbs_data, MbsInvdyn *mbs_invdyn)
Definition: user_invdyn.c:21
mbs_delete_dirdyn
void mbs_delete_dirdyn(MbsDirdyn *dirdyn, MbsData *mbs_data)
Free memory of the direct dynamic structure The options (MbsDirdynOptions) and MbsAux structures are ...
Definition: mbs_dirdyn.c:188
MbsModal::options
MbsModalOptions * options
Definition: mbs_modal_struct.h:79
user_Derivative
void user_Derivative(MbsData *mbs_data)
Definition: user_Derivative.c:15
MbsInvOptions::motion
int motion
Determines how the evolution of q, qd qdd are provided.
Definition: mbs_solvekin_struct.h:40
MbsInvOptions::framerate
int framerate
Number of frame per second for the .anim file, default = 1000.
Definition: mbs_solvekin_struct.h:113
MbsData::SWr
double ** SWr
Array of Swr vector for each external forces.
Definition: mbs_data.h:265
MbsDirdynOptions::save2file
int save2file
Determine whether results are written to files on disk (in resultsR folder): 1: results are saved 0: ...
Definition: mbs_dirdyn_struct.h:51
mbs_link3D
void mbs_link3D(double **frc, double **trq, MbsData *s, double tsim)
Definition: mbs_link3D_void.c:18
MbsInvOptions::t0
double t0
Initial time of the simulation, default = 0.0.
Definition: mbs_solvekin_struct.h:76
MbsDirdynOptions::dt0
double dt0
initial value of the integration step size, default = 0.001
Definition: mbs_dirdyn_struct.h:45
MbsEquil::options
MbsEquilOptions * options
structure defining the option of a equilibrium
Definition: mbs_equil_struct.h:70
mbs_dirdyna
void mbs_dirdyna(double **M, double *c, MbsData *s, double tsim)
Definition: mbs_dirdyna_void.c:15
mbs_sensor_struct.h
MbsEquil
Definition: mbs_equil_struct.h:68
user_dirdyn_loop
void user_dirdyn_loop(MbsData *mbs_data, MbsDirdyn *mbs_dd)
user own loop functions
Definition: user_dirdyn.c:46
user_cons_jdqd
void user_cons_jdqd(double *jdqd, MbsData *mbs_data, double tsim)
Definition: user_cons_jdqd.c:15
MbsPart
Main structure for the coordinate partitioning module.
Definition: mbs_part.h:34
mbs_solvekin.h
MbsInvOptions::trajectoryqname
char * trajectoryqname
Give the path and filename (with extention) to the file containing the input trajectory in position o...
Definition: mbs_solvekin_struct.h:51
mbs_msg
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
user_equil_finish
void user_equil_finish(MbsData *mbs_data, MbsEquil *mbs_equil)
user own finishing functions
Definition: user_equil.c:53
mbs_new_invdyn
MbsInvdyn * mbs_new_invdyn(MbsData *mbs_data)
Create a new inverse dynamic structure.
Definition: mbs_invdyn.c:28
mbs_delete_user_IO
void mbs_delete_user_IO(UserIO *uvs)
Free the memory associated to the given UserIO structure.
Definition: user_IO.c:30
user_equil_loop
void user_equil_loop(MbsData *mbs_data, MbsEquil *mbs_equil)
user own loop functions
Definition: user_equil.c:40
mbs_gensensor
void mbs_gensensor(MbsSensor *sens, MbsData *s, int isens)
Definition: mbs_gensensor_void.c:17
MbsDirdynOptions::tf
double tf
final time of the simulation, default = 5.0
Definition: mbs_dirdyn_struct.h:43
MbsModal
Definition: mbs_modal_struct.h:77
MbsModalOptions::save_anim
int save_anim
no = 0, yes = 1, flag to save and generate the animation for the modes [default = 0]
Definition: mbs_modal_struct.h:19
mbs_invdyna
void mbs_invdyna(double *Qq, MbsData *s, double tsim)
Definition: mbs_invdyna_void.c:16
mbs_equil.h
mbs_delete_equil
void mbs_delete_equil(MbsEquil *eq, MbsData *s)
Free the Equilibrium structure (pointers table, Equibrium options, ...)
Definition: mbs_equil.c:146
mbs_equil_struct.h
mbs_set.h
mbs_new_modal
MbsModal * mbs_new_modal(MbsData *s)
Create a new modal structure.
Definition: mbs_modal.c:28
trajectory
@ trajectory
Definition: mbs_solvekin_struct.h:25
main
int main(int argc, char const *argv[])
Universite catholique de Louvain CEREM : Centre for research in mechatronics http://www....
Definition: _complete_main.c:37
MbsPartOptions::verbose
int verbose
1 to get print indications related partitioning module; 0 otherwise, defaut = 1
Definition: mbs_part.h:19
MbsInvOptions::trajectoryqdname
char * trajectoryqdname
Give the path and filename (with extention) to the file containing the input trajectory in velocity o...
Definition: mbs_solvekin_struct.h:62
mbs_cons_hJ
void mbs_cons_hJ(double *h, double **Jac, MbsData *s, double tsim)
Definition: mbs_cons_hJ_void.c:15
user_cons_hJ
void user_cons_hJ(double *h, double **Jac, MbsData *mbs_data, double tsim)
Definition: user_cons_hJ.c:15
MbsInvOptions::tf
double tf
Final time of the simulation, default = 5.0.
Definition: mbs_solvekin_struct.h:79
mbs_new_equil
MbsEquil * mbs_new_equil(MbsData *s)
Allocate the memory for the Equilibrium Options (but not for all the Equilibrium structure) Initializ...
Definition: mbs_equil.c:34
mbs_message.h
MbsData::dpt
double ** dpt
Array containing the coordinate of all anchor points (3+1 lines, npt+1 columns).
Definition: mbs_data.h:153
mbs_loader.h
mbs_cons_jdqd
void mbs_cons_jdqd(double *Jdqd, MbsData *s, double tsim)
Definition: mbs_cons_jdqd_void.c:15
user_invdyn_finish
void user_invdyn_finish(MbsData *mbs_data, MbsInvdyn *mbs_invdyn)
Definition: user_invdyn.c:27
MbsData
Definition: mbs_data.h:149
realtime.h
Real-time constraints main header.
mbs_new_part
MbsPart * mbs_new_part(MbsData *mbs_data)
Allocate a new MbsPart structure for the given MbsData structure.
Definition: mbs_part.c:787
main
int main(int argc, char const *argv[])
Universite catholique de Louvain CEREM : Centre for research in mechatronics http://www....
Definition: _simple_main.c:33
oneshot
@ oneshot
Definition: mbs_solvekin_struct.h:25
mbs_run_solvekin
int mbs_run_solvekin(MbsSolvekin *sk, MbsData *mbs_data)
Run the inverse kinematic analysis.
Definition: mbs_solvekin.c:101
MbsInvdyn::options
MbsInvOptions * options
Structure defining the options of a inverse dynamics analysis.
Definition: mbs_invdyn_struct.h:31
MbsData::process
int process
Flag that indicate which module is currently running (1=partitioning, 2=equilibrium,...
Definition: mbs_data.h:297
mbs_delete_part
void mbs_delete_part(MbsPart *mbs_part)
Free the memory of the given MbsPart structure.
Definition: mbs_part.c:812
MbsSensor
Definition: mbs_sensor_struct.h:18
MbsEquilOptions::senstol
double senstol
tolerance for testing a variable non-sensitivity [default = 1e-6]
Definition: mbs_equil_struct.h:39
mbs_run_modal
int mbs_run_modal(MbsModal *mo, MbsData *s)
Run the Modal Analysis.
Definition: mbs_modal.c:109
mbs_run_equil
int mbs_run_equil(MbsEquil *eq, MbsData *s)
Run the Equilibrium process.
Definition: mbs_equil.c:214
user_equil_init
void user_equil_init(MbsData *mbs_data, MbsEquil *mbs_equil)
user own initialization functions
Definition: user_equil.c:27
mbs_user_interface.h
MbsPartOptions::rowperm
int rowperm
1 to allow line permutation; 0 otherwise, defaut = 0
Definition: mbs_part.h:15
MbsDirdyn
General structure of the direct dynamic module.
Definition: mbs_dirdyn_struct.h:144
mbs_new_solvekin
MbsSolvekin * mbs_new_solvekin(MbsData *mbs_data)
Create a new inverse kinematic structure.
Definition: mbs_solvekin.c:29
user_equil_fxe
void user_equil_fxe(MbsData *mbs_data, double *f)
user own implementation of added equilibrium equations Fxe Necessary to express equilibrium f(x)=0
Definition: user_equil.c:65
user_ExtForces
double * user_ExtForces(double PxF[4], double RxF[4][4], double VxF[4], double OMxF[4], double AxF[4], double OMPxF[4], MbsData *mbs_data, double tsim, int ixF)
Compute an user-specified external force.
Definition: user_ExtForces.c:15
mbs_load
MbsData * mbs_load(const char *mbs_filename, const char *build_path)
Load the data from the given *.mbs file (data in the xml format).
Definition: mbs_loader.c:36
mbs_delete_solvekin
void mbs_delete_solvekin(MbsSolvekin *solvekin, MbsData *mbs_data)
Free memory of the inverse kinematic structure The options (MbsInvOptions) and MbsAux structures are ...
Definition: mbs_solvekin.c:85
MbsDirdyn::options
MbsDirdynOptions * options
structure defining the option of a direct dynamic
Definition: mbs_dirdyn_struct.h:146
user_dirdyn_init
void user_dirdyn_init(MbsData *mbs_data, MbsDirdyn *mbs_dd)
user own initialization functions
Definition: user_dirdyn.c:28
mbs_invdyn_struct.h
mbs_part.h
user_IO.h
mbs_run_invdyn
int mbs_run_invdyn(MbsInvdyn *invd, MbsData *mbs_data)
Run the inverse kinematic analysis.
Definition: mbs_invdyn.c:100
user_DrivenJoints
void user_DrivenJoints(MbsData *mbs_data, double tsim)
Compute the positions, velocities and acceleration of driven joint.
Definition: user_DrivenJoints.c:15
mbs_errors_names.h
mbs_get_user_IO_size
void mbs_get_user_IO_size(int *n_in, int *n_out, int *n_user_IO)
Get the size of the UserIO structure inside the user_IO.c file.
Definition: user_IO.c:36
mbs_sensor
void mbs_sensor(MbsSensor *sens, MbsData *s, int isens)
Compute all fields of a sensor (force sensor or classic sensor).
Definition: mbs_sensor_void.c:16