28 #include "Escape_T6Controller.h"
40 #include "LinearMath/btVector3.h"
59 int main(
int argc,
char** argv)
61 std::cout <<
"AppEscape_T6" << std::endl;
80 const std::string suffix((argc > 1) ? argv[1] :
"default");
83 double initialLength = 9.0;
94 btVector3 originCrater = btVector3(0,0,0);
108 const double yaw = 0.0;
109 const double pitch = 0.0;
110 const double roll = 0.0;
111 const btVector3 eulerAngles = btVector3(yaw, pitch, roll);
112 const double friction = 0.5;
113 const double restitution = 0.0;
114 const btVector3 size = btVector3(10000.0, 2, 10000.0);
115 const btVector3 origin = btVector3(0.0, 0.0, 0.0);
128 return new tgWorld(config, ground);
133 const double timestep_physics = 1.0 / 60.0 / 10.0;
134 const double timestep_graphics = 1.f /60.f;
140 const double timestep_physics = 1.0 / 60.0 / 10.0;
141 const double timestep_graphics = 1.f /60.f;
142 return new tgSimView(*world, timestep_physics, timestep_graphics);
149 for (
int i=0; i<nEpisodes; i++) {
150 simulation->
run(nSteps);
int main(int argc, char **argv)
Contains the definition of class Escape_T6Model. $Id$.
tgSimViewGraphics * createGraphicsView(tgWorld *world)
void addModel(tgModel *pModel)
tgSimView * createView(tgWorld *world)
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
Contains the definition of class tgSimViewGraphics.
Contains the definition of class Crater. Specifically, a crater is defined as a series of boxes which...
Contains the definition of class tgWorld $Id$.
void simulate(tgSimulation *simulation)
Contains the definition of class tgBoxGround.
void attach(tgObserver< T > *pObserver)
Contains the definition of class CraterDeep. Specifically, this crater is defined as a series of boxe...