RunGame.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include "PublicSDKMotion.h"
  2. class RunGame : public PublicSDKMotion {
  3. public:
  4. RunGame();
  5. void setStepHeading(float& cur_heading, float heading);
  6. 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,
  7. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  8. int jump, int down, int rssi);
  9. int rssiFeature(deque<shoes_data_cell>& shoes_data_vector);
  10. int getResultJump(int jump);
  11. int getResultDown(int down);
  12. private:
  13. deque<int> rssi_delay;
  14. deque<int> left_roll_vec;
  15. deque<int> right_roll_vec;
  16. int last_left_cmd = -1;
  17. int last_right_cmd = -1;
  18. deque<shoes_data_cell> left_shoes_data_vector;
  19. deque<shoes_data_cell> right_shoes_data_vector;
  20. float left_step_heading;
  21. float right_step_heading;
  22. deque<shoes_data_cell> left_step_data_vector;
  23. deque<shoes_data_cell> right_step_data_vector;
  24. float left_step_pos[3];
  25. float right_step_pos[3];
  26. int jump_count;
  27. int down_count;
  28. int last_down;
  29. int last_canva_down;
  30. int last_jump;
  31. int down_wait_after_jump;
  32. float left_heading;
  33. float right_heading;
  34. int left_zupt_count;
  35. int right_zupt_count;
  36. int last_left_zupt;
  37. int last_right_zupt;
  38. //仿造踢馆大师,特殊处理蹲看看效果
  39. deque<int> left_acc_deque;
  40. deque<int> right_acc_deque;
  41. int wait_down = 0;
  42. };