28 #include "Escape_T6Controller.h"
40 #include "LinearMath/btVector3.h"
59 int main(
int argc,
char** argv)
61 std::cout <<
"AppEscape_T6" << std::endl;
77 double initialLength = 9.0;
85 btVector3 originCrater = btVector3(0,0,0);
99 const double yaw = 0.0;
100 const double pitch = 0.0;
101 const double roll = 0.0;
102 const btVector3 eulerAngles = btVector3(yaw, pitch, roll);
103 const double friction = 0.5;
104 const double restitution = 0.0;
105 const btVector3 size = btVector3(10000.0, 2, 10000.0);
106 const btVector3 origin = btVector3(0.0, 0.0, 0.0);
119 return new tgWorld(config, ground);
124 const double timestep_physics = 1.0 / 60.0 / 10.0;
125 const double timestep_graphics = 1.f /60.f;
131 const double timestep_physics = 1.0 / 60.0 / 10.0;
132 const double timestep_graphics = 1.f /60.f;
133 return new tgSimView(*world, timestep_physics, timestep_graphics);
140 for (
int i=0; i<nEpisodes; i++) {
141 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...