19 #ifndef BASE_QUAD_MODEL_LEARNING_H
20 #define BASE_QUAD_MODEL_LEARNING_H
54 typedef std::map<std::string, std::vector<tgSpringCableActuator*> > MuscleMap;
62 virtual void step(
double dt);
64 virtual std::vector<double> getCOM(
const int n);
66 virtual std::vector<double> getSegmentCOM(
const int n);
68 virtual btVector3 getSegmentCOMVector(
const int n);
70 virtual const std::vector<tgSpringCableActuator*>& getMuscles(
const std::string& key)
const;
72 virtual const std::vector<tgSpringCableActuator*>& getAllMuscles()
const;
74 virtual const std::vector<tgBaseRigid*> getAllRigids()
const;
76 virtual const int getSegments()
const;
78 virtual std::size_t getNumberofMuslces()
const
80 return m_allMuscles.size();
83 double getSpineLength();
89 std::vector<tgSpringCableActuator*> m_allMuscles;
91 std::vector<tgModel*> m_allSegments;
93 MuscleMap m_muscleMap;
95 std::size_t m_subStructures;
97 const std::size_t m_segments;
99 const std::size_t m_hips;
101 std::vector<double> segmentMasses;
104 #endif // BASE_QUAD_MODEL_H
virtual void setup(tgWorld &world)
Definition of tgSubject class.
virtual void step(double dt)
Contains the definition of class tgModel.