![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Diff: Motions.h
- Revision:
- 12:6cd135bf03bd
- Child:
- 13:711f74b2fa33
diff -r 1539d181e159 -r 6cd135bf03bd Motions.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Motions.h Sun Feb 03 04:53:44 2013 +0000 @@ -0,0 +1,37 @@ +#ifndef MOTIONS_H_2013_02_02_ +#define MOTIONS_H_2013_02_02_ + +#include "mbed.h" +#include "Motion.h" +#include "SCI.h" +#include <string> + +class Motions +{ + public: + Motions(uint16_t* data); + ~Motions(); + + public: + void control(); + + private: + void read(const string& filename, uint16_t* data); + void set(uint16_t* data); + void setmotion(const int& id); + void play(); + + private: + uint16_t*** motions; + int motion_size; + int* pose_size; + int servo_size; + + private: + Motion* inter; + bool playing; + SCI* comu; + //LocalFileSystem* local; +}; + +#endif \ No newline at end of file