|
| tgRod (btRigidBody *pRigidBody, const tgTags &tags, const double length) |
|
virtual | ~tgRod () |
|
virtual void | teardown () |
|
virtual void | onVisit (const tgModelVisitor &v) const |
|
double | length () const |
|
virtual double | mass () const |
|
virtual btVector3 | centerOfMass () const |
|
virtual btRigidBody * | getPRigidBody () |
|
virtual btVector3 | orientation () const |
|
virtual void | setup (tgWorld &world) |
|
virtual void | step (double dt) |
|
void | addChild (tgModel *pChild) |
|
virtual std::string | toString (std::string prefix="") const |
|
template<typename T > |
std::vector< T * > | find (const tgTagSearch &tagSearch) |
|
template<typename T > |
std::vector< T * > | find (const std::string &tagSearch) |
|
std::vector< tgModel * > | getDescendants () const |
|
const std::vector
< abstractMarker > & | getMarkers () const |
|
void | addMarker (abstractMarker a) |
|
void | addTags (const std::string &space_separated_tags) |
|
void | addTags (const tgTags &tags) |
|
bool | hasTag (const std::string tag) const |
|
bool | hasAllTags (std::string tags) |
|
bool | hasAnyTags (const std::string tags) |
|
bool | hasNoTags () |
|
tgTags & | getTags () |
|
const tgTags & | getTags () const |
|
void | setTags (tgTags tags) |
|
std::string | getTagStr (std::string delim=" ") const |
|
A rod is a rigid body. Length is defined by nodes, radius and density are defined by config.
Definition at line 43 of file tgRod.h.
void tgModel::setup |
( |
tgWorld & |
world | ) |
|
|
virtualinherited |
Setup takes a tgWorld and passes it to any children for their own setup functions. All subclasses should call this at the appropriate time (usually end of setup) within their own setup function.
- Parameters
-
[in] | world | - the tgWorld the models will exist in. |
Reimplemented in tgSpringCableActuator, tgKinematicActuator, DuCTTTestModel, NestedBoxTestModel, NestedStructureTestModel, VerticalSpineModel, tgPrismatic, T6Model, tgCraterDeep, Wall, pidTestRig, CraterDeep, PrismModel, MuscleNPCons, tgCraterShallow, SuperBallModel, tsTestRig, Crater, PrismModel, T6Model, T12SuperBallPayload, CaterpillarModel, T6SphereModel, T6Model, T6Model, Escape_T6Model, EscapeModel, SingleRibModel, SingleRibModel, T6Model, hillyMuscleNP, simpleMuscleNP, Hilbert2DModel, tgBasicActuator, ContactTestModel, RBStringTest, TetraSpineStaticModel_hf, BaseSpineModelLearning, StructureTestModel, TetraSpineCollisions, TetraSpineStaticModel, ConnectorTestModel, TetraSpineLearningModel, BuildTestModel, FlemonsSpineModelContact, FlemonsSpineModelLearningCL, FlemonsSpineModelLearning, and RibModel.
Definition at line 57 of file tgModel.cpp.
void tgModel::step |
( |
double |
dt | ) |
|
|
virtualinherited |
Advance the simulation.
- Parameters
-
[in] | dt | the number of seconds since the previous call; std::invalid_argument is thrown if dt is not positive |
- Exceptions
-
std::invalid_argument | if dt is not positive |
- Note
- This is not necessarily const for every child.
Reimplemented in tgSpringCableActuator, NestedStructureTestModel, ConnectorTestModel, BuildTestModel, ContactTestModel, tgKinematicActuator, StructureTestModel, DuCTTTestModel, T6Model, pidTestRig, PrismModel, NestedBoxTestModel, NestedStructureTestModel, SuperBallModel, tsTestRig, PrismModel, MuscleNPCons, T6Model, T12SuperBallPayload, CaterpillarModel, T6SphereModel, T6Model, T6Model, VerticalSpineModel, Escape_T6Model, EscapeModel, T6Model, tgCraterDeep, tgBasicActuator, Wall, CraterDeep, tgPrismatic, hillyMuscleNP, simpleMuscleNP, tgCraterShallow, Crater, RBStringTest, TetraSpineStaticModel_hf, BaseSpineModelLearning, TetraSpineCollisions, TetraSpineStaticModel, TetraSpineLearningModel, FlemonsSpineModelContact, FlemonsSpineModelLearningCL, FlemonsSpineModelLearning, and RibModel.
Definition at line 84 of file tgModel.cpp.