47 int main(
int argc,
char** argv)
49 std::cout <<
"AppNestedStructureTest" << std::endl;
56 const double stepSize = 1.0/1000.0;
57 const double renderRate = 1.0/60.0;
58 tgSimView view(world, stepSize, renderRate);
65 const int segments = 3;
70 const std::string suffix((argc > 1) ? argv[1] :
"default");
72 const int segmentSpan = 3;
73 const int numMuscles = 4;
74 const int numParams = 2;
75 const int segNumber = 1;
77 const double controlTime = 0.1;
78 const double lowPhase = -1 * M_PI;
79 const double highPhase = M_PI;
80 const double lowAmplitude = 0.0;
81 const double highAmplitude = 30.0;
83 const double tension = 0.0;
84 const double kPosition = 400.0;
85 const double kVelocity = 40.0;
88 lowAmplitude, highAmplitude, lowPhase, highPhase,
89 tension, kPosition, kVelocity);
92 myModel->
attach(myControl);
97 myControl->
attach(myLogger);
99 simulation.addModel(myModel);
106 simulation.run(60000);
110 catch (std::runtime_error e)
A controller for the template class BaseSpineModelLearning.
Implementing the cross-linked octahedral complex spine inspired by Tom Flemons.
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.
int main(int argc, char **argv)
Contains the definition of interface class tgCPGLogger.
void attach(tgObserver< T > *pObserver)