19 #ifndef BASE_SPINE_MODEL_LEARNING_H
20 #define BASE_SPINE_MODEL_LEARNING_H
53 typedef std::map<std::string, std::vector<tgSpringCableActuator*> > MuscleMap;
61 virtual void step(
double dt);
63 virtual std::vector<double> getSegmentCOM(
const int n)
const;
65 virtual btVector3 getSegmentCOMVector(
const int n)
const;
67 virtual const std::vector<tgSpringCableActuator*>& getMuscles(
const std::string& key)
const;
69 virtual const std::vector<tgSpringCableActuator*>& getAllMuscles()
const;
71 virtual const std::vector<tgBaseRigid*> getAllRigids()
const;
73 virtual const int getSegments()
const;
75 virtual std::size_t getNumberofMuslces()
const
77 return m_allMuscles.size();
80 double getSpineLength()
const;
86 std::vector<tgSpringCableActuator*> m_allMuscles;
88 std::vector<tgModel*> m_allSegments;
90 MuscleMap m_muscleMap;
92 const std::size_t m_segments;
95 #endif // BASE_SPINE_MODEL_H
Definition of tgSubject class.
virtual void setup(tgWorld &world)
Contains the definition of class tgModel.
virtual void step(double dt)