Ego.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef EGOD_H
  2. #define EGOD_H
  3. #include "EgoInterface.h"
  4. #include <QObject>
  5. #include <QtGui>
  6. Q_DECLARE_METATYPE(UserCamera);
  7. /*
  8. 从EgoDll中接收信息类
  9. */
  10. class CEgoNotify : public QObject, public IEgoNotify {
  11. Q_OBJECT
  12. public:
  13. void OnRobot(std::unique_ptr<UserCamera> &info) override;
  14. void OnSigin(bool bRet) override;
  15. void OnNotifyDel(int32_t peer) override;
  16. void OnNotifyRadar(int32_t r0, int32_t r1, int32_t r2, int32_t r3, int32_t r4,
  17. int32_t r5,int32_t r6,int32_t r7, int32_t r8) override;
  18. // void OnNotifyIMU() override;
  19. void OnNotifyPing(int32_t value,double temp) override;
  20. void OnNotifyKickOff() override;
  21. virtual void OnNotifyMoveEnd(int32_t rid, WorkArea area, int32_t no) override;
  22. virtual void OnNotifyLeave(int32_t peer);
  23. // void OnEmergency(bool enable, bool motor, bool gear, bool turnl, bool turnR) override;
  24. // void OnAccel(int16_t accel, bool onoff) override;
  25. // void OnSteer(uint64_t steer) override;
  26. // void OnArm(int16_t flip, int16_t armL, int16_t armR, bool onoff) override;
  27. void OnNotifyFeed(const FeedData& data) override;
  28. // void OnLidarData(bool isLeft, bool isDense, int32_t seq, PointXYZI* data, int32_t length) override;
  29. // virtual void OpenFullView(const char*) override;
  30. // virtual void CloseFullView() override;
  31. virtual void OnNotifyVideoFail(int32_t uid) override;
  32. virtual void OnNotifyState(int32_t uid, UserState state) override;
  33. virtual void OnNDTPos(Position* pos) override;
  34. virtual void OnNotifyMoveRet(MoveDesc desc) override;
  35. virtual void OnNotifyEncode(int32_t left, int32_t right) override;
  36. signals:
  37. void egoLoginResult(bool rst);
  38. void egoCarAppend(const UserCamera &info);
  39. void egoRadar(int32_t r0, int32_t r1, int32_t r2, int32_t r3, int32_t r4,
  40. int32_t r5,int32_t r6,int32_t r7,int32_t r8);
  41. void egoEncode(int32_t left, int32_t right);
  42. void egoFeedData(const FeedData& data);
  43. void egoPing(int32_t value, double temp);
  44. void egoNotifyDel(int32_t peer);
  45. void egoKickoff();
  46. void egoMoveEnd(int32_t peer, WorkArea area, int32_t no);
  47. void egoNotifyLeave(int32_t peer);
  48. void egoNotifyFail(int32_t uid);
  49. void egoNotifyState(int32_t uid, UserState);
  50. void egoMoveRet(MoveDesc desc);
  51. void egoPosition(float x, float y, float z);
  52. private:
  53. // std::vector<UserCamera> _users;
  54. };
  55. #endif