Robotran C Documentation
Functions
_complete_main.c File Reference
#include <stdio.h>
#include "mbs_data.h"
#include "mbs_dirdyn.h"
#include "mbs_invdyn.h"
#include "mbs_equil.h"
#include "mbs_modal.h"
#include "mbs_part.h"
#include "realtime.h"
#include "mbs_set.h"
#include "mbs_solvekin.h"
#include "mbs_loader.h"
#include "cmake_config.h"

Functions

int main (int argc, char const *argv[])
 Universite catholique de Louvain CEREM : Centre for research in mechatronics http://www.robotran.be Contact : info@.nosp@m.robo.nosp@m.tran..nosp@m.be. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Universite catholique de Louvain CEREM : Centre for research in mechatronics http://www.robotran.be Contact : info@.nosp@m.robo.nosp@m.tran..nosp@m.be.

MBsysC main script template for simple model:

This template loads the data file *.mbs and execute:

  • the coordinate partitioning module
  • the direct dynamic module (time integration of equations of motion). It may be adapted and completed by the user.

(c) Universite catholique de Louvain

To turn this file as a C++ file, just change its extension to .cc (or .cpp). If you plan to use some C++ files, it is usually better that the main is compiled as a C++ function. Currently, most compilers do not require this, but it is a safer approach to port your code to other computers.

[load]

[load] [part]

[part] [equil]

[equil] [modal]

[modal] [dirdyn]

[dirdyn] [solvekin]

[solvekin] [invdyn]

[invdyn]