trick/trick_sims/SIM_singlerigidbody/S_define
bnwalla1 7bc6ab74a8
added SIM_singlerigidbody (#1762)
* added SIM_singlerigidbody

* Removed a few sections in the README file

* Removed the sims directory

* Added shutdown job and made minor changes to body.cpp

---------

Co-authored-by: Wallace <bnwalla1@scooby.trick.gov>
2024-10-16 14:37:48 -05:00

33 lines
859 B
Plaintext

/************************TRICK HEADER*************************
PURPOSE:
( Single body rigid dynamics simulation )
LIBRARY DEPENDENCIES:
((src/body.cpp)
(src/body_shutdown.cpp)
)
*************************************************************/
#define TRICK_NO_MONTE_CARLO
#define TRICK_NO_MASTERSLAVE
#define TRICK_NO_INSTRUMENTATION
#define TRICK_NO_REALTIMEINJECTOR
#define TRICK_NO_ZEROCONF
#include "sim_objects/default_trick_sys.sm"
##include "include/body.hh"
class BodySimObject : public Trick::SimObject {
public:
BODY body;
BodySimObject() {
("default_data") body.default_data() ;
("initialization") body.init() ;
("derivative") body.derivative() ;
("integration") trick_ret = body.integ() ;
("shutdown") body.body_shutdown();
}
};
BodySimObject dyn;
IntegLoop dyn_integloop(0.01) dyn;