custom_define.py 705 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import enum
  2. class ActType(enum.IntEnum):
  3. eReady = 0
  4. eRotation = 1
  5. eHorizon = 2
  6. eVertical = 3
  7. eMPC = 4
  8. eClampClose = 5
  9. eClampOpen = 6
  10. eLifterRise = 7
  11. eLifterDown = 8
  12. class ManualOperationType(enum.IntEnum):
  13. eReady = 0x0000
  14. eCounterclockwiseRotate = 0x0001
  15. eClockwiseRotate = 0x0002
  16. eForwardMove = 0x0010
  17. eBackwardMove = 0x0020
  18. eLeftMove = 0x0040
  19. eRightMove = 0x0080
  20. eClampClose = 0x0100
  21. eClampOpen = 0x0200
  22. eLifterRise = 0x0400
  23. eLifterDown = 0x0800
  24. class RobotName:
  25. strAGVMain = "AgvMain"
  26. strAGV2 = "AGV2"
  27. class ControllerStatus(enum.IntEnum):
  28. eReady = 0
  29. eStop = 1
  30. eCancel = 2
  31. eRunning = 3