config.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. measurement_devices:
  2. - id: device_1
  3. position: [375.5, 898, 107]
  4. slots:
  5. - position: [10, 0, 0]
  6. occupied: False
  7. slot_id: 0
  8. - position: [31, 0, 0]
  9. occupied: False
  10. slot_id: 1
  11. - position: [52, 0, 0]
  12. occupied: False
  13. slot_id: 2
  14. - position: [75, 0, 0]
  15. occupied: False
  16. slot_id: 3
  17. - position: [98, 0, 0]
  18. occupied: False
  19. slot_id: 4
  20. - position: [120, 0, 0]
  21. occupied: False
  22. slot_id: 5
  23. - position: [142, 0, 0]
  24. occupied: False
  25. slot_id: 6
  26. - position: [165, 0, 0]
  27. occupied: False
  28. slot_id: 7
  29. feeder:
  30. position: [27.5, 621.5, 47.5]
  31. min_voltage: 2.0
  32. max_capacity: 10
  33. defeeder:
  34. position: [167.5, 630, 40]
  35. max_capacity: 10
  36. feeder_magazines:
  37. - x_pos: 100
  38. rot_deg: 90
  39. capacity: 70
  40. - x_pos: 200
  41. rot_deg: 90
  42. capacity: 70
  43. - x_pos: 300
  44. rot_deg: 90
  45. capacity: 70
  46. defeeder_magazines:
  47. - x_pos: 200
  48. rot_deg: -90
  49. capacity: 70
  50. health_threshold: 0.8
  51. name: accepted
  52. - x_pos: 100
  53. rot_deg: -90
  54. capacity: 70
  55. health_threshold: 0
  56. name: rejected
  57. mqtt:
  58. broker: localhost # or debug
  59. port: 1883
  60. username: robot
  61. password: robot
  62. keepalive: 60
  63. grbl:
  64. port: /dev/ttyUSB0 # or debug
  65. # port: debug
  66. baudrate: 115200
  67. vision:
  68. camera_id: 0
  69. resolution: [640, 480]
  70. frame_rate: 30
  71. exposure: 0.1
  72. gain: 1.0
  73. bbox: [100, 100, 200, 200] # (x, y, width, height)
  74. vacuum:
  75. min_pressure_bar: 0.13
  76. max_pressure_bar: 0.6
  77. max_pump_time_s: 20
  78. gripping_threshold_bar: 0.6
  79. pump_watchdog_timeout_s: 30
  80. gpio:
  81. debug: false
  82. pump_pin: 17
  83. valve_pin: 27
  84. probe_pin: 22
  85. measure_dir_pin: 11
  86. measure_step_pin: 9
  87. measure_en_pin: 10
  88. dist_pos_dir_pin: 000
  89. dist_pos_step_pin: 000
  90. dist_pos_en_pin: 000
  91. dist_rot_dir_pin: 000
  92. dist_rot_step_pin: 000
  93. dist_rot_en_pin: 000
  94. i2c:
  95. debug: false
  96. movement:
  97. speed: 400.0
  98. acceleration: 20.0
  99. safe_height: 0.0
  100. logging:
  101. level: INFO
  102. file_path: logs/robot.log
  103. max_file_size_mb: 1
  104. backup_count: 3
  105. console_output: true