Ego.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef EGOD_H
  2. #define EGOD_H
  3. #include "../common/comm.h"
  4. #include "remote_notify.h"
  5. #include <QObject>
  6. #include <QtGui>
  7. Q_DECLARE_METATYPE(UserDriver);
  8. class CEgoNotify : public QObject, public IMonitroNotify {
  9. Q_OBJECT
  10. public:
  11. void OnRobot(std::unique_ptr<UserDriver> &info) override;
  12. void OnLogin(bool bRet) override;
  13. void OnNotifyDel(int32_t peer) override;
  14. virtual void OnNotifyLeave(int32_t peer);
  15. // void OnEmergency(bool enable, bool motor, bool gear, bool turnl, bool turnR) override;
  16. // void OnAccel(int16_t accel, bool onoff) override;
  17. // void OnSteer(uint64_t steer) override;
  18. // void OnArm(int16_t flip, int16_t armL, int16_t armR, bool onoff) override;
  19. // void OnLidarData(bool isLeft, bool isDense, int32_t seq, PointXYZI* data, int32_t length) override;
  20. // virtual void OpenFullView(const char*) override;
  21. // virtual void CloseFullView() override;
  22. virtual void OnNotifyVideoFail(int32_t uid) override;
  23. virtual void OnNotifyState(int32_t uid, UserState state) override;
  24. signals:
  25. void egoLoginResult(bool rst);
  26. void egoCarAppend(const UserDriver&info);
  27. void egoNotifyDel(int32_t peer);
  28. void egoKickoff();
  29. void egoNotifyLeave(int32_t peer);
  30. void egoNotifyFail(int32_t uid);
  31. void egoNotifyState(int32_t uid, UserState);
  32. private:
  33. // std::vector<UserCamera> _users;
  34. };
  35. #endif