device_base.hpp 598 B

12345678910111213141516171819202122232425
  1. #ifndef DATACLOUD_DEVICE_BASE_H_
  2. #define DATACLOUD_DEVICE_BASE_H_
  3. #include <iostream>
  4. #include "error_code/error_code.h"
  5. #include "tool/proto_tool.h"
  6. #include "tool/binary_buf.h"
  7. #include "tool/thread_safe_queue.h"
  8. #include "tool/thread_condition.h"
  9. const std::string config_path = "../../../seeting/";
  10. class LidarDevice {
  11. public:
  12. std::string config_path = "../../../seeting/";
  13. public:
  14. virtual Error_manager init() = 0;
  15. virtual Error_manager uninit() = 0;
  16. virtual Error_manager setConfigFile(std::string path) = 0;
  17. protected:
  18. LidarDevice() {};
  19. ~LidarDevice() {};
  20. };
  21. #endif