Ego.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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) override;
  15. void OnNotifyImu(int32_t x, int32_t y) override;
  16. void OnNotifyPing(int32_t value) override;
  17. void OnNotifyKickOff() override;
  18. //#ifdef LIDAR_SENSOR
  19. // void OnLidarData(bool isLeft, bool isDense, int32_t seq, PointXYZI *data,
  20. // int32_t length) override;
  21. //#endif
  22. signals:
  23. void egoLoginResult(bool rst);
  24. void egoCarAppend(const UserCamera &info);
  25. void egoRadar(int32_t r0, int32_t r1, int32_t r2, int32_t r3, int32_t r4,
  26. int32_t r5);
  27. void egoImu(int32_t x, int32_t y);
  28. void egoPing(int32_t value);
  29. void egoNotifyDel();
  30. void egoKickoff();
  31. };
  32. #endif