40 #include "LinearMath/btVector3.h"
59 int main(
int argc,
char** argv)
61 std::cout <<
"AppEscapeCrater" << std::endl;
77 const std::string suffix((argc > 1) ? argv[1] :
"default");
82 double initialLength = 9.0;
93 btVector3 originCrater = btVector3(0,0,0);
107 const double yaw = 0.0;
108 const double pitch = 0.0;
109 const double roll = 0.0;
110 const btVector3 eulerAngles = btVector3(yaw, pitch, roll);
111 const double friction = 0.5;
112 const double restitution = 0.0;
113 const btVector3 size = btVector3(10000.0, 2, 10000.0);
114 const btVector3 origin = btVector3(0.0, 0.0, 0.0);
127 return new tgWorld(config, ground);
132 const double timestep_physics = 1.0 / 60.0 / 10.0;
133 const double timestep_graphics = 1.f /60.f;
139 const double timestep_physics = 1.0 / 60.0 / 10.0;
140 const double timestep_graphics = 1.f /60.f;
141 return new tgSimView(*world, timestep_physics, timestep_graphics);
148 for (
int i=0; i<nEpisodes; i++) {
149 simulation->
run(nSteps);
Contains the definition of class EscapeModel. $Id$.
Contains the definition of class tgCraterShallow. Specifically, a crater is defined as a series of bo...
Contains the definition of class tgCraterDeep. Specifically, this crater is defined as a series of bo...
void addModel(tgModel *pModel)
int main(int argc, char **argv)
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
Contains the definition of class tgSimViewGraphics.
tgSimView * createView(tgWorld *world)
Contains the definition of class tgWorld $Id$.
tgSimViewGraphics * createGraphicsView(tgWorld *world)
Contains the definition of class tgBoxGround.
void simulate(tgSimulation *simulation)
Contains the definition of class EscapeController.
void attach(tgObserver< T > *pObserver)