50 int main(
int argc,
char** argv)
52 std::cout <<
"AppFlemonsSpineContact" << std::endl;
57 btVector3 eulerAngles = btVector3(0.0, 0.0, 0.0);
58 btScalar friction = 0.5;
59 btScalar restitution = 0.0;
60 btVector3 size = btVector3(500.0, 0.5, 500.0);
61 btVector3 origin = btVector3(0.0, 0.0, 0.0);
65 double triangleSize = 5.0;
66 double waveHeight = 3.0;
69 size, origin, nx, ny, margin, triangleSize,
80 const double stepSize = 1.0/1000.0;
81 const double renderRate = 1.0/60.0;
82 tgSimView view(world, stepSize, renderRate);
89 const int segments = 6;
94 const std::string suffix((argc > 1) ? argv[1] :
"default");
96 const int segmentSpan = 3;
97 const int numMuscles = 8;
98 const int numParams = 2;
99 const int segNumber = 0;
100 const double controlTime = .01;
101 const double lowPhase = -1 * M_PI;
102 const double highPhase = M_PI;
103 const double lowAmplitude = 0.0;
104 const double highAmplitude = 300.0;
105 const double kt = 0.0;
106 const double kp = 1000.0;
107 const double kv = 200.0;
108 const bool def =
true;
111 const double cl = 10.0;
112 const double lf = 0.0;
113 const double hf = 30.0;
116 const double ffMin = -0.5;
117 const double ffMax = 10.0;
118 const double afMin = 0.0;
119 const double afMax = 200.0;
120 const double pfMin = -0.5;
121 const double pfMax = 6.28;
149 myModel->
attach(myControl);
158 simulation.
run(30000);
162 catch (std::runtime_error e)
A controller for the template class BaseSpineModelLearning.
Contains the definition of class tgHillyGround.
void addModel(tgModel *pModel)
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
Contains the definition of class tgSimViewGraphics.
Contains the definition of class tgWorld $Id$.
Contains the definition of class tgSimView.
void attach(tgObserver< T > *pObserver)