48 #include "LinearMath/btVector3.h"
66 const double density = 4.2/300.0;
67 const double radius = 0.5;
68 const double rod_space = 10.0;
69 const double friction = 0.5;
70 const double rollFriction = 0.0;
71 const double restitution = 0.0;
72 const tgRod::Config rodConfig(radius, density, friction, rollFriction, restitution);
74 const double radius2 = 0.15;
75 const double density2 = 1;
78 const double stiffness = 1000.0;
79 const double damping = .01*stiffness;
80 const double pretension = 0.0;
85 const double passivePretension = 700;
122 spec.addBuilder(
"rod",
new tgRodInfo(rodConfig));
133 allActuators = tgCast::filter<tgModel, tgSpringCableActuator> (
getDescendants());
148 throw std::invalid_argument(
"dt is not positive");
virtual void setup(tgWorld &world)
Definition of class tgRodInfo.
Convenience function for combining strings with ints, mostly for naming structures.
virtual void step(double dt)
Definition of class tgBasicActuatorInfo.
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
void addPair(int fromNodeIdx, int toNodeIdx, std::string tags="")
Contains the definition of class tgSimViewGraphics.
Contains the definition of abstract base class tgSpringCableActuator. Assumes that the string is line...
Contains the definition of class tgBasicActuator.
Contains the definition of class tgWorld $Id$.
Definition of class tgStructure.
Definition of class tgStructureInfo.
Contains the definition of class tgSimView.
Contains the definition of class tgRod.
Definition of class tgBuildSpec.
void notifyStep(double dt)
std::vector< tgModel * > getDescendants() const
void buildInto(tgModel &model, tgWorld &world)
void addNode(double x, double y, double z, std::string tags="")