base.py 647 B

12345678910111213141516171819202122232425262728293031323334353637
  1. '''
  2. @Author : liujunshen
  3. @Ide : vscode
  4. @File : base.py
  5. @Time : 2023/03/28 16:47:23
  6. '''
  7. from abc import ABC, abstractmethod
  8. class PeripheralHandBase(ABC):
  9. """机械手外设抽象类"""
  10. @abstractmethod
  11. def init(self):
  12. """初始化"""
  13. pass
  14. @abstractmethod
  15. def start(self):
  16. """设备操作启动"""
  17. pass
  18. @abstractmethod
  19. def stop(self):
  20. """设备操作立即停止"""
  21. pass
  22. @abstractmethod
  23. def status(self):
  24. """返回设备状态"""
  25. pass
  26. @abstractmethod
  27. def close(self):
  28. """关闭设备连接"""
  29. pass