mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 15:26:41 +00:00
Split test sims and fun sims into separate directories.
I created an ODE directory and moved the ODE sims into it. I moved the Ball++ models into SIM_Ball++_L1 and flattened the directory structure. refs #191
This commit is contained in:
parent
bf80dcc03f
commit
5a7cd1839b
@ -10,8 +10,8 @@ LIBRARY DEPENDENCIES:
|
|||||||
|
|
||||||
#include "sim_objects/default_trick_sys.sm"
|
#include "sim_objects/default_trick_sys.sm"
|
||||||
|
|
||||||
##include "ODE/Ball/Ball.hh"
|
##include "Ball/Ball.hh"
|
||||||
##include "ODE/DrawStuff/DrawStuff.hh"
|
##include "DrawStuff/DrawStuff.hh"
|
||||||
|
|
||||||
%{
|
%{
|
||||||
const double OdeBallSimObject::time_step = 0.01 ;
|
const double OdeBallSimObject::time_step = 0.01 ;
|
@ -5,7 +5,7 @@ TRICK_ICG_EXCLUDE = ${ODE_HOME}
|
|||||||
TRICK_ICG_NOCOMMENT = ${ODE_HOME}
|
TRICK_ICG_NOCOMMENT = ${ODE_HOME}
|
||||||
TRICK_SWIG_EXCLUDE = ${ODE_HOME}
|
TRICK_SWIG_EXCLUDE = ${ODE_HOME}
|
||||||
|
|
||||||
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models -I${ODE_HOME}/include -I${ODE_HOME}
|
TRICK_CFLAGS += -I./models -I../models -I${ODE_HOME}/include -I${ODE_HOME}
|
||||||
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models -I${ODE_HOME}/include -I${ODE_HOME}
|
TRICK_CXXFLAGS += -I./models -I../models -I${ODE_HOME}/include -I${ODE_HOME}
|
||||||
|
|
||||||
TRICK_EXEC_LINK_LIBS += -L${ODE_HOME}/drawstuff/src/.libs -ldrawstuff -L${ODE_HOME}/ode/src/.libs -lode -lGLU -lGL -L/usr/X11R6/lib -lXext -lX11
|
TRICK_EXEC_LINK_LIBS += -L${ODE_HOME}/drawstuff/src/.libs -ldrawstuff -L${ODE_HOME}/ode/src/.libs -lode -lGLU -lGL -L/usr/X11R6/lib -lXext -lX11
|
@ -11,7 +11,7 @@ LIBRARY DEPENDENCY:
|
|||||||
|
|
||||||
#include <ode/common.h>
|
#include <ode/common.h>
|
||||||
#include <ode/src/objects.h>
|
#include <ode/src/objects.h>
|
||||||
#include "ODE/DrawStuff/DrawStuffObject.hh"
|
#include "DrawStuff/DrawStuffObject.hh"
|
||||||
|
|
||||||
class Ball : public DrawStuffObject {
|
class Ball : public DrawStuffObject {
|
||||||
public:
|
public:
|
@ -10,8 +10,8 @@ LIBRARY DEPENDENCIES:
|
|||||||
|
|
||||||
#include "sim_objects/default_trick_sys.sm"
|
#include "sim_objects/default_trick_sys.sm"
|
||||||
|
|
||||||
##include "ODE/Buggy/Buggy.hh"
|
##include "Buggy/Buggy.hh"
|
||||||
##include "ODE/DrawStuff/DrawStuff.hh"
|
##include "DrawStuff/DrawStuff.hh"
|
||||||
|
|
||||||
%{
|
%{
|
||||||
const double BuggySimObject::time_step = 0.05 ;
|
const double BuggySimObject::time_step = 0.05 ;
|
@ -5,7 +5,7 @@ TRICK_ICG_EXCLUDE = ${ODE_HOME}
|
|||||||
TRICK_ICG_NOCOMMENT = ${ODE_HOME}
|
TRICK_ICG_NOCOMMENT = ${ODE_HOME}
|
||||||
TRICK_SWIG_EXCLUDE = ${ODE_HOME}
|
TRICK_SWIG_EXCLUDE = ${ODE_HOME}
|
||||||
|
|
||||||
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models -I${ODE_HOME}/include -I${ODE_HOME}
|
TRICK_CFLAGS += -I./models -I../models -I${ODE_HOME}/include -I${ODE_HOME}
|
||||||
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models -I${ODE_HOME}/include -I${ODE_HOME}
|
TRICK_CXXFLAGS += -I./models -I../models -I${ODE_HOME}/include -I${ODE_HOME}
|
||||||
|
|
||||||
TRICK_EXEC_LINK_LIBS += -L${ODE_HOME}/drawstuff/src/.libs -ldrawstuff -L${ODE_HOME}/ode/src/.libs -lode -lGLU -lGL -L/usr/X11R6/lib -lXext -lX11
|
TRICK_EXEC_LINK_LIBS += -L${ODE_HOME}/drawstuff/src/.libs -ldrawstuff -L${ODE_HOME}/ode/src/.libs -lode -lGLU -lGL -L/usr/X11R6/lib -lXext -lX11
|
@ -11,7 +11,7 @@ LIBRARY DEPENDENCY:
|
|||||||
|
|
||||||
#include <ode/common.h>
|
#include <ode/common.h>
|
||||||
#include <ode/src/objects.h>
|
#include <ode/src/objects.h>
|
||||||
#include "ODE/DrawStuff/DrawStuffObject.hh"
|
#include "DrawStuff/DrawStuffObject.hh"
|
||||||
|
|
||||||
#if SWIG
|
#if SWIG
|
||||||
%apply float { dReal }
|
%apply float { dReal }
|
@ -9,7 +9,7 @@ LIBRARY DEPENDENCIES:
|
|||||||
#define TRICK_JSON_VARIABLE_SERVER
|
#define TRICK_JSON_VARIABLE_SERVER
|
||||||
#include "sim_objects/default_trick_sys.sm"
|
#include "sim_objects/default_trick_sys.sm"
|
||||||
|
|
||||||
##include "Ball++/L1/include/Ball.hh"
|
##include "Ball.hh"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This class is the base ball class
|
This class is the base ball class
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
# Uncomment this to compile the simulation without a python input processor.
|
# Uncomment this to compile the simulation without a python input processor.
|
||||||
#TRICK_CPFLAGS = --no_python
|
#TRICK_CPFLAGS = --no_python
|
||||||
|
|
||||||
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models
|
TRICK_CFLAGS += -I./models
|
||||||
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models
|
TRICK_CXXFLAGS += -I./models
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ PROGRAMMERS:
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
|
|
||||||
// Default consructor.
|
// Default consructor.
|
||||||
Ball::Ball() /* RETURN: -- None. */
|
Ball::Ball() /* RETURN: -- None. */
|
@ -15,13 +15,13 @@ ASSUMPTIONS AND LIMITATIONS:
|
|||||||
((2 dimensional space)
|
((2 dimensional space)
|
||||||
(Translational EOM only))
|
(Translational EOM only))
|
||||||
LIBRARY DEPENDENCY:
|
LIBRARY DEPENDENCY:
|
||||||
((../src/Ball.cpp)
|
((Ball.cpp)
|
||||||
(../src/BallStateDeriv.cpp)
|
(BallStateDeriv.cpp)
|
||||||
(../src/BallStateInit.cpp)
|
(BallStateInit.cpp)
|
||||||
(../src/BallStateInteg.cpp)
|
(BallStateInteg.cpp)
|
||||||
(../src/BallStatePrint.cpp)
|
(BallStatePrint.cpp)
|
||||||
(../src/BallForceField.cpp)
|
(BallForceField.cpp)
|
||||||
(../src/BallShutdown.cpp))
|
(BallShutdown.cpp))
|
||||||
PROGRAMMERS:
|
PROGRAMMERS:
|
||||||
(((Robert W. Bailey) (Sweet Systems Inc) (March 1997) (Tutorial Lesson 1))
|
(((Robert W. Bailey) (Sweet Systems Inc) (March 1997) (Tutorial Lesson 1))
|
||||||
((Edwin Z. Crues)(Titan Systems Corp.)(Jan 2002)(Crude C++ translation)))
|
((Edwin Z. Crues)(Titan Systems Corp.)(Jan 2002)(Crude C++ translation)))
|
||||||
@ -43,7 +43,7 @@ PROGRAMMERS:
|
|||||||
@brief ball in C++
|
@brief ball in C++
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sim_services/include/mm_macros.hh"
|
#include "trick/mm_macros.hh"
|
||||||
|
|
||||||
class Ball {
|
class Ball {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
#include "Ball++/L1/include/BallForce.hh"
|
#include "BallForce.hh"
|
||||||
|
|
||||||
BallForceInput::BallForceInput() {
|
BallForceInput::BallForceInput() {
|
||||||
|
|
@ -27,7 +27,7 @@ PROGRAMMERS:
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int Ball::force_field() /* RETURN: -- Always return zero. */
|
int Ball::force_field() /* RETURN: -- Always return zero. */
|
@ -28,7 +28,7 @@ PROGRAMMERS:
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/BallForce.hh"
|
#include "BallForce.hh"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int BallForce::default_data() {
|
int BallForce::default_data() {
|
@ -22,10 +22,10 @@ PROGRAMMERS:
|
|||||||
((Edwin Z. Crues)(Titan Systems Corp.)(Jan 2002)(Crude C++ translation)))
|
((Edwin Z. Crues)(Titan Systems Corp.)(Jan 2002)(Crude C++ translation)))
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "sim_services/UnitTest/include/trick_tests.h"
|
#include "trick/trick_tests.h"
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int Ball::shutdown() {
|
int Ball::shutdown() {
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "Ball++/L1/include/BallState.hh"
|
#include "BallState.hh"
|
||||||
#include "trick_utils/units/include/constant.h"
|
#include "trick/constant.h"
|
||||||
#include "sim_services/MemoryManager/include/memorymanager_c_intf.h"
|
#include "trick/memorymanager_c_intf.h"
|
||||||
|
|
||||||
BallStateInput::BallStateInput() {
|
BallStateInput::BallStateInput() {
|
||||||
|
|
@ -28,10 +28,10 @@ PROGRAMMERS:
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
/* Trick include files. */
|
/* Trick include files. */
|
||||||
#include "sim_services/include/collect_macros.h"
|
#include "trick/collect_macros.h"
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int Ball::state_deriv() /* RETURN: -- Always return zero. */
|
int Ball::state_deriv() /* RETURN: -- Always return zero. */
|
@ -26,7 +26,7 @@ PROGRAMMERS:
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int Ball::state_init() /* RETURN: -- Always return zero. */
|
int Ball::state_init() /* RETURN: -- Always return zero. */
|
@ -27,8 +27,8 @@ PROGRAMMERS:
|
|||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "sim_services/Integrator/include/integrator_c_intf.h"
|
#include "trick/integrator_c_intf.h"
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
@ -28,10 +28,10 @@ PROGRAMMERS:
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "../include/Ball.hh"
|
#include "Ball.hh"
|
||||||
#include "sim_services/Executive/include/exec_proto.hh"
|
#include "trick/exec_proto.hh"
|
||||||
#include "sim_services/Executive/include/exec_proto.h"
|
#include "trick/exec_proto.h"
|
||||||
#include "sim_services/Message/include/message_proto.h"
|
#include "trick/message_proto.h"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int Ball::state_print() {
|
int Ball::state_print() {
|
@ -27,9 +27,9 @@ PROGRAMMERS:
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* Model include files. */
|
/* Model include files. */
|
||||||
#include "trick_utils/units/include/constant.h"
|
#include "BallState.hh"
|
||||||
#include "../include/BallState.hh"
|
#include "trick/constant.h"
|
||||||
#include "sim_services/MemoryManager/include/memorymanager_c_intf.h"
|
#include "trick/memorymanager_c_intf.h"
|
||||||
|
|
||||||
/* ENTRY POINT */
|
/* ENTRY POINT */
|
||||||
int BallState::default_data() {
|
int BallState::default_data() {
|
Loading…
Reference in New Issue
Block a user