carrier_base.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // Created by huli on 2020/7/20.
  3. //
  4. #ifndef NNXX_TESTS_CARRIER_BASE_H
  5. #define NNXX_TESTS_CARRIER_BASE_H
  6. #include "../error_code/error_code.h"
  7. #include <glog/logging.h>
  8. //搬运器的基类, AGV和抓取机器人从他继承
  9. class Carrier_base
  10. {
  11. public:
  12. //搬运器状态, 楚天项目就是AGV系统
  13. enum Carrier_status
  14. {
  15. E_CARRIER_UNKNOW = 0, //未知
  16. E_CARRIER_READY = 1, //准备,待机
  17. E_CARRIER_STORE = 2, //正在存车
  18. E_CARRIER_PICKUP = 3, //正在取车
  19. E_CARRIER_FAULT = 10, //故障
  20. };
  21. public:
  22. Carrier_base();
  23. Carrier_base(const Carrier_base& other)= default;
  24. Carrier_base& operator =(const Carrier_base& other)= default;
  25. ~Carrier_base();
  26. public://API functions
  27. //搬运器 初始化
  28. virtual Error_manager carrier_base_init();
  29. //搬运器 反初始化
  30. virtual Error_manager carrier_base_uninit();
  31. public://get or set member variable
  32. Carrier_status get_carrier_status();
  33. protected://member variable
  34. enum Carrier_status m_carrier_status; //搬运器状态,
  35. private:
  36. };
  37. #endif //NNXX_TESTS_CARRIER_BASE_H