Ego.h 2.2 KB

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