OriginTraj.h 562 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _OriginTraj_H
  2. #define _OriginTraj_H
  3. #include "pub.h"
  4. class OriginTraj {
  5. public:
  6. OriginTraj();
  7. void Process(int* right_pos, int* right_att, int right_zupt, int* left_pos, int* left_att, int left_zupt );
  8. float getGamePos(int left_or_right, int index);
  9. private:
  10. int start_traj = 0;
  11. int left_zupt_count = 0;
  12. int right_zupt_count = 0;
  13. float left_cur_pos[3];
  14. float right_cur_pos[3];
  15. float start_left_pos[3];
  16. float start_right_pos[3];
  17. float leftRotate[4] = { 1.0, 0.0, 0.0, 1.0 };
  18. float rightRotate[4] = { 1.0, 0.0, 0.0, 1.0 };
  19. };
  20. #endif