38 #include "LinearMath/btVector3.h"
78 double targetVelocity;
115 void RPModel::setup(
tgWorld& world)
118 allAbstractMarkers=tgCast::filter<tgModel, abstractMarker> (getDescendants());
122 void RPModel::step(
double dt)
127 throw std::invalid_argument(
"dt is not positive");
135 for(
int k=1;k<36;k++){
136 std::cout << allActuators[k]->getTension() <<
" ";
138 std::cout << std::endl;
148 const std::vector<tgBasicActuator*>& RPModel::getAllActuators()
const
154 const std::vector<tgRod*>& RPModel::getAllRods()
const
159 const std::vector<tgBaseRigid*>& RPModel::getAllBaseRigids()
const
161 return allBaseRigids;
164 const std::vector<abstractMarker*>& RPModel::getAllAbstractMarkers()
const
166 return allAbstractMarkers;
169 void RPModel::teardown()
Definition of class tgRodInfo.
virtual void step(double dt)
Definition of class tgBasicActuatorInfo.
virtual void onVisit(const tgModelVisitor &r) const
Contains the definition of class tgBasicActuator.
Definition of class tgStructure.
Definition of class tgStructureInfo.
Contains the definition of class tgRod.
Definition of class tgBuildSpec.