config.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. measurement_devices:
  2. - id: device_1
  3. position: [1, 802, 70]
  4. slots:
  5. - position: [0, 0, 0]
  6. occupied: False
  7. slot_id: 0
  8. - position: [21, 0, 0]
  9. occupied: False
  10. slot_id: 1
  11. - position: [42, 0, 0]
  12. occupied: False
  13. slot_id: 2
  14. - position: [65, 0, 0]
  15. occupied: False
  16. slot_id: 3
  17. - position: [88, 0, 0]
  18. occupied: False
  19. slot_id: 4
  20. - position: [110, 0, 0]
  21. occupied: False
  22. slot_id: 5
  23. - position: [132, 0, 0]
  24. occupied: False
  25. slot_id: 6
  26. - position: [155, 0, 0]
  27. occupied: False
  28. slot_id: 7
  29. feeder:
  30. robot_pos: [13, 714, 45]
  31. mag_pos:
  32. pos_mm: 0
  33. rot_deg: 0
  34. min_voltage: 2.0
  35. max_num_cells: 10
  36. defeeder:
  37. robot_pos: [40, 530, 68]
  38. mag_pos:
  39. pos_mm: 0
  40. rot_deg: -90
  41. max_num_cells: 10
  42. feeder_magazines:
  43. - mag_pos:
  44. pos_mm: 100
  45. rot_deg: 90
  46. max_num_cells: 70
  47. - mag_pos:
  48. pos_mm: 200
  49. rot_deg: 90
  50. max_num_cells: 70
  51. - mag_pos:
  52. pos_mm: 300
  53. rot_deg: 90
  54. max_num_cells: 70
  55. # Order of magazines is implying the priority
  56. defeeder_magazines:
  57. - mag_pos:
  58. pos_mm: 100
  59. rot_deg: -90
  60. max_num_cells: 70
  61. health_range: [60, 100]
  62. name: accept
  63. - mag_pos:
  64. pos_mm: 200
  65. rot_deg: -90
  66. max_num_cells: 70
  67. health_range: [0, 60]
  68. name: reject
  69. - mag_pos:
  70. pos_mm: 300
  71. rot_deg: -90
  72. max_num_cells: 70
  73. health_range: [0, 100]
  74. name: error
  75. mag_distributor:
  76. debug: True
  77. max_speed_mmmin: 10000
  78. home_speed_mmmin: 2000
  79. length_mm: 500
  80. mqtt:
  81. broker: localhost # or debug
  82. port: 1883
  83. username: robot
  84. password: robot
  85. keepalive: 60
  86. grbl:
  87. port: /dev/ttyUSB0 # or debug
  88. # port: debug
  89. baudrate: 115200
  90. vision:
  91. camera_id: 0
  92. resolution: [640, 480]
  93. frame_rate: 30
  94. exposure: 0.1
  95. gain: 1.0
  96. bbox: [290, 260, 240, 170] # (x, y, width, height)
  97. vacuum:
  98. min_pressure_bar: 0.13
  99. max_pressure_bar: 0.4
  100. max_pump_time_s: 20
  101. gripping_threshold_bar: 0.6
  102. pump_watchdog_timeout_s: 30
  103. gpio:
  104. debug: false
  105. pump_pin: 17
  106. valve_pin: 27
  107. probe_pin: 22
  108. measure_dir_pin: 11
  109. measure_step_pin: 9
  110. measure_en_pin: 10
  111. mag_dist_pos_dir_pin: -1
  112. mag_dist_pos_step_pin: -1
  113. mag_dist_pos_en_pin: -1
  114. mag_dist_pos_limit_pin: -1
  115. mag_dist_rot_pin: -1
  116. mag_dist_sensor_pin: -1
  117. i2c:
  118. debug: false
  119. movement:
  120. speed_mmmin: 15000
  121. safe_height: 0.0
  122. logging:
  123. level: INFO
  124. file_path: logs/robot.log
  125. max_file_size_mb: 1
  126. backup_count: 3
  127. console_output: true