griip-sdk-dev 0.6.0.dev25546__tar.gz → 0.6.0.dev25675__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 (205) hide show
  1. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/.coverage +0 -0
  2. griip_sdk_dev-0.6.0.dev25546/README.md → griip_sdk_dev-0.6.0.dev25675/PKG-INFO +79 -16
  3. griip_sdk_dev-0.6.0.dev25546/PKG-INFO → griip_sdk_dev-0.6.0.dev25675/README.md +46 -49
  4. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/pyproject.toml +3 -3
  5. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/app.py +6 -2
  6. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/external_robot.py +9 -5
  7. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_external_robot.py +19 -5
  8. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/config.py +4 -0
  9. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/recipes.py +14 -12
  10. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_recipes.py +9 -3
  11. griip_sdk_dev-0.6.0.dev25675/src/griip_sdk/hardware/joint_conventions.py +45 -0
  12. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/robot_interface.py +7 -8
  13. griip_sdk_dev-0.6.0.dev25675/src/griip_sdk/hardware/tests/test_joint_conventions.py +29 -0
  14. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/grasp_provider.py +54 -11
  15. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_grasp_provider.py +134 -2
  16. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/types.py +39 -0
  17. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/docs/griip-sdk-consumer-improvements.md +0 -0
  18. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/project.json +0 -0
  19. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/__init__.py +0 -0
  20. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/__init__.py +0 -0
  21. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/apriltag_pose.py +0 -0
  22. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/camera_factory.py +0 -0
  23. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/cartesian_pose.py +0 -0
  24. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/config_store.py +0 -0
  25. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/README.md +0 -0
  26. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/__init__.py +0 -0
  27. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/config/routine.yaml +0 -0
  28. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/core.py +0 -0
  29. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/main.py +0 -0
  30. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/planning.py +0 -0
  31. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/routines.py +0 -0
  32. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/run_hand_eye_calibration.py +0 -0
  33. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/hand_eye_calib/transforms.py +0 -0
  34. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/mqtt_publisher.py +0 -0
  35. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/mqtt_topics.py +0 -0
  36. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/routines.py +0 -0
  37. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/scanning/__init__.py +0 -0
  38. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/scanning/environment_scanning.py +0 -0
  39. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/scanning/run_environment_scanning.py +0 -0
  40. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/__init__.py +0 -0
  41. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/conftest.py +0 -0
  42. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_calibration_app.py +0 -0
  43. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_camera_factory.py +0 -0
  44. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_environment_scanning.py +0 -0
  45. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_hand_eye_calibration_service.py +0 -0
  46. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_hand_eye_helpers.py +0 -0
  47. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/tests/test_transforms.py +0 -0
  48. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/types.py +0 -0
  49. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/calibration/units.py +0 -0
  50. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/__init__.py +0 -0
  51. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/builders.py +0 -0
  52. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/end_effector_collision_model.py +0 -0
  53. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/initialize.py +0 -0
  54. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/loader.py +0 -0
  55. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/mock_builders.py +0 -0
  56. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/parts.py +0 -0
  57. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/__init__.py +0 -0
  58. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/conftest.py +0 -0
  59. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_builders.py +0 -0
  60. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_end_effector_collision_model.py +0 -0
  61. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_initialize.py +0 -0
  62. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_loader.py +0 -0
  63. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_mock_cell_smoke.py +0 -0
  64. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_parts.py +0 -0
  65. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/cell/tests/test_recording_config.py +0 -0
  66. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/errors.py +0 -0
  67. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/grpc_adapters/__init__.py +0 -0
  68. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/grpc_adapters/servicer_as_stub.py +0 -0
  69. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/__init__.py +0 -0
  70. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/bin_shaker.py +0 -0
  71. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/camera.py +0 -0
  72. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/fanuc_robot_client.py +0 -0
  73. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/ft_sensor.py +0 -0
  74. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/gripper.py +0 -0
  75. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/grpc_vision_backend.py +0 -0
  76. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/io_client.py +0 -0
  77. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mmai_vision_backend.py +0 -0
  78. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mocks/__init__.py +0 -0
  79. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mocks/camera_mock.py +0 -0
  80. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mocks/gripper_client_mock.py +0 -0
  81. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mocks/io_client_mock.py +0 -0
  82. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/mocks/robot_client_mock.py +0 -0
  83. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/onrobot_3fg15_gripper.py +0 -0
  84. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/robot_client.py +0 -0
  85. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/robotiq_2f140_gripper.py +0 -0
  86. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/sim_gripper.py +0 -0
  87. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/sim_hand_eye.py +0 -0
  88. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/sim_robot_client.py +0 -0
  89. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/suction_gripper.py +0 -0
  90. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/__init__.py +0 -0
  91. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/conftest.py +0 -0
  92. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_call_with_timeout.py +0 -0
  93. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_command_state_fanout.py +0 -0
  94. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_gripper_command_listeners.py +0 -0
  95. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_grpc_vision_backend.py +0 -0
  96. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_mmai_vision_backend.py +0 -0
  97. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_reset_to_normal.py +0 -0
  98. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_robot_client_base.py +0 -0
  99. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_robot_client_lifecycle.py +0 -0
  100. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_robot_feedback_fanout.py +0 -0
  101. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_robotiq_2f140_gripper.py +0 -0
  102. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_robotiq_gripper_bus_lock.py +0 -0
  103. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_sim_gripper.py +0 -0
  104. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_sim_hand_eye.py +0 -0
  105. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_sim_robot_client.py +0 -0
  106. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_suction_gripper.py +0 -0
  107. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_tower_light.py +0 -0
  108. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_vision_codec.py +0 -0
  109. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tests/test_vrmcs_tcp_guard.py +0 -0
  110. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/torquing_client.py +0 -0
  111. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/tower_light.py +0 -0
  112. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/ur_robot_client.py +0 -0
  113. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/vision_backend.py +0 -0
  114. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/hardware/vision_codec.py +0 -0
  115. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/log_utils.py +0 -0
  116. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/__init__.py +0 -0
  117. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/README.md +0 -0
  118. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/__init__.py +0 -0
  119. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/__main__.py +0 -0
  120. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/_actors.py +0 -0
  121. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/_geometry.py +0 -0
  122. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/editor.py +0 -0
  123. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/object_io.py +0 -0
  124. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/sphere_generation_tool/urdf_io.py +0 -0
  125. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/__init__.py +0 -0
  126. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/conftest.py +0 -0
  127. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/test_editor_math.py +0 -0
  128. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/test_editor_smoke.py +0 -0
  129. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/test_mesh_loading.py +0 -0
  130. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/test_object_io.py +0 -0
  131. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/modeling/tests/test_urdf_io.py +0 -0
  132. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/__init__.py +0 -0
  133. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/bin_cuboid_extraction.py +0 -0
  134. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/bin_picking_manager.py +0 -0
  135. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/bin_state.py +0 -0
  136. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/callbacks.py +0 -0
  137. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/cycle_pause_gate.py +0 -0
  138. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/errors.py +0 -0
  139. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/__init__.py +0 -0
  140. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/grasp_executor.py +0 -0
  141. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/parallel_jaw_executor.py +0 -0
  142. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/suction_executor.py +0 -0
  143. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/tests/__init__.py +0 -0
  144. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/tests/test_parallel_jaw_executor.py +0 -0
  145. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/execution/three_finger_executor.py +0 -0
  146. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/grasp_queue.py +0 -0
  147. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/part_setup.py +0 -0
  148. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/perception_inputs.py +0 -0
  149. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/pick_and_place_manager.py +0 -0
  150. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/pick_generator.py +0 -0
  151. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/placement_planner.py +0 -0
  152. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/planning.py +0 -0
  153. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/proto_conversions.py +0 -0
  154. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/roi_scheduler.py +0 -0
  155. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/scoop_executor.py +0 -0
  156. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/__init__.py +0 -0
  157. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/conftest.py +0 -0
  158. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_bin_picking_manager.py +0 -0
  159. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_bin_state.py +0 -0
  160. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_cycle_pause_gate.py +0 -0
  161. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_part_setup.py +0 -0
  162. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_perception_inputs.py +0 -0
  163. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_phase_collision_spheres.py +0 -0
  164. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_pick_and_place_manager.py +0 -0
  165. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_pick_generator.py +0 -0
  166. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_placement_planner.py +0 -0
  167. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_planning.py +0 -0
  168. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_proto_conversions.py +0 -0
  169. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_scoop_executor.py +0 -0
  170. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/tests/test_trajectory_store.py +0 -0
  171. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/orchestration/trajectory_store.py +0 -0
  172. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/__init__.py +0 -0
  173. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/config/__init__.py +0 -0
  174. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/config/registry.py +0 -0
  175. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/in_process_api.py +0 -0
  176. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/read_tcp.py +0 -0
  177. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/run_environment_scanning.py +0 -0
  178. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/run_hand_eye_calibration.py +0 -0
  179. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/prototyping/run_linear_shuttle.py +0 -0
  180. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/__init__.py +0 -0
  181. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/foxglove_events.py +0 -0
  182. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/foxglove_joint_states.py +0 -0
  183. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/gripper_state_logger.py +0 -0
  184. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/gripper_state_mcap_recording.py +0 -0
  185. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/h264_video_logger.py +0 -0
  186. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/h264_video_mcap_recording.py +0 -0
  187. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/kpi_logger.py +0 -0
  188. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/kpi_mcap_recording.py +0 -0
  189. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/kpi_timer.py +0 -0
  190. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/mcap_recording.py +0 -0
  191. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/memory_utils.py +0 -0
  192. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/robot_state_logger.py +0 -0
  193. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/rotating_mcap_writer.py +0 -0
  194. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_foxglove_event_publisher.py +0 -0
  195. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_foxglove_joint_states.py +0 -0
  196. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_kpi_timer.py +0 -0
  197. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_mcap_foxglove_event_publisher.py +0 -0
  198. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_mcap_gripper_state_logger.py +0 -0
  199. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_mcap_h264_video_logger.py +0 -0
  200. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_mcap_kpi_logger.py +0 -0
  201. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_mcap_robot_state_logger.py +0 -0
  202. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/recording/tests/test_session.py +0 -0
  203. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/tests/__init__.py +0 -0
  204. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/tests/test_log_utils.py +0 -0
  205. {griip_sdk_dev-0.6.0.dev25546 → griip_sdk_dev-0.6.0.dev25675}/src/griip_sdk/tests/test_servicer_as_stub.py +0 -0
@@ -1,3 +1,36 @@
1
+ Metadata-Version: 2.5
2
+ Name: griip-sdk-dev
3
+ Version: 0.6.0.dev25675
4
+ Summary: Dev build of griip-sdk from commit b7b1b2471 (PR #6192). Not a release.
5
+ Author: VentionCo
6
+ License: Proprietary
7
+ Requires-Python: <3.13,>=3.10
8
+ Requires-Dist: defusedxml<0.8.0,>=0.7.1
9
+ Requires-Dist: fastapi[standard]>=0.121.1
10
+ Requires-Dist: foxglove-schemas-protobuf
11
+ Requires-Dist: griip-core-dev==0.5.6.dev25675
12
+ Requires-Dist: grpcio>=1.78.0
13
+ Requires-Dist: httpx[http2]<0.29.0,>=0.28.1
14
+ Requires-Dist: mcap-protobuf-support<1.0,>=0.4.0
15
+ Requires-Dist: mcap<2.0,>=1.3.0
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.72
31
+ Requires-Dist: vention-sim-grpc-py-sdk==0.1.3
32
+ Description-Content-Type: text/markdown
33
+
1
34
  # griip-sdk
2
35
 
3
36
  Hardware control and orchestration for bin picking, by [Vention](https://vention.io).
@@ -276,8 +309,8 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
276
309
  sdk.process("right") # start perception on the "right" picture; it runs during the steps below
277
310
  picked_left = target is not None
278
311
  if picked_left:
279
- move_robot_to(target.approach_pose_mm_deg) # [x, y, z, w, p, r], mm and degrees, as on the pendant
280
- move_linear(target.grasp_pose_mm_deg) # straight in along the tool Z
312
+ move_joints(target.approach_trajectory) # collision-free waypoints to the approach, joint moves, no blending
313
+ move_linear(target.grasp_pose_mm_deg) # straight in along the tool Z ([x, y, z, w, p, r], mm/deg)
281
314
  close_gripper()
282
315
  move_linear(target.approach_pose_mm_deg) # straight back out
283
316
  sdk.capture("left") # new picture of the left pallet for the next round, taken now
@@ -289,7 +322,7 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
289
322
  sdk.process("left") # start perception on the new "left" picture; runs while we pick right
290
323
  picked_right = target is not None
291
324
  if picked_right:
292
- move_robot_to(target.approach_pose_mm_deg)
325
+ move_joints(target.approach_trajectory)
293
326
  move_linear(target.grasp_pose_mm_deg)
294
327
  close_gripper()
295
328
  move_linear(target.approach_pose_mm_deg)
@@ -330,6 +363,23 @@ Each `GraspTarget` answers what a motion-owning app needs to know:
330
363
  scoop can end past the grasp point, so never move to it without a force stop.
331
364
  - `approach_joint_angles` / `grasp_joint_angles` are your robot's IK solutions
332
365
  when it checked the grasp (see below).
366
+ - `approach_trajectory` is a collision-free joint path to the approach: VAMP
367
+ checks the arm plus the gripper and camera spheres against the cell cuboids.
368
+ Run it as joint moves with no blending (FINE): only the straight joint-space
369
+ segments between waypoints are checked, and blending cuts corners nobody
370
+ checked. `sdk.plan(start_joints, goal_joints)` gives the same for any other
371
+ move (to a capture pose, to place). The straight move in to `grasp_pose` and
372
+ the retreat are not planned.
373
+ - Everything the server used for this grasp, so an app running its own
374
+ plunge/scoop never re-reads grasps.json: `plunge_velocity`,
375
+ `scoop_velocity`, `force_torque_sensor_threshold`, `retract_move_distance`,
376
+ and the gripper parameters (`executor_type` is `"parallel_jaw"`, `"suction"`
377
+ or `"three_finger"`; `executor_params` is that message, e.g. `prep_width`,
378
+ `engaged_width`, `grip_check_min_width`, `grip_check_max_width`). Units are
379
+ those of grasps.json.
380
+ - `object_pose_in_world` (and `object_pose_mm_deg`) is the part as perception
381
+ saw it, tilt included; `object_in_tcp` is the part relative to the TCP at
382
+ the end of the scoop.
333
383
 
334
384
  Same `pick.yaml` as a self-driving cell: part, grasps, `tool.tcp_offset`,
335
385
  camera, hand-eye. No `home_bin*` poses are needed; the capture pose is
@@ -343,9 +393,16 @@ this.
343
393
 
344
394
  ### Your own robot (no VRMCS)
345
395
 
346
- When the app owns the robot, say a Fanuc over RMI, set `robot.driver: external`
347
- in `pick.yaml` (`robot.model` names the arm) and pass any object with these
348
- three methods, in pendant units. The SDK opens no connection of its own.
396
+ When the app owns the robot, say a Fanuc over RMI, set it up in `pick.yaml`
397
+ and pass any object with these three methods, in pendant units. The SDK opens
398
+ no connection of its own.
399
+
400
+ ```yaml
401
+ robot:
402
+ driver: external
403
+ model: crx25ia # a robot in the installed vamp-planner wheel
404
+ joint_convention: fanuc # joints in and out as the pendant shows them
405
+ ```
349
406
 
350
407
  ```python
351
408
  class MyRmiRobot:
@@ -357,7 +414,7 @@ class MyRmiRobot:
357
414
  return self._rmi.read_cartesian_position()
358
415
 
359
416
  def get_joint_angles(self) -> list[float]:
360
- # Any units: the SDK only hands them back to inverse_kinematics as the seed.
417
+ # In robot.joint_convention: pendant degrees with `fanuc`.
361
418
  return self._rmi.read_joint_angles()
362
419
 
363
420
  def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
@@ -376,12 +433,18 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
376
433
  calls them between moves. Call them while the arm moves and they need the
377
434
  app's robot lock.
378
435
  - **Calls per `next_target`.** One `get_joint_angles`, then two
379
- `inverse_kinematics` for the grasp it returns (approach, then grasp). Each
380
- skipped candidate adds one or two.
436
+ `inverse_kinematics` for the grasp it returns (approach, then grasp), then
437
+ one path plan on the server (no robot call). Each skipped candidate adds one
438
+ or two IK calls and at most one plan.
381
439
  - **Seeds.** The approach is seeded with the current joints read at the start
382
440
  of that `next_target`; the grasp with the approach solution, the
383
- configuration the arm is in when it starts the straight move. Both come from
384
- your robot, in your units.
441
+ configuration the arm is in when it starts the straight move. The path is
442
+ planned from those same current joints.
443
+ - **Joints.** Every joint list in and out (your methods, the IK solutions, the
444
+ trajectory, `sdk.plan`) is in `robot.joint_convention`. With `fanuc` that is
445
+ pendant degrees and the SDK does the conversion VAMP needs (radians, and
446
+ the pendant's J3, measured from the horizontal, re-expressed relative to
447
+ link 2). The default `model` is URDF radians.
385
448
  - **Errors.** `None` drops that candidate as unreachable. An exception from
386
449
  your robot propagates out of `next_target` and the candidate stays at the
387
450
  front of the queue for the next call.
@@ -389,11 +452,11 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
389
452
  `tool.tcp_offset`, which `sdk.tcp_offset_mm` returns; the active UTool must
390
453
  match it, or use UTool 0 with `target.at_flange(...)`.
391
454
 
392
- With an external robot nothing talks to VRMCS. The server skips its IK,
393
- collision and path-planning stages and sends every grasp that clears the bin
394
- walls; `next_target` drops what your IK can't reach and attaches both
395
- solutions (`approach_joint_angles`, `grasp_joint_angles`). Arm-link collisions
396
- are not checked: approach and retreat safety are the app's.
455
+ With an external robot nothing talks to VRMCS. The server has no IK: it sends
456
+ every grasp that clears the bin walls, and `next_target` drops what your IK
457
+ can't reach or VAMP can't find a collision-free path to, attaching both IK
458
+ solutions and the path. `robot.model` must name a VAMP robot in the installed
459
+ `vamp-planner` wheel.
397
460
 
398
461
  ## Calibration
399
462
 
@@ -1,36 +1,3 @@
1
- Metadata-Version: 2.5
2
- Name: griip-sdk-dev
3
- Version: 0.6.0.dev25546
4
- Summary: Dev build of griip-sdk from commit 0af7ee671 (PR #6192). Not a release.
5
- Author: VentionCo
6
- License: Proprietary
7
- Requires-Python: <3.13,>=3.10
8
- Requires-Dist: defusedxml<0.8.0,>=0.7.1
9
- Requires-Dist: fastapi[standard]>=0.121.1
10
- Requires-Dist: foxglove-schemas-protobuf
11
- Requires-Dist: griip-core-dev==0.5.6.dev25546
12
- Requires-Dist: grpcio>=1.78.0
13
- Requires-Dist: httpx[http2]<0.29.0,>=0.28.1
14
- Requires-Dist: mcap-protobuf-support<1.0,>=0.4.0
15
- Requires-Dist: mcap<2.0,>=1.3.0
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.72
31
- Requires-Dist: vention-sim-grpc-py-sdk==0.1.3
32
- Description-Content-Type: text/markdown
33
-
34
1
  # griip-sdk
35
2
 
36
3
  Hardware control and orchestration for bin picking, by [Vention](https://vention.io).
@@ -309,8 +276,8 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
309
276
  sdk.process("right") # start perception on the "right" picture; it runs during the steps below
310
277
  picked_left = target is not None
311
278
  if picked_left:
312
- move_robot_to(target.approach_pose_mm_deg) # [x, y, z, w, p, r], mm and degrees, as on the pendant
313
- move_linear(target.grasp_pose_mm_deg) # straight in along the tool Z
279
+ move_joints(target.approach_trajectory) # collision-free waypoints to the approach, joint moves, no blending
280
+ move_linear(target.grasp_pose_mm_deg) # straight in along the tool Z ([x, y, z, w, p, r], mm/deg)
314
281
  close_gripper()
315
282
  move_linear(target.approach_pose_mm_deg) # straight back out
316
283
  sdk.capture("left") # new picture of the left pallet for the next round, taken now
@@ -322,7 +289,7 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
322
289
  sdk.process("left") # start perception on the new "left" picture; runs while we pick right
323
290
  picked_right = target is not None
324
291
  if picked_right:
325
- move_robot_to(target.approach_pose_mm_deg)
292
+ move_joints(target.approach_trajectory)
326
293
  move_linear(target.grasp_pose_mm_deg)
327
294
  close_gripper()
328
295
  move_linear(target.approach_pose_mm_deg)
@@ -363,6 +330,23 @@ Each `GraspTarget` answers what a motion-owning app needs to know:
363
330
  scoop can end past the grasp point, so never move to it without a force stop.
364
331
  - `approach_joint_angles` / `grasp_joint_angles` are your robot's IK solutions
365
332
  when it checked the grasp (see below).
333
+ - `approach_trajectory` is a collision-free joint path to the approach: VAMP
334
+ checks the arm plus the gripper and camera spheres against the cell cuboids.
335
+ Run it as joint moves with no blending (FINE): only the straight joint-space
336
+ segments between waypoints are checked, and blending cuts corners nobody
337
+ checked. `sdk.plan(start_joints, goal_joints)` gives the same for any other
338
+ move (to a capture pose, to place). The straight move in to `grasp_pose` and
339
+ the retreat are not planned.
340
+ - Everything the server used for this grasp, so an app running its own
341
+ plunge/scoop never re-reads grasps.json: `plunge_velocity`,
342
+ `scoop_velocity`, `force_torque_sensor_threshold`, `retract_move_distance`,
343
+ and the gripper parameters (`executor_type` is `"parallel_jaw"`, `"suction"`
344
+ or `"three_finger"`; `executor_params` is that message, e.g. `prep_width`,
345
+ `engaged_width`, `grip_check_min_width`, `grip_check_max_width`). Units are
346
+ those of grasps.json.
347
+ - `object_pose_in_world` (and `object_pose_mm_deg`) is the part as perception
348
+ saw it, tilt included; `object_in_tcp` is the part relative to the TCP at
349
+ the end of the scoop.
366
350
 
367
351
  Same `pick.yaml` as a self-driving cell: part, grasps, `tool.tcp_offset`,
368
352
  camera, hand-eye. No `home_bin*` poses are needed; the capture pose is
@@ -376,9 +360,16 @@ this.
376
360
 
377
361
  ### Your own robot (no VRMCS)
378
362
 
379
- When the app owns the robot, say a Fanuc over RMI, set `robot.driver: external`
380
- in `pick.yaml` (`robot.model` names the arm) and pass any object with these
381
- three methods, in pendant units. The SDK opens no connection of its own.
363
+ When the app owns the robot, say a Fanuc over RMI, set it up in `pick.yaml`
364
+ and pass any object with these three methods, in pendant units. The SDK opens
365
+ no connection of its own.
366
+
367
+ ```yaml
368
+ robot:
369
+ driver: external
370
+ model: crx25ia # a robot in the installed vamp-planner wheel
371
+ joint_convention: fanuc # joints in and out as the pendant shows them
372
+ ```
382
373
 
383
374
  ```python
384
375
  class MyRmiRobot:
@@ -390,7 +381,7 @@ class MyRmiRobot:
390
381
  return self._rmi.read_cartesian_position()
391
382
 
392
383
  def get_joint_angles(self) -> list[float]:
393
- # Any units: the SDK only hands them back to inverse_kinematics as the seed.
384
+ # In robot.joint_convention: pendant degrees with `fanuc`.
394
385
  return self._rmi.read_joint_angles()
395
386
 
396
387
  def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
@@ -409,12 +400,18 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
409
400
  calls them between moves. Call them while the arm moves and they need the
410
401
  app's robot lock.
411
402
  - **Calls per `next_target`.** One `get_joint_angles`, then two
412
- `inverse_kinematics` for the grasp it returns (approach, then grasp). Each
413
- skipped candidate adds one or two.
403
+ `inverse_kinematics` for the grasp it returns (approach, then grasp), then
404
+ one path plan on the server (no robot call). Each skipped candidate adds one
405
+ or two IK calls and at most one plan.
414
406
  - **Seeds.** The approach is seeded with the current joints read at the start
415
407
  of that `next_target`; the grasp with the approach solution, the
416
- configuration the arm is in when it starts the straight move. Both come from
417
- your robot, in your units.
408
+ configuration the arm is in when it starts the straight move. The path is
409
+ planned from those same current joints.
410
+ - **Joints.** Every joint list in and out (your methods, the IK solutions, the
411
+ trajectory, `sdk.plan`) is in `robot.joint_convention`. With `fanuc` that is
412
+ pendant degrees and the SDK does the conversion VAMP needs (radians, and
413
+ the pendant's J3, measured from the horizontal, re-expressed relative to
414
+ link 2). The default `model` is URDF radians.
418
415
  - **Errors.** `None` drops that candidate as unreachable. An exception from
419
416
  your robot propagates out of `next_target` and the candidate stays at the
420
417
  front of the queue for the next call.
@@ -422,11 +419,11 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
422
419
  `tool.tcp_offset`, which `sdk.tcp_offset_mm` returns; the active UTool must
423
420
  match it, or use UTool 0 with `target.at_flange(...)`.
424
421
 
425
- With an external robot nothing talks to VRMCS. The server skips its IK,
426
- collision and path-planning stages and sends every grasp that clears the bin
427
- walls; `next_target` drops what your IK can't reach and attaches both
428
- solutions (`approach_joint_angles`, `grasp_joint_angles`). Arm-link collisions
429
- are not checked: approach and retreat safety are the app's.
422
+ With an external robot nothing talks to VRMCS. The server has no IK: it sends
423
+ every grasp that clears the bin walls, and `next_target` drops what your IK
424
+ can't reach or VAMP can't find a collision-free path to, attaching both IK
425
+ solutions and the path. `robot.model` must name a VAMP robot in the installed
426
+ `vamp-planner` wheel.
430
427
 
431
428
  ## Calibration
432
429
 
@@ -2,12 +2,12 @@ dependency-groups = { }
2
2
 
3
3
  [project]
4
4
  name = "griip-sdk-dev"
5
- version = "0.6.0.dev25546"
6
- description = "Dev build of griip-sdk from commit 0af7ee671 (PR #6192). Not a release."
5
+ version = "0.6.0.dev25675"
6
+ description = "Dev build of griip-sdk from commit b7b1b2471 (PR #6192). Not a release."
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10,<3.13"
9
9
  dependencies = [
10
- "griip-core-dev==0.5.6.dev25546",
10
+ "griip-core-dev==0.5.6.dev25675",
11
11
  "grpcio>=1.78.0",
12
12
  "numpy>=1.24",
13
13
  "protobuf>=4.0",
@@ -57,6 +57,7 @@ from griip_core.robot_drivers import EXTERNAL_ROBOT_DRIVER
57
57
  from griip_core.generated import griip_pb2_grpc
58
58
  from griip_sdk.grpc_adapters.servicer_as_stub import ServicerAsStub
59
59
  from griip_sdk.hardware.robot_client import VrmcsRobotClient, build_vrmcs_client
60
+ from griip_sdk.hardware.joint_conventions import joint_convention
60
61
  from griip_sdk.hardware.robot_interface import CalibrationRobot
61
62
  from griip_sdk.hardware.vision_backend import VisionServiceBackend
62
63
 
@@ -579,7 +580,7 @@ def build_calibration_app(
579
580
  ``external``. Nothing talks to VRMCS: reads, IK and path execution
580
581
  go through it, and VAMP plans in-process for ``robot.model`` in
581
582
  either API mode, since the server has no planner for such a robot.
582
- Joints are radians in the robot model's convention.
583
+ Joints are in ``robot.joint_convention``.
583
584
  """
584
585
  resolved_path = Path(cell_yaml).expanduser().resolve()
585
586
  cell = load_cell_config(resolved_path)
@@ -598,7 +599,10 @@ def build_calibration_app(
598
599
  if robot is not None:
599
600
  app_tcp_offset = cell.tool.tcp_offset if cell.tool is not None else [0.0, 0.0, 0.0]
600
601
  # Duck-typed stand-in for the slice of VrmcsRobotClient calibration uses.
601
- robot_client = cast(VrmcsRobotClient, ExternalCalibrationRobotClient(robot, app_tcp_offset))
602
+ robot_client = cast(
603
+ VrmcsRobotClient,
604
+ ExternalCalibrationRobotClient(robot, app_tcp_offset, joint_convention(cell.robot.joint_convention)),
605
+ )
602
606
  else:
603
607
  robot_client = build_vrmcs_client(resolved_path, cell)
604
608
  grpc_channel: grpc.Channel | None = None
@@ -6,7 +6,8 @@
6
6
  planning and the solve are unchanged; only reads, IK and execution go through
7
7
  the app. The app's poses are at the TCP ``tool.tcp_offset``; the routines work
8
8
  at the flange plus whatever offset they set, so poses are re-expressed on the
9
- way in and out.
9
+ way in and out. Joints are converted between the app's ``robot.joint_convention``
10
+ and the model's, which the routines and VAMP use.
10
11
  """
11
12
 
12
13
  from __future__ import annotations
@@ -17,14 +18,16 @@ from typing import Any, Callable, Optional
17
18
  import numpy as np
18
19
  from spatialmath import SE3, UnitQuaternion
19
20
 
21
+ from griip_sdk.hardware.joint_conventions import JointConvention
20
22
  from griip_sdk.hardware.robot_interface import CalibrationRobot, mm_deg_to_se3, se3_to_mm_deg
21
23
 
22
24
  logger = logging.getLogger(__name__)
23
25
 
24
26
 
25
27
  class ExternalCalibrationRobotClient:
26
- def __init__(self, robot: CalibrationRobot, app_tcp_offset: list[float]) -> None:
28
+ def __init__(self, robot: CalibrationRobot, app_tcp_offset: list[float], joints: JointConvention) -> None:
27
29
  self._robot = robot
30
+ self._joints = joints
28
31
  self._app_tcp_in_flange = SE3.Trans(app_tcp_offset)
29
32
  # The TCP the routines ask for, relative to the flange; identity = the flange.
30
33
  self.X_tcp_flg = SE3()
@@ -46,7 +49,7 @@ class ExternalCalibrationRobotClient:
46
49
  raise NotImplementedError("freedrive is not available on an external robot; jog it from the app or the pendant")
47
50
 
48
51
  def get_joint_angles(self) -> list[float]:
49
- return list(self._robot.get_joint_angles())
52
+ return self._joints.to_model(self._robot.get_joint_angles())
50
53
 
51
54
  def get_commanded_joint_angles(self) -> list[float]:
52
55
  return self.get_joint_angles()
@@ -73,7 +76,8 @@ class ExternalCalibrationRobotClient:
73
76
  solutions: list[list[list[float]]] = []
74
77
  for tcp_pose in poses:
75
78
  app_tcp_pose = tcp_pose @ self.X_tcp_flg.inv() @ self._app_tcp_in_flange
76
- solution = self._robot.inverse_kinematics(se3_to_mm_deg(app_tcp_pose), list(seed))
79
+ app_solution = self._robot.inverse_kinematics(se3_to_mm_deg(app_tcp_pose), self._joints.from_model(list(seed)))
80
+ solution = None if app_solution is None else self._joints.to_model(app_solution)
77
81
  if solution is not None and joint_deviation_degrees is not None:
78
82
  deviation = np.abs(np.array(solution) - np.array(seed))
79
83
  if np.any(deviation > np.radians(joint_deviation_degrees)):
@@ -102,6 +106,6 @@ class ExternalCalibrationRobotClient:
102
106
  cancel_callback: Optional[Callable[[], bool]] = None,
103
107
  ) -> tuple[None, bool]:
104
108
  # The app times the path itself; the scaling factors are the SDK's own executor's.
105
- if not self._robot.execute_joint_path([list(waypoint) for waypoint in trajectory_waypoints]):
109
+ if not self._robot.execute_joint_path([self._joints.from_model(list(waypoint)) for waypoint in trajectory_waypoints]):
106
110
  raise RuntimeError("the app's robot did not complete the calibration path")
107
111
  return None, False
@@ -9,6 +9,7 @@ import pytest
9
9
  from spatialmath import SE3
10
10
 
11
11
  from griip_sdk.calibration.external_robot import ExternalCalibrationRobotClient
12
+ from griip_sdk.hardware.joint_conventions import FanucJoints, ModelJoints
12
13
  from griip_sdk.hardware.robot_interface import mm_deg_to_se3, se3_to_mm_deg
13
14
  from griip_sdk.orchestration.proto_conversions import se3_to_pose_7_list
14
15
 
@@ -39,7 +40,7 @@ class _FakeCalibrationRobot:
39
40
 
40
41
 
41
42
  def test_reads_the_flange_plus_the_offset_the_routine_sets() -> None:
42
- client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET)
43
+ client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET, ModelJoints())
43
44
  np.testing.assert_allclose(client.get_TCP_pose().A, FLANGE_IN_WORLD.A, atol=1e-9)
44
45
 
45
46
  client.set_tcp_offset(SE3.Trans(0.0, 0.0, 0.3))
@@ -48,7 +49,7 @@ def test_reads_the_flange_plus_the_offset_the_routine_sets() -> None:
48
49
 
49
50
  def test_ik_asks_the_app_for_its_own_tcp() -> None:
50
51
  robot = _FakeCalibrationRobot()
51
- client = ExternalCalibrationRobotClient(robot, APP_TCP_OFFSET)
52
+ client = ExternalCalibrationRobotClient(robot, APP_TCP_OFFSET, ModelJoints())
52
53
  client.set_tcp_offset(SE3.Trans(0.0, 0.0, 0.3))
53
54
  target_at_routine_tcp = FLANGE_IN_WORLD @ SE3.Trans(0.0, 0.0, 0.3)
54
55
 
@@ -59,7 +60,7 @@ def test_ik_asks_the_app_for_its_own_tcp() -> None:
59
60
 
60
61
 
61
62
  def test_ik_outside_the_joint_window_is_rejected() -> None:
62
- client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET)
63
+ client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET, ModelJoints())
63
64
 
64
65
  successes, solutions = client.compute_inverse_kinematics(
65
66
  [FLANGE_IN_WORLD], seed_joint_positions=JOINTS, joint_deviation_degrees=[0.1] * 6
@@ -70,7 +71,7 @@ def test_ik_outside_the_joint_window_is_rejected() -> None:
70
71
 
71
72
  def test_execute_trajectory_hands_the_path_to_the_app_and_raises_when_it_fails() -> None:
72
73
  robot = _FakeCalibrationRobot()
73
- client = ExternalCalibrationRobotClient(robot, APP_TCP_OFFSET)
74
+ client = ExternalCalibrationRobotClient(robot, APP_TCP_OFFSET, ModelJoints())
74
75
  client.execute_trajectory([JOINTS, JOINTS])
75
76
  assert robot.paths == [[JOINTS, JOINTS]]
76
77
 
@@ -80,9 +81,22 @@ def test_execute_trajectory_hands_the_path_to_the_app_and_raises_when_it_fails()
80
81
 
81
82
 
82
83
  def test_vrmcs_only_verbs_are_no_ops_and_freedrive_is_refused() -> None:
83
- client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET)
84
+ client = ExternalCalibrationRobotClient(_FakeCalibrationRobot(), APP_TCP_OFFSET, ModelJoints())
84
85
  client.reset_to_normal()
85
86
  client.release_registration()
86
87
  assert client.in_normal_operation_state() is True
87
88
  with pytest.raises(NotImplementedError, match="freedrive"):
88
89
  client.set_to_freedrive()
90
+
91
+
92
+ def test_fanuc_robot_speaks_pendant_degrees_to_the_app() -> None:
93
+ robot = _FakeCalibrationRobot()
94
+ fanuc_joints = [10.0, 20.0, -30.0, 0.0, 45.0, 90.0]
95
+ robot.get_joint_angles = lambda: list(fanuc_joints) # type: ignore[method-assign]
96
+ client = ExternalCalibrationRobotClient(robot, APP_TCP_OFFSET, FanucJoints())
97
+
98
+ model_joints = client.get_joint_angles()
99
+ client.execute_trajectory([model_joints])
100
+
101
+ assert model_joints == pytest.approx(FanucJoints().to_model(fanuc_joints))
102
+ assert robot.paths[0][0] == pytest.approx(fanuc_joints)
@@ -4,6 +4,7 @@ from typing import Literal
4
4
 
5
5
  from pydantic import BaseModel, ConfigDict, Field, model_validator
6
6
 
7
+ from griip_sdk.hardware.joint_conventions import JointConventionName
7
8
  from griip_sdk.recording.foxglove_events import FoxgloveEventSink
8
9
 
9
10
 
@@ -70,6 +71,9 @@ class RobotConfig(BaseConfigModel):
70
71
  return self
71
72
 
72
73
  robot_ip: str = "127.0.0.1"
74
+ # Joints an app-owned robot (driver: external) reports and expects: "model"
75
+ # (URDF radians) or "fanuc" (pendant degrees, J3 from the horizontal).
76
+ joint_convention: JointConventionName = "model"
73
77
  reset_vrmcs_on_init: bool = False
74
78
  expect_registered: bool = False
75
79
  allow_registration_recovery: bool = True
@@ -46,6 +46,7 @@ from griip_sdk.cell.mock_builders import (
46
46
  )
47
47
  from griip_sdk.hardware.grpc_vision_backend import vision_backend_from_camera_config
48
48
  from griip_sdk.hardware.gripper import BaseGripper
49
+ from griip_sdk.hardware.joint_conventions import joint_convention
49
50
  from griip_sdk.hardware.robot_interface import GraspRobot, VrmcsGraspRobot
50
51
  from griip_sdk.hardware.mocks.gripper_client_mock import MockGripperClient
51
52
  from griip_sdk.hardware.tower_light import TowerLight
@@ -406,16 +407,14 @@ def _build_cell_context(
406
407
  gripper_collision_spheres = collision_spheres_to_flat(
407
408
  resolved_collision_model.get_spheres(include_tip=True, finger_opening_width_m=closed_width_m)
408
409
  )
409
- # An app-owned robot has no server-side planner to configure.
410
- if robot_config.get("driver") != EXTERNAL_ROBOT_DRIVER:
411
- cast(Any, planning_stub).ConfigurePlanner(
412
- pb.ConfigurePlannerRequest(
413
- cuboids_path=cuboids_path,
414
- robot_model=robot_model,
415
- gripper_collision_spheres=collision_spheres_to_proto(gripper_collision_spheres),
416
- tcp_to_camera_transform=se3_to_pose_list(tcp_to_camera),
417
- )
410
+ cast(Any, planning_stub).ConfigurePlanner(
411
+ pb.ConfigurePlannerRequest(
412
+ cuboids_path=cuboids_path,
413
+ robot_model=robot_model,
414
+ gripper_collision_spheres=collision_spheres_to_proto(gripper_collision_spheres),
415
+ tcp_to_camera_transform=se3_to_pose_list(tcp_to_camera),
418
416
  )
417
+ )
419
418
  if verify_home_collision_free and raw_planning_api is not None:
420
419
  _run_home_collision_sanity_check(raw_planning_api, cell_config.get("positions", {}))
421
420
 
@@ -840,9 +839,9 @@ def build_grasp_provider(
840
839
  off-cell development.
841
840
 
842
841
  With ``robot.driver: external`` in the cell YAML the app owns the robot and
843
- must pass ``robot``, its own :class:`GraspRobot`. Nothing talks to VRMCS,
844
- the server skips IK and planning, and ``next_target`` only hands out grasps
845
- ``robot.inverse_kinematics`` can reach. Otherwise the VRMCS client is the
842
+ must pass ``robot``, its own :class:`GraspRobot`. Nothing talks to VRMCS:
843
+ ``next_target`` only hands out grasps ``robot.inverse_kinematics`` can reach
844
+ and VAMP finds a collision-free path to. Otherwise the VRMCS client is the
846
845
  robot.
847
846
  """
848
847
  loaded_cell_config = load_runtime_cell_config(Path(config_path).resolve())
@@ -877,9 +876,12 @@ def build_grasp_provider(
877
876
 
878
877
  provider = GraspProvider(
879
878
  picking_stub=context.picking_stub,
879
+ planning_stub=context.planning_stub,
880
880
  camera_manager=cast("CameraManager", context.camera_manager),
881
881
  robot=robot,
882
882
  check_reachability=robot_is_external,
883
+ # VRMCS clients already report model joints.
884
+ joints=joint_convention(loaded_cell_config.get("robot", {}).get("joint_convention", "model") if robot_is_external else "model"),
883
885
  tcp_to_camera=context.tcp_to_camera,
884
886
  tcp_to_flange=tcp_to_flange,
885
887
  camera_intrinsics_flat=context.camera_intrinsics_flat,
@@ -20,6 +20,7 @@ import pytest
20
20
 
21
21
  from griip_core.robot_drivers import EXTERNAL_ROBOT_DRIVER
22
22
  from griip_sdk.cell import recipes
23
+ from griip_sdk.hardware.joint_conventions import FanucJoints
23
24
  from griip_sdk.cell.builders import load_runtime_cell_config
24
25
  from griip_sdk.cell.recipes import _build_cell_context, build_bin_picking_manager, build_grasp_provider
25
26
  from griip_sdk.orchestration.callbacks import PickAndPlaceCallbacks
@@ -146,7 +147,7 @@ def test_build_grasp_provider_mock_mode_yields_provider_with_configured_bins() -
146
147
  def _timken_config_with_external_robot(monkeypatch: pytest.MonkeyPatch) -> list[Any]:
147
148
  """Point the recipe at the Timken cell with ``robot.driver: external``; returns the ConfigurePlanner calls."""
148
149
  cell_config = load_runtime_cell_config(TIMKEN_CONFIG_PATH)
149
- cell_config["robot"] = {**cell_config["robot"], "driver": EXTERNAL_ROBOT_DRIVER}
150
+ cell_config["robot"] = {**cell_config["robot"], "driver": EXTERNAL_ROBOT_DRIVER, "joint_convention": "fanuc"}
150
151
  monkeypatch.setattr(recipes, "load_runtime_cell_config", lambda _path: cell_config)
151
152
  configure_planner_calls: list[Any] = []
152
153
 
@@ -169,7 +170,7 @@ def test_build_grasp_provider_external_robot_requires_the_apps_robot(monkeypatch
169
170
  pass
170
171
 
171
172
 
172
- def test_build_grasp_provider_external_robot_uses_it_and_skips_the_planner(monkeypatch: pytest.MonkeyPatch) -> None:
173
+ def test_build_grasp_provider_external_robot_uses_it_and_configures_the_planner(monkeypatch: pytest.MonkeyPatch) -> None:
173
174
  configure_planner_calls = _timken_config_with_external_robot(monkeypatch)
174
175
  robot = MagicMock()
175
176
  robot.get_tcp_pose.return_value = [400.0, 0.0, 300.0, 180.0, 0.0, 0.0]
@@ -179,7 +180,8 @@ def test_build_grasp_provider_external_robot_uses_it_and_skips_the_planner(monke
179
180
  provider.capture("left")
180
181
 
181
182
  robot.get_tcp_pose.assert_called_once()
182
- assert configure_planner_calls == []
183
+ assert isinstance(provider._joints, FanucJoints)
184
+ assert len(configure_planner_calls) == 1 # VAMP still plans collision-free paths for an app-owned robot
183
185
 
184
186
 
185
187
  def test_build_cell_context_without_gripper_never_resolves_or_activates_one(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -192,3 +194,7 @@ def test_build_cell_context_without_gripper_never_resolves_or_activates_one(monk
192
194
  assert isinstance(context.gripper_client, MockGripperClient)
193
195
  finally:
194
196
  context.close()
197
+
198
+
199
+ def test_joint_convention_survives_config_loading() -> None:
200
+ assert load_runtime_cell_config(TIMKEN_CONFIG_PATH)["robot"]["joint_convention"] == "model"
@@ -0,0 +1,45 @@
1
+ """Joint conventions an app-owned robot can speak, and their conversion to the model's.
2
+
3
+ VAMP plans in the robot model's (URDF) joints, radians. ``model`` passes joints
4
+ through unchanged. ``fanuc`` is what the pendant and RMI report: degrees, with
5
+ J3 measured from the horizontal (the J2/J3 interaction) where the model measures
6
+ it from link 2, so model J3 = Fanuc J3 + J2. Same mapping as VRMCS's Fanuc
7
+ driver (``from_fanuc_joints``).
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import math
13
+ from typing import Literal, Protocol
14
+
15
+ JointConventionName = Literal["model", "fanuc"]
16
+
17
+
18
+ class JointConvention(Protocol):
19
+ def to_model(self, joint_angles: list[float]) -> list[float]: ...
20
+
21
+ def from_model(self, joint_angles: list[float]) -> list[float]: ...
22
+
23
+
24
+ class ModelJoints:
25
+ def to_model(self, joint_angles: list[float]) -> list[float]:
26
+ return list(joint_angles)
27
+
28
+ def from_model(self, joint_angles: list[float]) -> list[float]:
29
+ return list(joint_angles)
30
+
31
+
32
+ class FanucJoints:
33
+ def to_model(self, joint_angles: list[float]) -> list[float]:
34
+ model_joint_angles = [math.radians(angle) for angle in joint_angles]
35
+ model_joint_angles[2] += model_joint_angles[1]
36
+ return model_joint_angles
37
+
38
+ def from_model(self, joint_angles: list[float]) -> list[float]:
39
+ fanuc_joint_angles = list(joint_angles)
40
+ fanuc_joint_angles[2] -= fanuc_joint_angles[1]
41
+ return [math.degrees(angle) for angle in fanuc_joint_angles]
42
+
43
+
44
+ def joint_convention(name: JointConventionName) -> JointConvention:
45
+ return FanucJoints() if name == "fanuc" else ModelJoints()