Kongfu.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #include "PublicSDKMotion.h"
  2. #include "pub.h"
  3. class Kongfu : public PublicSDKMotion
  4. {
  5. public:
  6. Kongfu();
  7. virtual void Process(int time_stamp, int* right_pos, int* right_att, int* right_acc, int right_zupt, int right_front_press, int right_back_press,
  8. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  9. int jump, int down, int rssi);
  10. private:
  11. deque<shoes_data_cell> left_shoes_data_vector;
  12. deque<shoes_data_cell> right_shoes_data_vector;
  13. vector<float> left_acc_x_buff;
  14. vector<float> right_acc_x_buff;
  15. int left_kick;
  16. int last_left_kick;
  17. int left_kick_wait;
  18. int right_kick;
  19. int last_right_kick;
  20. int right_kick_wait;
  21. int CANCLE_FLOOR_CMD_LEFT;
  22. int CANCLE_FLOOR_CMD_RIGHT;
  23. int last_left_zupt;
  24. int last_right_zupt;
  25. int last_jump;
  26. int last_down;
  27. int CANCLE_DOWN;
  28. int CANCLE_JUMP;
  29. int valid_down_wait_time;
  30. int valid_jump_wait_time;
  31. int cmd_jump_wait_time;
  32. const int CMD_JUMP_WAIT_TIME = 5;
  33. const int WAIT_TIME = 10;
  34. deque<int> left_acc_deque;
  35. deque<int> right_acc_deque;
  36. int wait_down = 0;
  37. };