radar_ip.h 634 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "../common/comm.h"
  3. #include "../common/notifier.h"
  4. #include "../common/iobuffer.h"
  5. #include "../common/sensor_socket.h"
  6. #include <thread>
  7. class CMessageQueue;
  8. class CRadarSensor//:public ISensorNotify
  9. {
  10. public:
  11. CRadarSensor(CMessageQueue *q);
  12. void Notify(int8_t * buffer,int32_t size);
  13. void SetSensorSocket(SensorSocket<CRadarSensor>* can);
  14. void Start();
  15. void Stop();
  16. // void PreProcess();
  17. private:
  18. void Run();
  19. private:
  20. CMessageQueue* _message;
  21. SensorSocket<CRadarSensor> * _socket;
  22. bool _run;
  23. int32_t _count = 0;
  24. struct RadarData _data;
  25. };