19 #ifndef SUPERBALL_MODEL_H
20 #define SUPERBALL_MODEL_H
34 #include "heightSensor.h"
82 virtual void step(
double dt);
116 btVector3 getCenter();
119 btDynamicsWorld *getWorld();
122 void fillNodeNumberingSchema(
int a,
int b,
int c);
125 void fillNodeMappingFromBasePoints(
int a,
int b,
int c);
128 void fillMusclesPerNode();
130 const std::vector<std::vector<tgBasicActuator*> >& getMusclesPerNodes()
const {
131 return musclesPerNodes;
135 int getOtherEndOfTheRod(
int i);
140 int nodeMappingReverse[13];
142 int muscleConnections[13][13];
144 std::vector<std::vector <tgBasicActuator *> > musclesPerNodes;
189 void moveModel(btVector3 targetPositionVector,btVector3 rotationVector,btVector3 speedVector);
195 std::vector<tgBasicActuator*> allMuscles;
196 std::vector<std::vector<std::vector<int> > > nodeNumberingSchema;
197 std::vector<btVector3> nodePositions;
198 std::vector<heightSensor> heightSensors;
203 #endif // SUPERBALL_MODEL_H
std::vector< double > getSensorInfo()
std::vector< btVector3 > getSensorOrientations()
Definition of tgSubject class.
const std::vector< tgBasicActuator * > & getAllMuscles() const
Contains the definition of class tgModel.
virtual void step(double dt)
virtual ~SuperBallModel()
virtual void setup(tgWorld &world)
std::vector< btVector3 > getSensorPositions()
virtual void onVisit(tgModelVisitor &r)
Contains the definition of class tgRod.
SuperBallModel(tgWorld &world)