config.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. dropoff_grades:
  37. - id: accepted
  38. x_pos: 200
  39. rot_deg: -90
  40. capacity_threshold: 0.8
  41. - id: rejected
  42. x_pos: 100
  43. rot_deg: -90
  44. capacity_threshold: 0
  45. mqtt:
  46. broker: localhost # or debug
  47. port: 1883
  48. username: robot
  49. password: robot
  50. keepalive: 60
  51. grbl:
  52. port: /dev/ttyUSB0 # or debug
  53. # port: debug
  54. baudrate: 115200
  55. vision:
  56. camera_id: 0
  57. resolution: [640, 480]
  58. frame_rate: 30
  59. exposure: 0.1
  60. gain: 1.0
  61. bbox: [100, 100, 200, 200] # (x, y, width, height)
  62. vacuum:
  63. min_pressure_bar: 0.13
  64. max_pressure_bar: 0.6
  65. max_pump_time_s: 20
  66. gripping_threshold_bar: 0.6
  67. pump_watchdog_timeout_s: 30
  68. gpio:
  69. debug: false
  70. pump_pin: 17
  71. valve_pin: 27
  72. probe_pin: 22
  73. measure_dir_pin: 11
  74. measure_step_pin: 9
  75. measure_en_pin: 10
  76. dist_pos_dir_pin: 000
  77. dist_pos_step_pin: 000
  78. dist_pos_en_pin: 000
  79. dist_rot_dir_pin: 000
  80. dist_rot_step_pin: 000
  81. dist_rot_en_pin: 000
  82. i2c:
  83. debug: false
  84. movement:
  85. speed: 400.0
  86. acceleration: 20.0
  87. safe_height: 0.0
  88. logging:
  89. level: INFO
  90. file_path: logs/robot.log
  91. max_file_size_mb: 1
  92. backup_count: 3
  93. console_output: true