19 #ifndef CONNECTOR_TEST_MODEL_H
20 #define CONNECTOR_TEST_MODEL_H
28 #include "btBulletDynamicsCommon.h"
59 const double density = 0.9;
60 const double radius = 0.3;
63 double stiffness = 100000;
64 double dampening = stiffness * 0.001;
88 structure.
addPair(2, 6,
"muscle");
89 structure.
addPair(3, 7,
"muscle");
90 structure.
addPair(2, 7,
"muscle");
91 structure.
addPair(3, 6,
"muscle");
94 spec.addBuilder(
"rod",
new tgRodInfo(rodConfig));
117 std::cout <<
"StructureInfo:" << std::endl;
118 std::cout << structureInfo << std::endl;
145 void changeMuscle (
double length)
Definition of class tgRodInfo.
Definition of tgSubject class.
virtual void step(double dt)
Definition of class tgBasicActuatorInfo.
virtual void onVisit(const tgModelVisitor &r) const
Contains the definition of class tgModel.
void addPair(int fromNodeIdx, int toNodeIdx, std::string tags="")
Contains the definition of interface class tgModelVisitor.
Contains the definition of class tgBasicActuator.
Definition of class tgStructure.
Definition of class tgStructureInfo.
virtual void setup(tgWorld &world)
virtual void step(double dt)
Definition of class tgBuildSpec.
Definition of class tgRigidAutoCompound.
void notifyStep(double dt)
void buildInto(tgModel &model, tgWorld &world)
void addNode(double x, double y, double z, std::string tags="")