griip-sdk-dev 0.6.0.dev26345__tar.gz → 0.18.3.dev30637__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. griip_sdk_dev-0.18.3.dev30637/PKG-INFO +670 -0
  2. griip_sdk_dev-0.18.3.dev30637/README.md +635 -0
  3. griip_sdk_dev-0.18.3.dev30637/docs/.gitignore +3 -0
  4. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/README.txt +7 -0
  5. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/generate-picks-hooks.mmd +30 -0
  6. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/hook-calls.mmd +26 -0
  7. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/one-pick.mmd +22 -0
  8. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/system.mmd +52 -0
  9. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/ways-to-use.mmd +30 -0
  10. griip_sdk_dev-0.18.3.dev30637/docs/_diagrams/yaml-to-cell.mmd +19 -0
  11. griip_sdk_dev-0.18.3.dev30637/docs/_static/constructor-arguments.css +11 -0
  12. griip_sdk_dev-0.18.3.dev30637/docs/_static/constructor-arguments.js +16 -0
  13. griip_sdk_dev-0.18.3.dev30637/docs/_static/parameter-lists.css +16 -0
  14. griip_sdk_dev-0.18.3.dev30637/docs/_static/parameter-lists.js +21 -0
  15. griip_sdk_dev-0.18.3.dev30637/docs/_static/sidebar-toggles.css +31 -0
  16. griip_sdk_dev-0.18.3.dev30637/docs/_static/sidebar-toggles.js +63 -0
  17. griip_sdk_dev-0.18.3.dev30637/docs/_static/sidebar-tree.css +40 -0
  18. griip_sdk_dev-0.18.3.dev30637/docs/_static/sidebar-tree.js +71 -0
  19. griip_sdk_dev-0.18.3.dev30637/docs/_static/signature-colors.css +73 -0
  20. griip_sdk_dev-0.18.3.dev30637/docs/_templates/autosummary/module.rst +67 -0
  21. griip_sdk_dev-0.18.3.dev30637/docs/_templates/partials/extra-head.html +3 -0
  22. griip_sdk_dev-0.18.3.dev30637/docs/api/calibration.rst +12 -0
  23. griip_sdk_dev-0.18.3.dev30637/docs/api/entry-points.rst +17 -0
  24. griip_sdk_dev-0.18.3.dev30637/docs/api/grippers.rst +35 -0
  25. griip_sdk_dev-0.18.3.dev30637/docs/api/index.md +28 -0
  26. griip_sdk_dev-0.18.3.dev30637/docs/api/managers.rst +28 -0
  27. griip_sdk_dev-0.18.3.dev30637/docs/api/parts.rst +10 -0
  28. griip_sdk_dev-0.18.3.dev30637/docs/api/perception-grpc-clients.rst +126 -0
  29. griip_sdk_dev-0.18.3.dev30637/docs/api/perception-hooks.rst +37 -0
  30. griip_sdk_dev-0.18.3.dev30637/docs/api/planning.rst +68 -0
  31. griip_sdk_dev-0.18.3.dev30637/docs/api/results.rst +12 -0
  32. griip_sdk_dev-0.18.3.dev30637/docs/conf.py +434 -0
  33. griip_sdk_dev-0.18.3.dev30637/docs/configuration.md +34 -0
  34. griip_sdk_dev-0.18.3.dev30637/docs/getting-started.md +44 -0
  35. griip_sdk_dev-0.18.3.dev30637/docs/guides/calibration.md +29 -0
  36. griip_sdk_dev-0.18.3.dev30637/docs/guides/custom-camera.md +8 -0
  37. griip_sdk_dev-0.18.3.dev30637/docs/guides/custom-gripper.md +8 -0
  38. griip_sdk_dev-0.18.3.dev30637/docs/guides/failure-handling.md +8 -0
  39. griip_sdk_dev-0.18.3.dev30637/docs/guides/managed-loop.md +99 -0
  40. griip_sdk_dev-0.18.3.dev30637/docs/guides/multi-gripper.md +67 -0
  41. griip_sdk_dev-0.18.3.dev30637/docs/guides/parts-and-lifecycle.md +17 -0
  42. griip_sdk_dev-0.18.3.dev30637/docs/guides/perception-hooks.md +37 -0
  43. griip_sdk_dev-0.18.3.dev30637/docs/guides/placing.md +86 -0
  44. griip_sdk_dev-0.18.3.dev30637/docs/guides/ways-to-use.md +84 -0
  45. griip_sdk_dev-0.18.3.dev30637/docs/how-griip-works.md +99 -0
  46. griip_sdk_dev-0.18.3.dev30637/docs/index.md +51 -0
  47. griip_sdk_dev-0.18.3.dev30637/docs/reference/index.rst +71 -0
  48. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/project.json +18 -7
  49. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/pyproject.toml +18 -20
  50. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/__init__.py +98 -0
  51. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/__init__.py +6 -0
  52. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/app.py +141 -121
  53. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/apriltag_pose.py +265 -0
  54. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/camera_factory.py +90 -0
  55. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/config_store.py +47 -1
  56. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib/README.md +33 -0
  57. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib/__init__.py +19 -0
  58. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2 → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib}/calibrate_hand_eye.py +145 -3
  59. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2 → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib}/charuco_detector.py +26 -0
  60. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib/interfaces/interface_camera.py +39 -0
  61. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib/interfaces/interface_robot_arm.py +36 -0
  62. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib/main.py +460 -0
  63. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/hand_eye_calib/planning.py +34 -6
  64. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/hand_eye_calib/run_hand_eye_calibration.py +11 -22
  65. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/hand_eye_calib/transforms.py +13 -2
  66. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/mqtt_publisher.py +45 -0
  67. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/scanning/environment_scanning.py +94 -59
  68. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/scanning/run_environment_scanning.py +14 -15
  69. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/conftest.py +12 -0
  70. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/test_apriltag_pose.py +223 -0
  71. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/test_calibrate_hand_eye.py +116 -0
  72. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/tests/test_calibration_app.py +162 -80
  73. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/test_camera_factory.py +136 -0
  74. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/tests/test_environment_scanning.py +43 -87
  75. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/test_hand_eye_calibration_service.py +439 -0
  76. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests/test_hand_eye_helpers.py +51 -0
  77. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/tests/test_transforms.py +15 -0
  78. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/types.py +32 -0
  79. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/builders.py +1059 -0
  80. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/config.py +1109 -0
  81. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/end_effector_collision_model.py +107 -4
  82. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/initialize.py +115 -50
  83. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/loader.py +64 -32
  84. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/mock_builders.py +146 -0
  85. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/parts.py +22 -6
  86. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/recipes.py +344 -360
  87. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/remote.py +55 -0
  88. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/cell_root_helpers.py +1 -3
  89. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/cell.yaml +0 -42
  90. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_builders.py +320 -0
  91. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/test_cell_root_loader.py +81 -9
  92. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_end_effector_collision_model.py +220 -0
  93. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_grpc_clients_builders.py +149 -0
  94. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/test_initialize.py +68 -39
  95. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/test_initialize_content.py +38 -29
  96. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/test_loader.py +21 -8
  97. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_mock_cell_smoke.py +98 -0
  98. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_recipes.py +277 -0
  99. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_recording_config.py +31 -0
  100. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell/tests/test_remote.py +85 -0
  101. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/__init__.py +6 -0
  102. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/actions.py +63 -0
  103. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/collision.py +93 -0
  104. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/config.py +143 -0
  105. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/tests/test_chunks.py +186 -0
  106. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/tests/test_collision.py +201 -0
  107. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/tests/test_refusals.py +225 -0
  108. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/tests/test_timing.py +35 -0
  109. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/tests/test_vrmcs_follower.py +588 -0
  110. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/timing.py +48 -0
  111. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/follower/vrmcs_follower.py +918 -0
  112. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/grpc_adapters/__init__.py +6 -0
  113. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/grpc_adapters/servicer_as_stub.py +81 -24
  114. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/__init__.py +8 -0
  115. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/camera.py +366 -0
  116. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/fanuc_robot_client.py +98 -8
  117. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/gripper.py +654 -0
  118. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/gripper_types.py +25 -0
  119. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/grpc_vision_backend.py +334 -0
  120. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/machine_io.py +39 -0
  121. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/mocks/__init__.py +6 -0
  122. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/mocks/camera_mock.py +118 -0
  123. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/mocks/gripper_client_mock.py +20 -1
  124. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/mocks/machine_io_mock.py +87 -0
  125. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/mocks/robot_client_mock.py +174 -1
  126. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/multi_gripper.py +158 -0
  127. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/onrobot_2fg7_gripper.py +468 -0
  128. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/onrobot_3fg15_gripper.py +141 -0
  129. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/onrobot_vgc10_gripper.py +308 -0
  130. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/robot_client.py +632 -199
  131. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/robotiq_2f140_gripper.py +68 -26
  132. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/sim_gripper.py +23 -5
  133. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/sim_hand_eye.py +9 -0
  134. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/sim_robot_client.py +36 -26
  135. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/suction_gripper.py +162 -0
  136. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/fixtures/luxonis_list_sources.json +66 -0
  137. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_camera_depth.py +118 -0
  138. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_command_state_fanout.py +0 -2
  139. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_grpc_vision_backend.py +460 -0
  140. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_multi_gripper.py +106 -0
  141. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_onrobot_2fg7_gripper.py +413 -0
  142. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_onrobot_vgc10_gripper.py +207 -0
  143. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_reset_to_normal.py +101 -0
  144. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_robot_client_base.py +296 -0
  145. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_robot_client_lifecycle.py +0 -24
  146. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_robot_feedback_fanout.py +0 -2
  147. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_robotiq_2f140_gripper.py +46 -2
  148. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_sim_gripper.py +5 -2
  149. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_sim_hand_eye.py +5 -4
  150. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_sim_robot_client.py +0 -18
  151. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_suction_gripper.py +85 -0
  152. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_trajectory_start_guard.py +69 -0
  153. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_vrmcs_active_tcp.py +258 -0
  154. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/tests/test_vrmcs_kinematics.py +77 -0
  155. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/torquing_client.py +50 -0
  156. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/ur_robot_client.py +6 -1
  157. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/vision_backend.py +16 -0
  158. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware/vrmcs_kinematics.py +75 -0
  159. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/log_utils.py +13 -0
  160. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/__init__.py +5 -7
  161. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/bin_cuboid_extraction.py +22 -1
  162. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/bin_picking_manager.py +785 -0
  163. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/bin_state.py +186 -0
  164. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/callbacks.py +29 -9
  165. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/cycle_pause_gate.py +135 -0
  166. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/errors.py +84 -0
  167. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/grasp_executor.py +30 -2
  168. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/parallel_jaw_executor.py +18 -2
  169. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/suction_executor.py +7 -0
  170. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/three_finger_executor.py +18 -2
  171. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/grasp_queue.py +26 -2
  172. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/part_bin_picking_manager.py +47 -0
  173. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/part_setup.py +23 -1
  174. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/perception_hook_session.py +156 -0
  175. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/perception_hooks.py +194 -0
  176. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/perception_inputs.py +134 -0
  177. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/pick_and_place_manager.py +747 -439
  178. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/pick_generator.py +66 -9
  179. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/placement_planner.py +136 -49
  180. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/proto_conversions.py +53 -23
  181. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/scene.py +65 -0
  182. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/scoop_executor.py +32 -0
  183. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_bin_picking_manager.py +886 -0
  184. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_bin_state.py +283 -0
  185. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_cycle_pause_gate.py +222 -0
  186. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_part_bin_picking_manager.py +121 -0
  187. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_perception_inputs.py +133 -0
  188. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_phase_collision_spheres.py +2 -1
  189. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_pick_and_place_manager.py +159 -100
  190. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_pick_generator.py +334 -0
  191. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_pick_result_adapter.py +56 -0
  192. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_placement_planner.py +123 -29
  193. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_proto_conversions.py +3 -16
  194. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_resolve_gripper_for_executor.py +34 -0
  195. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_scene.py +54 -0
  196. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_scoop_executor.py +13 -0
  197. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests/test_trajectory_store.py +30 -0
  198. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/trajectory_store.py +84 -39
  199. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/types.py +104 -186
  200. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/planning.py +260 -0
  201. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/read_tcp.py +8 -12
  202. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/run_environment_scanning.py +6 -21
  203. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/run_hand_eye_calibration.py +2 -10
  204. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/run_linear_shuttle.py +27 -11
  205. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/recording/__init__.py +5 -0
  206. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/recording/gripper_state_logger.py +37 -67
  207. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/recording/gripper_state_stream.py +299 -0
  208. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_mcap_gripper_state_logger.py → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/recording/tests/test_gripper_state_forwarder.py +13 -135
  209. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/recording/tests/test_gripper_state_stream.py +252 -0
  210. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/rotations.py +56 -0
  211. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/__init__.py +8 -0
  212. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/client.py +202 -0
  213. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/inputs.py +82 -0
  214. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/manager.py +323 -0
  215. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/termination.py +300 -0
  216. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/tests/fakes.py +176 -0
  217. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/tests/test_actions_and_inputs.py +87 -0
  218. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/tests/test_policy_execution.py +258 -0
  219. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/sensor_to_actions/tests/test_termination.py +115 -0
  220. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/__init__.py +8 -0
  221. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/api.py +276 -0
  222. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/dynamixel.py +258 -0
  223. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/gello.py +437 -0
  224. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/gello_calibration.py +49 -0
  225. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/gello_serial.py +116 -0
  226. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/session.py +534 -0
  227. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/fakes.py +84 -0
  228. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_dynamixel.py +198 -0
  229. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_gello.py +220 -0
  230. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_gello_calibration.py +21 -0
  231. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_gello_serial.py +60 -0
  232. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_teleop_api.py +156 -0
  233. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/teleoperation/tests/test_teleop_session.py +268 -0
  234. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/tests/test_collision_free_motion_planner.py +160 -0
  235. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk}/tests/test_planning.py +7 -6
  236. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/tests/test_rotations.py +49 -0
  237. griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/tests/test_servicer_as_stub.py +129 -0
  238. griip_sdk_dev-0.6.0.dev26345/PKG-INFO +0 -618
  239. griip_sdk_dev-0.6.0.dev26345/README.md +0 -585
  240. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/__init__.py +0 -80
  241. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/apriltag_pose.py +0 -101
  242. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/camera_factory.py +0 -105
  243. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/cartesian_pose.py +0 -220
  244. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/external_robot.py +0 -114
  245. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/README.md +0 -109
  246. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/__init__.py +0 -40
  247. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/config/routine.yaml +0 -7
  248. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/core.py +0 -692
  249. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/main.py +0 -607
  250. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib/routines.py +0 -223
  251. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2/__init__.py +0 -5
  252. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2/interfaces/interface_camera.py +0 -24
  253. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2/interfaces/interface_robot_arm.py +0 -23
  254. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2/service.py +0 -172
  255. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/routines.py +0 -36
  256. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/conftest.py +0 -33
  257. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/test_camera_factory.py +0 -126
  258. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/test_external_robot.py +0 -102
  259. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/test_hand_eye_calibration_service.py +0 -548
  260. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/test_hand_eye_helpers.py +0 -211
  261. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/tests/test_hand_eye_v2_service.py +0 -137
  262. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/types.py +0 -21
  263. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/units.py +0 -104
  264. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/builders.py +0 -638
  265. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/config.py +0 -528
  266. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/mock_builders.py +0 -114
  267. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/fixtures/demo_cell/io.json +0 -4
  268. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/test_builders.py +0 -13
  269. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/test_end_effector_collision_model.py +0 -118
  270. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/test_mock_cell_smoke.py +0 -54
  271. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/test_recipes.py +0 -216
  272. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell/tests/test_recording_config.py +0 -113
  273. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/errors.py +0 -16
  274. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/bin_shaker.py +0 -86
  275. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/camera.py +0 -303
  276. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/ft_sensor.py +0 -352
  277. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/gripper.py +0 -339
  278. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/grpc_vision_backend.py +0 -123
  279. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/io_client.py +0 -194
  280. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/joint_conventions.py +0 -45
  281. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/mmai_vision_backend.py +0 -265
  282. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/mocks/camera_mock.py +0 -62
  283. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/mocks/io_client_mock.py +0 -28
  284. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/onrobot_3fg15_gripper.py +0 -103
  285. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/robot_interface.py +0 -80
  286. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/suction_gripper.py +0 -112
  287. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_grpc_vision_backend.py +0 -221
  288. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_joint_conventions.py +0 -29
  289. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_mmai_vision_backend.py +0 -312
  290. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_reset_to_normal.py +0 -50
  291. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_robot_client_base.py +0 -151
  292. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_suction_gripper.py +0 -82
  293. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_tower_light.py +0 -179
  294. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_vision_codec.py +0 -73
  295. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tests/test_vrmcs_tcp_guard.py +0 -81
  296. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/torquing_client.py +0 -23
  297. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/tower_light.py +0 -84
  298. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/vision_backend.py +0 -7
  299. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/vision_codec.py +0 -77
  300. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/__init__.py +0 -0
  301. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/README.md +0 -187
  302. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/__init__.py +0 -8
  303. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/__main__.py +0 -242
  304. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/_actors.py +0 -278
  305. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/_geometry.py +0 -55
  306. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/editor.py +0 -1142
  307. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/object_io.py +0 -53
  308. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/sphere_generation_tool/urdf_io.py +0 -315
  309. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/__init__.py +0 -0
  310. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/conftest.py +0 -123
  311. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/test_editor_math.py +0 -80
  312. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/test_editor_smoke.py +0 -471
  313. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/test_mesh_loading.py +0 -66
  314. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/test_object_io.py +0 -72
  315. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/modeling/tests/test_urdf_io.py +0 -367
  316. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/bin_picking_manager.py +0 -604
  317. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/bin_state.py +0 -95
  318. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/cycle_pause_gate.py +0 -92
  319. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/errors.py +0 -27
  320. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/execution/tests/__init__.py +0 -0
  321. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/grasp_provider.py +0 -360
  322. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/perception_inputs.py +0 -188
  323. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/planning.py +0 -69
  324. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/roi_scheduler.py +0 -150
  325. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/__init__.py +0 -0
  326. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_bin_picking_manager.py +0 -616
  327. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_bin_state.py +0 -160
  328. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_cycle_pause_gate.py +0 -130
  329. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_grasp_provider.py +0 -572
  330. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_perception_inputs.py +0 -122
  331. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_pick_generator.py +0 -130
  332. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/orchestration/tests/test_trajectory_store.py +0 -27
  333. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/__init__.py +0 -0
  334. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/README.md +0 -86
  335. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/__init__.py +0 -1
  336. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/__main__.py +0 -4
  337. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/api.py +0 -158
  338. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/local_files.py +0 -49
  339. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/server.py +0 -188
  340. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/session.py +0 -294
  341. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/prototyping/mmai_scene_scanning/ui_bundle.py +0 -26
  342. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/__init__.py +0 -71
  343. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/foxglove_events.py +0 -555
  344. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/foxglove_joint_states.py +0 -115
  345. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/gripper_state_mcap_recording.py +0 -69
  346. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/h264_video_logger.py +0 -128
  347. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/h264_video_mcap_recording.py +0 -217
  348. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/kpi_logger.py +0 -186
  349. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/kpi_mcap_recording.py +0 -143
  350. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/kpi_timer.py +0 -148
  351. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/mcap_recording.py +0 -209
  352. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/memory_utils.py +0 -19
  353. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/robot_state_logger.py +0 -133
  354. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/rotating_mcap_writer.py +0 -326
  355. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_foxglove_event_publisher.py +0 -324
  356. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_foxglove_joint_states.py +0 -26
  357. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_kpi_timer.py +0 -346
  358. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_mcap_foxglove_event_publisher.py +0 -355
  359. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_mcap_h264_video_logger.py +0 -118
  360. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_mcap_kpi_logger.py +0 -72
  361. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_mcap_robot_state_logger.py +0 -251
  362. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/recording/tests/test_session.py +0 -87
  363. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/tests/__init__.py +0 -0
  364. griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/tests/test_servicer_as_stub.py +0 -69
  365. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/docs/griip-sdk-consumer-improvements.md +0 -0
  366. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2 → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib}/charuco_pose_detection.py +0 -0
  367. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2 → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib}/interfaces/__init__.py +0 -0
  368. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration/hand_eye_calib_v2 → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/hand_eye_calib}/interfaces/stereo_images.py +0 -0
  369. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/mqtt_topics.py +0 -0
  370. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/calibration/scanning/__init__.py +0 -0
  371. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/calibration/tests}/__init__.py +0 -0
  372. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/__init__.py +0 -0
  373. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/calibration → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/cell}/tests/__init__.py +0 -0
  374. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/conftest.py +0 -0
  375. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/cuboids.json +0 -0
  376. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/grasps/block.json +0 -0
  377. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/grasps/plate.json +0 -0
  378. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/object_spheres/block.json +0 -0
  379. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/object_spheres/plate.json +0 -0
  380. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/fixtures/demo_cell/tool_spheres.json +0 -0
  381. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/cell/tests/test_parts.py +0 -0
  382. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/cell → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/hardware}/tests/__init__.py +0 -0
  383. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/conftest.py +0 -0
  384. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_call_with_timeout.py +0 -0
  385. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_gripper_command_listeners.py +0 -0
  386. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/hardware/tests/test_robotiq_gripper_bus_lock.py +0 -0
  387. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/__init__.py +0 -0
  388. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/grpc_adapters → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/execution/tests}/__init__.py +0 -0
  389. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/execution/tests/test_parallel_jaw_executor.py +0 -0
  390. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/orchestration/tests}/__init__.py +0 -0
  391. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/conftest.py +0 -0
  392. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/orchestration/tests/test_part_setup.py +0 -0
  393. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware/mocks → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk/prototyping}/__init__.py +0 -0
  394. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/config/__init__.py +0 -0
  395. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/config/registry.py +0 -0
  396. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/prototyping/in_process_api.py +0 -0
  397. {griip_sdk_dev-0.6.0.dev26345/src/griip_sdk/hardware → griip_sdk_dev-0.18.3.dev30637/src/griip_sdk}/tests/__init__.py +0 -0
  398. {griip_sdk_dev-0.6.0.dev26345 → griip_sdk_dev-0.18.3.dev30637}/src/griip_sdk/tests/test_log_utils.py +0 -0
@@ -0,0 +1,670 @@
1
+ Metadata-Version: 2.5
2
+ Name: griip-sdk-dev
3
+ Version: 0.18.3.dev30637
4
+ Summary: Dev build of griip-sdk from commit 296ee110d (PR #7356). Not a release.
5
+ Author: VentionCo
6
+ License: Proprietary
7
+ Requires-Python: <3.11,>=3.10
8
+ Requires-Dist: aiortc<2.0,>=1.9
9
+ Requires-Dist: defusedxml<0.8.0,>=0.7.1
10
+ Requires-Dist: dynamixel-sdk<4.0,>=3.8
11
+ Requires-Dist: fastapi[standard]>=0.121.1
12
+ Requires-Dist: griip-core-dev==0.7.1.dev30637
13
+ Requires-Dist: grpcio>=1.78.0
14
+ Requires-Dist: httpx[http2]<0.29.0,>=0.28.1
15
+ Requires-Dist: machine-logic-sdk
16
+ Requires-Dist: numpy>=1.24
17
+ Requires-Dist: omegaconf<3.0.0,>=2.3.0
18
+ Requires-Dist: opencv-python-headless<5.0.0,>=4.9.0
19
+ Requires-Dist: paho-mqtt<2.0,>=1.5
20
+ Requires-Dist: protobuf>=4.0
21
+ Requires-Dist: pydantic==2.11.1
22
+ Requires-Dist: pymodbus==3.11
23
+ Requires-Dist: pyserial<4.0,>=3.5
24
+ Requires-Dist: pyyaml<7.0,>=6.0
25
+ Requires-Dist: scipy<2.0,>=1.11.0
26
+ Requires-Dist: spatialmath-python<2.0.0,>=1.1.15
27
+ Requires-Dist: toppra<=0.6.3,>=0.6.0
28
+ Requires-Dist: trimesh<5.0,>=4.11
29
+ Requires-Dist: urchin<0.0.31,>=0.0.30
30
+ Requires-Dist: vention-grpc-py-sdk>=0.0.94
31
+ Requires-Dist: vention-sim-grpc-py-sdk==0.1.3
32
+ Provides-Extra: board-demo
33
+ Requires-Dist: app-bus; extra == 'board-demo'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # griip-sdk
37
+
38
+ Hardware control and orchestration for bin picking, by [Vention](https://vention.io).
39
+
40
+ The SDK owns the robot, gripper, perception, and planning. You own the loop:
41
+ when to pick, where the part goes, and what to do on failure.
42
+
43
+ ## Install
44
+
45
+ ```bash
46
+ pip install griip-sdk
47
+ ```
48
+
49
+ Needs a running `griip-server`. From outside the Vention monorepo, use gRPC
50
+ mode.
51
+
52
+ ### Supported platforms
53
+
54
+ - Python 3.10 (machine-logic-sdk, which provides the cell's digital IO, supports only 3.10).
55
+ - Linux x86_64 and arm64 (what cells run), and macOS (tested on Apple
56
+ Silicon). Windows is not tested.
57
+
58
+ One dependency, `toppra` (trajectory timing), ships only as source at the
59
+ version we pin, so pip compiles it during install. That needs a C compiler and
60
+ the Python headers:
61
+
62
+ - macOS: `xcode-select --install`
63
+ - Debian/Ubuntu: `sudo apt install build-essential python3-dev`
64
+
65
+ Everything else installs from prebuilt wheels.
66
+
67
+ ## Quickstart
68
+
69
+ ```python
70
+ from griip_sdk import build_pick_only_manager
71
+
72
+ DROP_JOINTS = [-1.5, -1.2, 1.0, -1.4, -1.5, 0.0] # your drop pose
73
+
74
+ with build_pick_only_manager("./pick.yaml", part_id="pcb") as manager:
75
+ pick = manager.pick(max_attempts=3)
76
+ if pick.succeeded:
77
+ manager.start_pick_generation() # perception runs while you move
78
+ manager.collision_free_move_to_joints(DROP_JOINTS, object_in_tcp=pick.obj_in_tcp)
79
+ manager.release()
80
+ ```
81
+
82
+ Two entry points, same setup under the hood:
83
+
84
+ - `build_pick_only_manager` for single-cycle pick-only work (above).
85
+ - `build_bin_picking_manager` for a continuous bin-pick + placement loop; you
86
+ pass a `handle_placement` callback and call `manager.run()`.
87
+
88
+ Both return a context manager that wires up hardware and tears it down on exit.
89
+
90
+ ## Where griip-server runs
91
+
92
+ On a cell, `griip-server` runs on the Thor and keeps the cell config tree and hand-eye calibrations. An app
93
+ on the MachineMotion copies them and builds its cell from the copy, which dials that server:
94
+
95
+ ```python
96
+ from griip_sdk import build_pick_only_manager
97
+ from griip_sdk.cell.remote import fetch_cell_root
98
+
99
+ cell_root = fetch_cell_root("192.168.100.77:50052") # into ~/.cache/griip/cell
100
+ with build_pick_only_manager(cell_root, part_id="pcb") as manager:
101
+ ...
102
+ ```
103
+
104
+ ## Handling failures
105
+
106
+ `manager.pick()` always returns a `PickResult`. On failure, `failure_reasons`
107
+ holds one reason per attempt in order. `failure_reasons[-1]` is the last
108
+ attempt; more than one distinct reason means the cell is failing for shifting
109
+ reasons.
110
+
111
+ | `PickFailureReason` | Meaning | Typical response |
112
+ |---|---|---|
113
+ | `NO_PARTS_DETECTED` | Perception saw no objects. | Request refill. |
114
+ | `NO_GRASPABLE_PARTS` | Parts visible but none reachable. | Shake / reorient. |
115
+ | `GRIP_CHECK_FAILED` | Scooped but nothing in hand. | Retry next loop. |
116
+ | `MOTION_FAILED` | Collision or scoop plan/exec failure. | Alert operator. |
117
+ | `PERCEPTION_FAILED` | Picking stream died mid-call (gRPC error). | Backoff + retry, or page ops. |
118
+ | `PLACEMENT_FAILED` | Pick OK, place leg failed (placement mode). | Cell-specific. |
119
+
120
+ `pick.attempts_made` and `pick.detail` are for logs and metrics, not control
121
+ flow. Hardware faults (robot or gripper driver) don't map to a reason: they
122
+ escape as exceptions, which is your "stop the cell" signal.
123
+
124
+ A loop that acts on each reason:
125
+
126
+ ```python
127
+ from griip_sdk import build_pick_only_manager, PickFailureReason
128
+
129
+ with build_pick_only_manager("./pick.yaml", part_id="pcb") as manager:
130
+ while True:
131
+ pick = manager.pick(max_attempts=3)
132
+
133
+ if pick.succeeded:
134
+ manager.start_pick_generation()
135
+ manager.collision_free_move_to_joints(DROP_JOINTS, object_in_tcp=pick.obj_in_tcp)
136
+ manager.release()
137
+ continue
138
+
139
+ if len(set(pick.failure_reasons)) > 1:
140
+ alert_operator(f"cell unstable: {pick.failure_reasons}")
141
+ break
142
+
143
+ match pick.failure_reasons[-1]:
144
+ case PickFailureReason.NO_PARTS_DETECTED:
145
+ request_refill()
146
+ case PickFailureReason.NO_GRASPABLE_PARTS:
147
+ shake_the_bin() # your cell's own hardware
148
+ case PickFailureReason.GRIP_CHECK_FAILED:
149
+ pass # SDK already retried; try again next loop
150
+ case PickFailureReason.MOTION_FAILED | PickFailureReason.PERCEPTION_FAILED:
151
+ alert_operator(pick.detail)
152
+ break
153
+ ```
154
+
155
+ ## Manager methods
156
+
157
+ | Method | Effect |
158
+ |---|---|
159
+ | `pick(max_attempts=3)` | Pick only. Returns a `PickResult`; robot stays at the prep pose on success. |
160
+ | `pick_and_place_once(max_pick_attempts=3, target_pose=...)` | Pick, then place when `target_pose` is given. |
161
+ | `start_pick_generation()` | Move to the capture pose and run perception. The camera grab is synchronous; perception runs async. |
162
+ | `collision_free_move_to_joints(target, object_in_tcp=None, ...)` | Collision-aware joint move. Pass `object_in_tcp=pick.obj_in_tcp` while carrying a part. |
163
+ | `release()` | Open the gripper and clear `object_in_hand`. |
164
+ | `set_capture_joints(joints)` | Change where perception captures from, next capture on. |
165
+ | `set_part(part_id)` | Swap the active part mid-session. Re-sends Initialize over the existing channel; no hardware or planner re-init. |
166
+
167
+ ## Poses and Euler angles
168
+
169
+ Poses are spatialmath `SE3` objects, in meters. To work in Euler angles, use
170
+ `position_euler_to_se3` and `se3_to_euler`:
171
+
172
+ ```python
173
+ from griip_sdk import position_euler_to_se3, se3_to_euler
174
+
175
+ target_pose = position_euler_to_se3([0.5, 0.0, 0.3], [180.0, 0.0, 90.0])
176
+ manager.pick_and_place_once(target_pose=target_pose)
177
+
178
+ rx, ry, rz = se3_to_euler(pick.obj_in_tcp)
179
+ ```
180
+
181
+ The angles are `[rx, ry, rz]` in degrees, applied as intrinsic rotations about
182
+ X, then the new Y, then the new Z. This is the same convention as MachineLogic,
183
+ so a MachineLogic pose `[x, y, z, rx, ry, rz]` converts with
184
+ `position_euler_to_se3([x / 1000, y / 1000, z / 1000], [rx, ry, rz])`
185
+ (MachineLogic positions are in millimeters). spatialmath's `SO3.RPY` uses a
186
+ different convention, so don't pass MachineLogic angles to it.
187
+
188
+ ## `pick.yaml`
189
+
190
+ The cell YAML points the runner at the robot, gripper, camera, perception
191
+ backends, and the cell's collision geometry. It does not hold drop poses or
192
+ loop policy. That is your application code.
193
+
194
+ ## Bring your own gripper
195
+
196
+ Both builders take an optional `gripper=`. When set, the SDK uses your client
197
+ instead of building one from the YAML.
198
+
199
+ Use the SDK's Robotiq 2F-140 directly, so a bench consumer keeps its hardware
200
+ constants out of the cell YAML:
201
+
202
+ ```python
203
+ from griip_sdk import build_pick_only_manager
204
+ from griip_sdk.hardware.robotiq_2f140_gripper import Robotiq2F140Gripper
205
+
206
+ gripper = Robotiq2F140Gripper(serial_port="/tmp/ttyUR", baudrate=115200, modbus_slave_id=9, grip_force=20, release_width=800)
207
+
208
+ with build_pick_only_manager("./pick.yaml", part_id="pcb", gripper=gripper) as manager:
209
+ ...
210
+ ```
211
+
212
+ Or subclass your gripper family's base class, here `ParallelJawGripper`, for a
213
+ gripper the SDK doesn't ship (a Modbus / EtherNet-IP unit, or an in-memory fake
214
+ for tests):
215
+
216
+ ```python
217
+ from griip_sdk import GripperMoveResult, ParallelJawGripper, build_pick_only_manager
218
+
219
+ class MyEthernetIPGripper(ParallelJawGripper):
220
+ def get_state(self) -> list[float] | None: ...
221
+ def get_width(self) -> int: ...
222
+ def get_current_draw(self) -> int: ...
223
+ def is_in_safety_stop(self) -> bool: ...
224
+ def reset_safety(self) -> None: ...
225
+ def reconnect(self) -> None: ...
226
+ def stop(self) -> None: ...
227
+ def close_gripper(self, force_value=400, block=False, timeout=10.0) -> GripperMoveResult: ...
228
+ def open_gripper(self, force_value=400, block=False) -> GripperMoveResult: ...
229
+ def move_gripper(self, width_value, force_value=400, block=False, timeout=None) -> GripperMoveResult: ...
230
+
231
+ with build_pick_only_manager("./pick.yaml", part_id="pcb", gripper=MyEthernetIPGripper(...)) as manager:
232
+ ...
233
+ ```
234
+
235
+ Two things to know:
236
+
237
+ - The YAML `tool.gripper` block still drives manager state
238
+ (`closed_gripper_width`, `expected_grip_width_range`, `grip_check_width_margin`,
239
+ `min_grip_width_for_current_part`). Only the hardware-construction fields
240
+ (`serial_port`, `baudrate`, `modbus_slave_id`, `force`, `release_width`) are
241
+ ignored when you inject a gripper. The SDK logs this once at `INFO`.
242
+ - The SDK does no gripper-side teardown. If your gripper holds a connection
243
+ (TCP or serial), close it yourself.
244
+
245
+ ## Digital IO (machine-logic)
246
+
247
+ The SDK has no IO client of its own. Digital inputs and outputs come from
248
+ machine-logic-sdk's `Machine`, which your app creates (one per process) and
249
+ passes as `machine_io=`. The SDK never builds one. IO names and polarity come
250
+ from the cell's MachineApp configuration.
251
+
252
+ ```python
253
+ from machinelogic import Machine
254
+
255
+ with build_bin_picking_manager("./cell.yaml", part_id="pcb", handle_placement=..., machine_io=Machine()) as manager:
256
+ ...
257
+ ```
258
+
259
+ The cell YAML names the IO it uses: `io.bin_presence_sensors` (bin number to input;
260
+ a bin without one is always present) and the gripper's own names (e.g.
261
+ `suction_output_name`). Every name is looked up when the manager is built. A name missing from the MachineApp configuration, or a
262
+ cell that names IO without `machine_io`, fails the build. `mock=True` uses
263
+ in-memory IO instead.
264
+
265
+ ## Bring your own camera (vision ABC)
266
+
267
+ Both builders take an optional `vision_backend=`. The SDK camera path talks to
268
+ the `vention.vision.v1` Image/Source service ABCs, so the same `CameraManager`
269
+ drives every camera the vention.vision gRPC service serves (Luxonis, Leopard,
270
+ griip-sim) behind one interface. When `vision_backend` is omitted the SDK builds
271
+ the gRPC camera the cell YAML `camera` block describes (in `mock` mode, a mock
272
+ camera). Every camera is a gRPC camera; a `backend` key left in an old cell YAML
273
+ is ignored.
274
+
275
+ The easiest route is config-only. A Luxonis needs only its service and the roles
276
+ of its stereo pair; it reports the rest:
277
+
278
+ ```yaml
279
+ camera:
280
+ target: "127.0.0.1:10000" # vention.vision gRPC service
281
+ sensor: "left" # a role (source_metadata.sensor) or a source id from ListSources
282
+ right_source_id: "right"
283
+ ```
284
+
285
+ A Leopard reports no roles and no identity, so its cell names its source ids
286
+ and fills the identity in:
287
+
288
+ ```yaml
289
+ camera:
290
+ target: "192.168.102.8:10000"
291
+ sensor: "rectified_frame_left"
292
+ right_source_id: "rectified_frame_right"
293
+ source_metadata: # only keys the service omits; service values always win
294
+ camera_vendor: "leopard"
295
+ mx_id: "LI-123456"
296
+ ```
297
+
298
+ or build it in code from the same YAML:
299
+
300
+ ```python
301
+ from griip_sdk import build_bin_picking_manager
302
+ from griip_sdk.hardware.grpc_vision_backend import build_vision_backend
303
+
304
+ vision_backend = build_vision_backend("./cell.yaml")
305
+ with build_bin_picking_manager("./cell.yaml", part_id="pcb", handle_placement=..., vision_backend=vision_backend) as manager:
306
+ ...
307
+ ```
308
+
309
+ `GrpcVisionServiceBackend` composes the wheel's `create_source_service_backend`
310
+ / `create_image_service_backend` gRPC backends so one object satisfies both
311
+ ABC seams. They are two addresses: the camera's SourceService at `camera.target`,
312
+ and the image store behind the cell's Envoy (`perception.services.envoy`), where
313
+ the SDK reads and writes every image, so a camera that only uploads its captures
314
+ there (griip-sim) works like one that serves the store itself. Everything is
315
+ read from the backend's `list_sources`, so each camera reports its own
316
+ calibration through the same seam:
317
+
318
+ - **Sources:** `sensor` / `right_source_id` are source ids, or roles a source
319
+ reports in `source_metadata.sensor` (a Luxonis's `left` is
320
+ `/cameras/luxo_<mac>/left/image_rect`). `resolve_camera_sources` resolves them.
321
+ - **Intrinsics and resolution:** the left source's `camera_intrinsics`.
322
+ - **Baseline:** the right source's rectified projection matrix (`|Tx| / fx'`),
323
+ else `source_metadata.baseline`; neither fails loudly.
324
+ - **Identity** (keys the calibration store): vendor from `camera_vendor`, else
325
+ `vendor`; serial from `mx_id`, else `hardware_id` (a Luxonis's MxId), else
326
+ `fpga_uuid` (a Leopard's Hololink board). Calibration flows refuse a camera
327
+ with neither.
328
+ - **Hand-eye records** are filed under the role the left source reports, else its
329
+ source id, so a Luxonis keeps the `X_cam_flg__luxonis__<MxId>__left` records
330
+ the legacy backend wrote.
331
+ - **calib.io calibration:** before its first listing or capture,
332
+ `GrpcVisionServiceBackend` uploads each camera's stored
333
+ `calibio__{vendor}__{serial}` (`UploadCalibration`), so a Luxonis runs on its
334
+ calib.io calibration, as it did on the legacy backend. A camera with none
335
+ stored keeps its own.
336
+
337
+ > The camera layer imports the `vention.vision.v1` protos and `vision_service_abc`
338
+ > ABCs from `vention-grpc-py-sdk`, which griip-sdk installs.
339
+
340
+ ## Your own perception steps
341
+
342
+ griip-server finds parts in steps: segmentation finds a mask for each part, a
343
+ size filter and ranking choose which masks to try and in what order, then pose
344
+ estimation and grasp planning run on each one. Both builders take
345
+ `perception_hooks=` to run your own code at three of those points:
346
+
347
+ | Hook | Gets | Returns |
348
+ |---|---|---|
349
+ | `post_segment(context, segments)` | The segments the segmentation service found. | The segments to use instead. It can merge, split, drop or edit them. |
350
+ | `pre_rank(context, segments)` | Every segment. | Indices of the segments to try, best first, or `None` to run the built-in size filter and ranking. |
351
+ | `pre_pose(context, segment)` | One ranked segment. | The part's pose in the camera frame, or `None` to have the server estimate it (FoundationPose). |
352
+
353
+ Use them when the built-in steps don't fit the job, for example when the tool
354
+ picks several parts at once, or parts must come out in a fixed order.
355
+ `pre_rank` replaces the size filter too, because the size limits in the cell
356
+ YAML are for one part and a merged group would fail them.
357
+
358
+ `context` holds what the server was given for this image: `image_id`,
359
+ `color_bgr`, `depth_mm`, `camera_intrinsics`, `camera_pose_in_world`,
360
+ `tcp_pose_at_capture`, `roi` and `bin_walls`. A `Segment` has a boolean `mask`
361
+ the size of the whole image (even with an ROI), a `bbox` (x_min, y_min, x_max,
362
+ y_max, max exclusive) and a `score`. The `PostSegmentHook`, `PreRankHook` and
363
+ `PrePoseHook` types give the three signatures.
364
+
365
+ Example: a tool that picks the five parts in one column of a tray, columns in
366
+ order from the left.
367
+
368
+ ```python
369
+ import numpy as np
370
+ from griip_sdk import PerceptionContext, PerceptionHooks, Segment, build_bin_picking_manager
371
+
372
+ PARTS_PER_COLUMN = 5
373
+ COLUMN_WIDTH_PX = 80
374
+
375
+
376
+ def merge_into_columns(context: PerceptionContext, segments: list[Segment]) -> list[Segment]:
377
+ columns: dict[int, list[Segment]] = {}
378
+ for segment in segments:
379
+ x_center = (segment.bbox[0] + segment.bbox[2]) / 2
380
+ columns.setdefault(int(x_center // COLUMN_WIDTH_PX), []).append(segment)
381
+
382
+ groups = []
383
+ for parts in columns.values():
384
+ if len(parts) != PARTS_PER_COLUMN:
385
+ continue # the tool needs a full column
386
+ mask = np.logical_or.reduce([part.mask for part in parts])
387
+ rows, cols = np.nonzero(mask)
388
+ bbox = (int(cols.min()), int(rows.min()), int(cols.max()) + 1, int(rows.max()) + 1)
389
+ groups.append(Segment(mask=mask, bbox=bbox, score=min(part.score for part in parts)))
390
+ return groups
391
+
392
+
393
+ def leftmost_first(context: PerceptionContext, segments: list[Segment]) -> list[int]:
394
+ return sorted(range(len(segments)), key=lambda index: segments[index].bbox[0])
395
+
396
+
397
+ hooks = PerceptionHooks(post_segment=merge_into_columns, pre_rank=leftmost_first)
398
+ with build_bin_picking_manager("./cell.yaml", part_id="tray_column", handle_placement=place, perception_hooks=hooks) as manager:
399
+ manager.run()
400
+ ```
401
+
402
+ The part (`tray_column` here) is then the whole group: its mesh, grasps and
403
+ size are those of five parts together, since pose estimation and grasp
404
+ planning run on the merged mask.
405
+
406
+ ### Your own pose estimation
407
+
408
+ `pre_pose` replaces FoundationPose. The server calls it for each ranked
409
+ segment in turn, until it has accepted as many parts as the request allows
410
+ (`max_detections`), so one capture can call it several times. Return `None`
411
+ for a segment and the server estimates that pose itself.
412
+
413
+ The pose you return must be:
414
+
415
+ - **in the camera frame**: the pose of the part relative to the camera that
416
+ took the capture, not the robot base. `context.camera_pose_in_world` converts
417
+ between the two;
418
+ - **in metres**;
419
+ - **the pose of the part mesh's frame**: the same origin and axes as the mesh
420
+ in the cell's part definition, because grasps are placed relative to it.
421
+
422
+ The server uses that pose as it is. A pose from FoundationPose is only kept if
423
+ the mesh drawn at that pose covers the segment's mask (the mask IoU check);
424
+ yours isn't checked at all. A pose in the wrong frame, in millimetres, or for a
425
+ mesh with a different origin gives grasps that miss, with no error. What the
426
+ server still does: it folds the pose of a symmetric part onto the part's
427
+ nominal orientation, as it does for FoundationPose.
428
+
429
+ Example: a pose estimator of your own that returns poses in the robot base
430
+ frame.
431
+
432
+ ```python
433
+ from typing import Optional
434
+
435
+ from spatialmath import SE3
436
+ from griip_sdk import PerceptionContext, PerceptionHooks, Segment, build_bin_picking_manager
437
+
438
+ estimator = MyPoseEstimator("./part.stl") # same mesh as the cell's part; load it once, up front
439
+
440
+
441
+ def my_pose(context: PerceptionContext, segment: Segment) -> Optional[SE3]:
442
+ part_in_base = estimator.estimate(context.color_bgr, context.depth_mm, context.camera_intrinsics, segment.mask)
443
+ if part_in_base is None:
444
+ return None # let FoundationPose try this segment
445
+ return context.camera_pose_in_world.inv() @ part_in_base
446
+
447
+
448
+ hooks = PerceptionHooks(pre_pose=my_pose)
449
+ with build_bin_picking_manager("./cell.yaml", part_id="bracket", handle_placement=place, perception_hooks=hooks) as manager:
450
+ manager.run()
451
+ ```
452
+
453
+ Each call is one round trip to your code and one mask sent over, so a few
454
+ milliseconds plus your estimator's own time, once per segment tried.
455
+
456
+ Things to know:
457
+
458
+ - **Hooks don't run on mocked perception.** With `mock=True` or
459
+ `griip_api.mocks.sam`, the mock segments, ranks and estimates poses in one
460
+ call, so there's nowhere to run your code in between, and every run that
461
+ registers hooks fails with `PERCEPTION_FAILED`.
462
+ - **A hook that fails, fails the run.** If it raises, or returns nothing within
463
+ the timeout, the pick reports `PERCEPTION_FAILED` and `pick.detail` names
464
+ the hook and your exception. The server doesn't fall back to its own step,
465
+ so a broken hook shows up at once instead of quietly picking the wrong parts.
466
+ - **The timeout is 10 s per call.** A first call that loads a model can take
467
+ longer. Load it before the first run, or set
468
+ `PerceptionHooks(timeout_seconds=...)`.
469
+ - **Hooks run on SDK worker threads, not on yours.** Two can run at once, for
470
+ example when a run is cancelled while its hook is still working and the next
471
+ run's hook starts. Guard any state they share with a lock.
472
+ - **A hook can keep running after its run is cancelled.** The manager cancels
473
+ a run when it captures a new image, and the result of the old hook is then
474
+ dropped. So don't move hardware or count parts in a hook; return a result
475
+ and do that in your own loop.
476
+ - **Masks cost time with many segments.** Each mask goes between the server
477
+ and the SDK at full image size, compressed as COCO run-length encoding.
478
+ Encoding and decoding one takes about 2.5 ms at 1920×1080, so a call with
479
+ 75 segments spends about 0.2 s on its masks, each way.
480
+ - **Upgrade griip-server and the SDK together.** `GeneratePicks` became a
481
+ two-way stream so the server can call your hooks, and an SDK from before
482
+ that change can't talk to a server after it, or the other way round, even
483
+ without hooks.
484
+
485
+ ## Swapping parts mid-session
486
+
487
+ ```python
488
+ with build_pick_only_manager("./pick.yaml", part_id="pcb_rev_a") as manager:
489
+ for _ in range(5):
490
+ manager.pick(max_attempts=3)
491
+
492
+ manager.set_part("pcb_rev_b") # ValueError if part_id isn't in pick.yaml
493
+
494
+ for _ in range(5):
495
+ manager.pick(max_attempts=3)
496
+ ```
497
+
498
+ Only works if both parts use the same gripper. If they don't, build a fresh
499
+ manager for each.
500
+
501
+ ## Manual lifecycle (without `with`)
502
+
503
+ The `with` form is crash-safe and recommended. For a long-running daemon that
504
+ needs a global-style handle, drive the lifecycle yourself:
505
+
506
+ ```python
507
+ _ctx = build_pick_only_manager("./pick.yaml", part_id="pcb")
508
+ manager = _ctx.__enter__()
509
+ try:
510
+ manager.pick(max_attempts=3)
511
+ # manager is usable anywhere in the process
512
+ finally:
513
+ _ctx.__exit__(None, None, None) # required: closes gRPC + hardware
514
+ ```
515
+
516
+ This is an escape hatch. Skip `__exit__` and you leak the gRPC channel and
517
+ hardware connections.
518
+
519
+ ## Calibration
520
+
521
+ The SDK exposes the two calibration primitives — hand-eye and
522
+ operator-driven environment scanning. The cell YAML is the source of
523
+ truth for the calibration starting pose
524
+ (`positions.calibration_joints`); commissioning authors it, the SDK
525
+ reads it, and the operator app never edits it at runtime.
526
+
527
+ The simplest hand-eye run — build the app, call the verb:
528
+
529
+ ```python
530
+ from griip_sdk import build_calibration_app
531
+
532
+ with build_calibration_app("cell.yaml") as cal:
533
+ x_cam_flg = cal.run_hand_eye_calibration()
534
+ ```
535
+
536
+ The SDK plans to `cell.positions.calibration_joints`, runs the hand-eye
537
+ routine, checks the result from fresh views of the board, returns the robot to
538
+ that start pose, and persists the result. The
539
+ fuller form below adds progress reporting and the operator-driven scan session:
540
+
541
+ ```python
542
+ from pathlib import Path
543
+
544
+ from griip_sdk import build_calibration_app
545
+
546
+ with build_calibration_app(Path("cell.yaml")) as cal:
547
+ # Hand-eye: the SDK plans to cell.positions.calibration_joints, runs the
548
+ # routine, then returns the robot to the start pose.
549
+ x_cam_flg = cal.run_hand_eye_calibration(
550
+ on_progress=lambda pct, status, msg: print(pct, status, msg),
551
+ is_cancelled=lambda: False,
552
+ )
553
+ cal.last_hand_eye_calibration_timestamp() # datetime | None
554
+
555
+ # Environment scanning: operator-driven session. start_environment_session
556
+ # switches the robot into freedrive; take_environment_image grabs one
557
+ # frame at the current pose; end_environment_session restores normal
558
+ # operation and persists the entry.
559
+ cal.start_environment_session()
560
+ for _ in range(num_frames_the_app_wants):
561
+ # operator manually repositions the robot between captures
562
+ cal.take_environment_image()
563
+ sequence_dir = cal.end_environment_session()
564
+ cal.last_environment_scan_timestamp() # datetime | None
565
+ ```
566
+
567
+ If `cell.positions.calibration_joints` is unset, `run_hand_eye_calibration`
568
+ raises `griip_sdk.ConfigError` with a message naming the missing field and
569
+ the config file. Surface this to the operator so commissioning can fix the
570
+ YAML.
571
+
572
+ Override the VAMP planner's world cuboids at build time when they live
573
+ outside the cell YAML:
574
+
575
+ ```python
576
+ with build_calibration_app(Path("cell.yaml"), cuboids_path=Path("custom.json")) as cal:
577
+ ...
578
+ ```
579
+
580
+ After a camera swap, before the new MxId has calibio intrinsics in the
581
+ store, opt into the live-defaults fallback so calibration verbs still
582
+ run:
583
+
584
+ ```python
585
+ with build_calibration_app(Path("cell.yaml"), strict_intrinsics=False) as cal:
586
+ cal.run_hand_eye_calibration(...) # uses camera defaults; logs warning
587
+ ```
588
+
589
+ ### Transport (direct vs gRPC)
590
+
591
+ `build_calibration_app` honors `griip_api.mode` in the cell YAML:
592
+
593
+ - `mode: direct` (default) — wires the in-process `PlanningApi` and
594
+ `PerceptionApi` from `griip_server`. Pulls the dev-only
595
+ `griip_server` package as a transitive runtime dep at the call site.
596
+ - `mode: grpc` — dials the gRPC server at `griip_api.url` (defaults to
597
+ `localhost:50052`) using the SDK's own generated stubs. No
598
+ `griip_server` dep needed; the published SDK wheel is enough.
599
+
600
+ The gRPC channel is closed for you on context-manager exit.
601
+
602
+ ### BYO stubs (advanced)
603
+
604
+ `CalibrationApp.__init__` is keyword-only and accepts the planning stub
605
+ and the depth client as injected dependencies. When the cell-app needs a
606
+ non-standard transport (custom interceptors, an alternate server,
607
+ test fixtures), construct it directly and skip the factory:
608
+
609
+ ```python
610
+ import grpc
611
+ from griip_sdk import CalibrationApp
612
+ from griip_sdk.calibration.config_store import CalibrationConfigStore
613
+ from griip_core.generated import griip_pb2_grpc
614
+ from griip_sdk.hardware.grpc_vision_backend import GrpcVisionServiceBackend, resolve_camera_sources
615
+ from griip_core.perception.grpc_clients import GrpcDepthClient
616
+
617
+ channel = grpc.insecure_channel("custom-host:50051")
618
+
619
+ # vision_backend is the same vention.vision.v1 ABC used everywhere else in the
620
+ # SDK (CameraManager, teleop, ...). See "Bring your own camera" above.
621
+ store = CalibrationConfigStore()
622
+ vision_backend = GrpcVisionServiceBackend("127.0.0.1:41051", "127.0.0.1:10000", calibration_store=store)
623
+ sources = resolve_camera_sources(vision_backend, "left", "right")
624
+
625
+ cal = CalibrationApp(
626
+ cell=cell,
627
+ config_path=cell_yaml_path,
628
+ robot_client=robot_client,
629
+ vision_backend=vision_backend,
630
+ cam_name="luxonis",
631
+ camera_mxid="...",
632
+ sensor=sources.left_source_id,
633
+ secondary_source_id=sources.right_source_id,
634
+ record_sensor=sources.record_sensor,
635
+ store=store,
636
+ calib_data_root="/data/vention/calib_data",
637
+ planning_stub=griip_pb2_grpc.PlanningServiceStub(channel),
638
+ depth_client=GrpcDepthClient(cell.perception.services.envoy),
639
+ )
640
+
641
+ # ...drive the verbs as normal, then close `channel` and unregister the
642
+ # robot when done (the BYO path skips the factory's cleanup).
643
+ ```
644
+
645
+ ### Verbs on `CalibrationApp`
646
+
647
+ | Verb | Effect |
648
+ |---|---|
649
+ | `cal.run_hand_eye_calibration(on_progress=None, is_cancelled=None, on_capture=None, ...)` | Plan to `cell.positions.calibration_joints`, run hand-eye, then return the robot to that start pose. `on_capture` gets each picture the routine takes. Persists `X_cam_flg__{cam}__{mxid}__{sensor}`: the transform under `X_cam_flg`, and the final check's mean translation error under `metrics`. Returns the camera-to-flange `SE3`. Raises `ConfigError` when the YAML field is missing. |
650
+ | `cal.last_hand_eye_calibration_timestamp()` | `datetime` (UTC) of the latest hand-eye, or `None`. |
651
+ | `cal.start_environment_session(save_dir=None)` | Open an operator-driven scan session. Creates the sequence dir, persists post-crop intrinsics, switches robot to freedrive. Returns the sequence dir. |
652
+ | `cal.take_environment_image()` | Capture one frame in the active session (stereo, depth, pose). Robot stays in freedrive. Returns the frame index. |
653
+ | `cal.end_environment_session()` | Restore the robot to normal operation, persist `env_scan__{cam}__{mxid}` pointing at the sequence dir. Returns the sequence dir. |
654
+ | `cal.last_environment_scan_timestamp()` | `datetime` (UTC) of the latest completed scan session, or `None`. |
655
+
656
+ ## Release notes
657
+
658
+ griip-sdk and griip-core release to PyPI only from a `release/griip-X.Y.Z` branch,
659
+ together and at the same version. The branch's first push that changes them
660
+ publishes `X.Y.Z`, and each later one the next patch. A new minor or major is a
661
+ new branch cut from `master`, e.g. `release/griip-2.0.0`.
662
+
663
+ Pull requests and `master` publish dev builds instead, to the separate
664
+ `griip-sdk-dev` and `griip-core-dev` projects, as `<latest release>.dev<CI run>`.
665
+ The CI run summary prints the install command. Uninstall `griip-sdk` first:
666
+ both own the `griip_sdk` import package.
667
+
668
+ The [PyPI release history](https://pypi.org/project/griip-sdk/#history)
669
+ lists every published version. Each page freezes the README and CHANGELOG as of
670
+ that release.