Interaction.h 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include "InertialTrajProcess.h"
  2. #include "SingleFootAction.h"
  3. #define STOP_ANGLE -0.9f
  4. class Interaction {
  5. public:
  6. Interaction();
  7. void Process(int* right_pos, int* right_att, int right_zupt, int right_press,
  8. int* left_pos, int* left_att, int left_zupt, int left_press, int jump, int down, int rssi);
  9. int get_motion_state();
  10. private:
  11. InertialTrajProcess rotateTrajLeft;
  12. InertialTrajProcess rotateTrajRight;
  13. int same_zupt_count;
  14. int canEnter;
  15. int stopGame;
  16. int motion_state;
  17. int can_report_motion_state;
  18. int left_stop_signal_count;
  19. int right_stop_signal_count;
  20. int left_last_pos[3];
  21. int right_last_pos[3];
  22. int left_last_pos_tmp[3];
  23. int right_last_pos_tmp[3];
  24. int left_zupt_last;
  25. int right_zupt_last;
  26. SingleFootAction leftFootAction = NULL;
  27. SingleFootAction rightFootAction = NULL;
  28. int time_interval;
  29. };