FingerGuessing.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #include "PublicSDKMotion.h"
  2. #define RSSI_LEN 5
  3. class FingerGuessing : public PublicSDKMotion
  4. {
  5. public:
  6. FingerGuessing();
  7. void ProcessResult(float* global_pos, deque<shoes_data_cell>& step_data_vector,
  8. deque<globalPos_struct>& global_pos_vector, int LEFT_OR_RIGHT);
  9. int ProcessDualStepVector(deque<shoes_data_cell>& left_cmd_step_data_vector, deque<shoes_data_cell> &right_cmd_step_data_vector,
  10. float* left_cmd_global_pos, float* right_cmd_global_pos , int rssi);
  11. 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,
  12. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_front_press, int left_back_press,
  13. int jump, int down, int rssi);
  14. private:
  15. deque<shoes_data_cell> left_shoes_data_vector;
  16. deque<shoes_data_cell> right_shoes_data_vector;
  17. deque<globalPos_struct> right_global_pos_vector;
  18. deque<globalPos_struct> left_global_pos_vector;
  19. float left_cmd_global_pos[3];
  20. float right_cmd_global_pos[3];
  21. deque<shoes_data_cell> left_step_data_vector;
  22. deque<shoes_data_cell> right_step_data_vector;
  23. deque<shoes_data_cell> left_cmd_step_data_vector;
  24. deque<shoes_data_cell> right_cmd_step_data_vector;
  25. float left_step_pos[3];
  26. float right_step_pos[3];
  27. float left_heading;
  28. float right_heading;
  29. int left_foot_has_init;
  30. int right_foot_has_init;
  31. int left_zupt_count;
  32. int right_zupt_count;
  33. int right_cmd_wait_time;
  34. int left_cmd_wait_time;
  35. int left_init;
  36. int right_init;
  37. const int rssi_threshold = 25;
  38. };