griip-sdk-dev 0.4.0.dev24238__tar.gz → 0.6.0.dev25643__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.
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/.coverage +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/PKG-INFO +121 -33
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/README.md +115 -28
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/project.json +3 -2
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/pyproject.toml +6 -5
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/__init__.py +3 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/app.py +26 -4
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/camera_factory.py +3 -3
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/calibration/external_robot.py +107 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_calibration_app.py +31 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_environment_scanning.py +0 -1
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/calibration/tests/test_external_robot.py +88 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/builders.py +21 -15
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/config.py +1 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/mock_builders.py +3 -1
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/recipes.py +47 -19
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_recipes.py +42 -4
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/camera.py +8 -8
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/fanuc_robot_client.py +54 -52
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/grpc_vision_backend.py +4 -4
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mmai_vision_backend.py +2 -2
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/robot_client.py +141 -34
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/hardware/robot_interface.py +79 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/sim_gripper.py +6 -89
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/sim_hand_eye.py +22 -16
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_grpc_vision_backend.py +4 -4
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/hardware/tests/test_robot_client_base.py +151 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_sim_hand_eye.py +44 -20
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_sim_robot_client.py +4 -6
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/ur_robot_client.py +2 -1
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/hardware/vision_backend.py +7 -0
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/orchestration/bin_picking_manager.py +586 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/bin_state.py +20 -10
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/cycle_pause_gate.py +2 -2
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/grasp_provider.py +116 -27
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/perception_inputs.py +1 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/pick_and_place_manager.py +9 -6
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/placement_planner.py +8 -2
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/planning.py +10 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_bin_picking_manager.py +66 -17
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_bin_state.py +11 -11
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/orchestration/tests/test_grasp_provider.py +523 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_placement_planner.py +29 -2
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_planning.py +48 -0
- griip_sdk_dev-0.6.0.dev25643/src/griip_sdk/orchestration/tests/test_trajectory_store.py +27 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/trajectory_store.py +7 -4
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/types.py +72 -23
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/read_tcp.py +1 -1
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/run_linear_shuttle.py +4 -8
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/foxglove_events.py +2 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_mcap_robot_state_logger.py +1 -3
- griip_sdk_dev-0.4.0.dev24238/coverage.xml +0 -23585
- griip_sdk_dev-0.4.0.dev24238/src/griip_sdk/hardware/tests/test_robot_client_base.py +0 -48
- griip_sdk_dev-0.4.0.dev24238/src/griip_sdk/orchestration/bin_picking_manager.py +0 -580
- griip_sdk_dev-0.4.0.dev24238/src/griip_sdk/orchestration/tests/test_grasp_provider.py +0 -307
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/docs/griip-sdk-consumer-improvements.md +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/apriltag_pose.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/cartesian_pose.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/config_store.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/README.md +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/config/routine.yaml +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/core.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/main.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/planning.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/routines.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/run_hand_eye_calibration.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/hand_eye_calib/transforms.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/mqtt_publisher.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/mqtt_topics.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/routines.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/scanning/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/scanning/environment_scanning.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/scanning/run_environment_scanning.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/conftest.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_camera_factory.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_hand_eye_calibration_service.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_hand_eye_helpers.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/tests/test_transforms.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/types.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/units.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/end_effector_collision_model.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/initialize.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/loader.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/parts.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/conftest.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_builders.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_end_effector_collision_model.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_initialize.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_loader.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_mock_cell_smoke.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_parts.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/cell/tests/test_recording_config.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/errors.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/grpc_adapters/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/grpc_adapters/servicer_as_stub.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/bin_shaker.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/ft_sensor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/io_client.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mocks/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mocks/camera_mock.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mocks/gripper_client_mock.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mocks/io_client_mock.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/mocks/robot_client_mock.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/onrobot_3fg15_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/robotiq_2f140_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/sim_robot_client.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/suction_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/conftest.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_call_with_timeout.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_command_state_fanout.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_gripper_command_listeners.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_mmai_vision_backend.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_reset_to_normal.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_robot_client_lifecycle.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_robot_feedback_fanout.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_robotiq_2f140_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_robotiq_gripper_bus_lock.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_sim_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_suction_gripper.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_tower_light.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_vision_codec.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tests/test_vrmcs_tcp_guard.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/torquing_client.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/tower_light.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/hardware/vision_codec.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/log_utils.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/README.md +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/__main__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/_actors.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/_geometry.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/editor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/object_io.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/sphere_generation_tool/urdf_io.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/conftest.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/test_editor_math.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/test_editor_smoke.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/test_mesh_loading.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/test_object_io.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/modeling/tests/test_urdf_io.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/bin_cuboid_extraction.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/callbacks.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/errors.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/grasp_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/parallel_jaw_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/suction_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/tests/test_parallel_jaw_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/execution/three_finger_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/grasp_queue.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/part_setup.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/pick_generator.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/proto_conversions.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/roi_scheduler.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/scoop_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/conftest.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_cycle_pause_gate.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_part_setup.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_perception_inputs.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_phase_collision_spheres.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_pick_and_place_manager.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_pick_generator.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_proto_conversions.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/orchestration/tests/test_scoop_executor.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/config/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/config/registry.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/in_process_api.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/run_environment_scanning.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/prototyping/run_hand_eye_calibration.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/foxglove_joint_states.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/gripper_state_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/gripper_state_mcap_recording.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/h264_video_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/h264_video_mcap_recording.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/kpi_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/kpi_mcap_recording.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/kpi_timer.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/mcap_recording.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/memory_utils.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/robot_state_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/rotating_mcap_writer.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_foxglove_event_publisher.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_foxglove_joint_states.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_kpi_timer.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_mcap_foxglove_event_publisher.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_mcap_gripper_state_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_mcap_h264_video_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_mcap_kpi_logger.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/recording/tests/test_session.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/tests/__init__.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/tests/test_log_utils.py +0 -0
- {griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/tests/test_servicer_as_stub.py +0 -0
|
Binary file
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: griip-sdk-dev
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Dev build of griip-sdk from commit
|
|
3
|
+
Version: 0.6.0.dev25643
|
|
4
|
+
Summary: Dev build of griip-sdk from commit da01d1026 (PR #6192). Not a release.
|
|
5
5
|
Author: VentionCo
|
|
6
6
|
License: Proprietary
|
|
7
|
-
Requires-Python: <3.
|
|
7
|
+
Requires-Python: <3.13,>=3.10
|
|
8
8
|
Requires-Dist: defusedxml<0.8.0,>=0.7.1
|
|
9
9
|
Requires-Dist: fastapi[standard]>=0.121.1
|
|
10
10
|
Requires-Dist: foxglove-schemas-protobuf
|
|
11
|
-
Requires-Dist: griip-core
|
|
11
|
+
Requires-Dist: griip-core-dev==0.5.6.dev25643
|
|
12
12
|
Requires-Dist: grpcio>=1.78.0
|
|
13
13
|
Requires-Dist: httpx[http2]<0.29.0,>=0.28.1
|
|
14
14
|
Requires-Dist: mcap-protobuf-support<1.0,>=0.4.0
|
|
@@ -27,7 +27,8 @@ Requires-Dist: spatialmath-python<2.0.0,>=1.1.15
|
|
|
27
27
|
Requires-Dist: toppra<=0.6.3,>=0.6.0
|
|
28
28
|
Requires-Dist: trimesh<5.0,>=4.11
|
|
29
29
|
Requires-Dist: urchin<0.0.31,>=0.0.30
|
|
30
|
-
Requires-Dist: vention-grpc-py-sdk
|
|
30
|
+
Requires-Dist: vention-grpc-py-sdk>=0.0.72
|
|
31
|
+
Requires-Dist: vention-sim-grpc-py-sdk==0.1.3
|
|
31
32
|
Description-Content-Type: text/markdown
|
|
32
33
|
|
|
33
34
|
# griip-sdk
|
|
@@ -289,12 +290,12 @@ hardware connections.
|
|
|
289
290
|
|
|
290
291
|
For a cell where the application moves the robot itself. The SDK takes and
|
|
291
292
|
stores pictures, runs perception on a stored picture when asked, and keeps
|
|
292
|
-
one queue of ranked
|
|
293
|
+
one queue of ranked grasps. It never commands motion.
|
|
293
294
|
|
|
294
295
|
```python
|
|
295
296
|
from griip_sdk import build_grasp_provider
|
|
296
297
|
|
|
297
|
-
with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
298
|
+
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
298
299
|
# First round: one picture of each pallet, then start on the left.
|
|
299
300
|
move_robot_to(LEFT_CAPTURE_POSE) # your motion
|
|
300
301
|
sdk.capture("left") # take a picture now, store it as "left"
|
|
@@ -304,29 +305,27 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
|
304
305
|
|
|
305
306
|
while True:
|
|
306
307
|
# Left pallet
|
|
307
|
-
target = sdk.next_target() # wait for the "left" run, pop its best
|
|
308
|
+
target = sdk.next_target() # wait for the "left" run, pop its best reachable grasp; None = nothing graspable
|
|
308
309
|
sdk.process("right") # start perception on the "right" picture; it runs during the steps below
|
|
309
310
|
picked_left = target is not None
|
|
310
311
|
if picked_left:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
move_robot_to(pose)
|
|
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)
|
|
314
314
|
close_gripper()
|
|
315
|
-
|
|
315
|
+
move_linear(target.approach_pose_mm_deg) # straight back out
|
|
316
316
|
sdk.capture("left") # new picture of the left pallet for the next round, taken now
|
|
317
317
|
move_robot_to(PLACE_POSE)
|
|
318
318
|
open_gripper()
|
|
319
319
|
|
|
320
320
|
# Right pallet
|
|
321
|
-
target = sdk.next_target() # wait for the "right" run, pop its best
|
|
321
|
+
target = sdk.next_target() # wait for the "right" run, pop its best reachable grasp
|
|
322
322
|
sdk.process("left") # start perception on the new "left" picture; runs while we pick right
|
|
323
323
|
picked_right = target is not None
|
|
324
324
|
if picked_right:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
move_robot_to(pose)
|
|
325
|
+
move_joints(target.approach_trajectory)
|
|
326
|
+
move_linear(target.grasp_pose_mm_deg)
|
|
328
327
|
close_gripper()
|
|
329
|
-
|
|
328
|
+
move_linear(target.approach_pose_mm_deg)
|
|
330
329
|
sdk.capture("right") # new picture of the right pallet for the next round
|
|
331
330
|
move_robot_to(PLACE_POSE)
|
|
332
331
|
open_gripper()
|
|
@@ -335,12 +334,12 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
|
335
334
|
break # both pallets came back empty
|
|
336
335
|
```
|
|
337
336
|
|
|
338
|
-
Five verbs. `capture(tag)` stores a picture with the robot pose at
|
|
339
|
-
moment, so park the robot first; the tag is any string you choose, one
|
|
337
|
+
Five verbs. `capture(tag)` stores a picture with the robot pose and joints at
|
|
338
|
+
that moment, so park the robot first; the tag is any string you choose, one
|
|
340
339
|
stored picture per tag. `captures()` lists the stored pictures, `delete(tag)`
|
|
341
340
|
removes one. `process(tag)` runs perception on a stored picture in the
|
|
342
341
|
background, one image at a time. `next_target(timeout=None)` waits for
|
|
343
|
-
in-flight runs and pops the best
|
|
342
|
+
in-flight runs and pops the best grasp; it returns `None` when the last
|
|
344
343
|
picture had nothing graspable, when the run failed (`captures()` carries the
|
|
345
344
|
state and the reason), or on timeout.
|
|
346
345
|
|
|
@@ -350,22 +349,41 @@ picture is dropped.
|
|
|
350
349
|
|
|
351
350
|
Each `GraspTarget` answers what a motion-owning app needs to know:
|
|
352
351
|
|
|
353
|
-
- `capture_tag` says which picture, and therefore which pallet, it came from
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
352
|
+
- `capture_tag` says which picture, and therefore which pallet, it came from;
|
|
353
|
+
`object_index` which part in it. Several grasps can come back per part.
|
|
354
|
+
- `approach_pose` is where to go first; `grasp_pose` is where the gripper
|
|
355
|
+
closes, `approach_offset` (from the grasp definition) further along the tool
|
|
356
|
+
Z. Both are TCP poses in the robot base frame. `approach_pose_mm_deg` /
|
|
357
|
+
`grasp_pose_mm_deg` give them as `[x, y, z, w, p, r]`: millimetres, and
|
|
358
|
+
degrees about X, Y then Z, the pendant convention. The `SE3` forms stay in
|
|
359
|
+
metres for code that composes transforms.
|
|
360
|
+
- `at_flange(pose)` converts either one for a controller whose TCP is the
|
|
361
|
+
flange (`tool.tcp_offset` is returned as `tcp_offset`).
|
|
362
|
+
- `plunge_pose` / `scoop_pose` are the SDK's own guarded-scoop phases. The
|
|
363
|
+
scoop can end past the grasp point, so never move to it without a force stop.
|
|
364
|
+
- `approach_joint_angles` / `grasp_joint_angles` are your robot's IK solutions
|
|
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.
|
|
364
383
|
|
|
365
384
|
Same `pick.yaml` as a self-driving cell: part, grasps, `tool.tcp_offset`,
|
|
366
385
|
camera, hand-eye. No `home_bin*` poses are needed; the capture pose is
|
|
367
|
-
whatever the robot reports.
|
|
368
|
-
reachability is checked. No gripper is built or actuated.
|
|
386
|
+
whatever the robot reports. No gripper is built or actuated.
|
|
369
387
|
|
|
370
388
|
Only if the pictures show a container with walls: `capture(tag, bin_number=N)`
|
|
371
389
|
attaches the `bin_N_*` cuboids from `cuboids.json` to the request so grasps
|
|
@@ -373,6 +391,65 @@ through a wall or below the floor are rejected. `N` must be listed in
|
|
|
373
391
|
`runtime.bins.available`. It is not a taught pose. Open pallets need none of
|
|
374
392
|
this.
|
|
375
393
|
|
|
394
|
+
### Your own robot (no VRMCS)
|
|
395
|
+
|
|
396
|
+
When the app owns the robot, say a Fanuc over RMI, set `robot.driver: external`
|
|
397
|
+
in `pick.yaml` (`robot.model` names the arm) and pass any object with these
|
|
398
|
+
three methods, in pendant units. The SDK opens no connection of its own.
|
|
399
|
+
|
|
400
|
+
```python
|
|
401
|
+
class MyRmiRobot:
|
|
402
|
+
def __init__(self, rmi):
|
|
403
|
+
self._rmi = rmi # your RMI session; the SDK never opens one
|
|
404
|
+
|
|
405
|
+
def get_tcp_pose(self) -> list[float]:
|
|
406
|
+
# Current TCP in UFrame 0, active UTool, [x, y, z, w, p, r] in mm and degrees.
|
|
407
|
+
return self._rmi.read_cartesian_position()
|
|
408
|
+
|
|
409
|
+
def get_joint_angles(self) -> list[float]:
|
|
410
|
+
# Radians, robot model (URDF) convention: VAMP plans in these. Convert here.
|
|
411
|
+
return to_model_joints(self._rmi.read_joint_angles())
|
|
412
|
+
|
|
413
|
+
def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
|
|
414
|
+
# None only when tcp_pose is unreachable; raise for anything else (not ready, comms).
|
|
415
|
+
solution = self._rmi.inverse_kinematics(tcp_pose, from_model_joints(seed_joint_angles))
|
|
416
|
+
return None if solution is None else to_model_joints(solution)
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
420
|
+
assert rmi.active_utool_offset_mm() == sdk.tcp_offset_mm # optional: check the controller tool once
|
|
421
|
+
...
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
- **Threads.** The SDK calls these methods only on the thread that called
|
|
425
|
+
`capture` (`get_tcp_pose`, `get_joint_angles`) or `next_target`, never
|
|
426
|
+
from a background thread, so they serialize with the app's motion if the app
|
|
427
|
+
calls them between moves. Call them while the arm moves and they need the
|
|
428
|
+
app's robot lock.
|
|
429
|
+
- **Calls per `next_target`.** One `get_joint_angles`, then two
|
|
430
|
+
`inverse_kinematics` for the grasp it returns (approach, then grasp), then
|
|
431
|
+
one path plan on the server (no robot call). Each skipped candidate adds one
|
|
432
|
+
or two IK calls and at most one plan.
|
|
433
|
+
- **Seeds.** The approach is seeded with the current joints read at the start
|
|
434
|
+
of that `next_target`; the grasp with the approach solution, the
|
|
435
|
+
configuration the arm is in when it starts the straight move. The path is
|
|
436
|
+
planned from those same current joints.
|
|
437
|
+
- **Joints.** Radians in the robot model's (URDF) convention everywhere, the
|
|
438
|
+
convention VAMP plans in. A controller that reports degrees, or couples
|
|
439
|
+
joints differently, converts inside these methods.
|
|
440
|
+
- **Errors.** `None` drops that candidate as unreachable. An exception from
|
|
441
|
+
your robot propagates out of `next_target` and the candidate stays at the
|
|
442
|
+
front of the queue for the next call.
|
|
443
|
+
- **Frames.** Poses are TCP poses in the robot base frame (UFrame 0) at
|
|
444
|
+
`tool.tcp_offset`, which `sdk.tcp_offset_mm` returns; the active UTool must
|
|
445
|
+
match it, or use UTool 0 with `target.at_flange(...)`.
|
|
446
|
+
|
|
447
|
+
With an external robot nothing talks to VRMCS. The server has no IK: it sends
|
|
448
|
+
every grasp that clears the bin walls, and `next_target` drops what your IK
|
|
449
|
+
can't reach or VAMP can't find a collision-free path to, attaching both IK
|
|
450
|
+
solutions and the path. `robot.model` must name a VAMP robot in the installed
|
|
451
|
+
`vamp-planner` wheel.
|
|
452
|
+
|
|
376
453
|
## Calibration
|
|
377
454
|
|
|
378
455
|
The SDK exposes the two calibration primitives — hand-eye and
|
|
@@ -394,6 +471,17 @@ The SDK plans to `cell.positions.calibration_joints`, runs the bundled sphere
|
|
|
394
471
|
routine, returns the robot to that start pose, and persists the result. The
|
|
395
472
|
fuller form below adds progress reporting and the operator-driven scan session:
|
|
396
473
|
|
|
474
|
+
On a cell with `robot.driver: external`, pass the app's `CalibrationRobot`: a
|
|
475
|
+
`GraspRobot` plus `execute_joint_path(waypoints)`. VAMP still plans every
|
|
476
|
+
move for `robot.model`, in-process, and your robot executes the path; joints
|
|
477
|
+
are radians in the robot model's convention here. Environment scanning needs
|
|
478
|
+
freedrive and is not available on an external robot.
|
|
479
|
+
|
|
480
|
+
```python
|
|
481
|
+
with build_calibration_app("cell.yaml", robot=MyRmiCalibrationRobot(rmi)) as cal:
|
|
482
|
+
x_cam_flg = cal.run_hand_eye_calibration()
|
|
483
|
+
```
|
|
484
|
+
|
|
397
485
|
```python
|
|
398
486
|
from pathlib import Path
|
|
399
487
|
|
|
@@ -257,12 +257,12 @@ hardware connections.
|
|
|
257
257
|
|
|
258
258
|
For a cell where the application moves the robot itself. The SDK takes and
|
|
259
259
|
stores pictures, runs perception on a stored picture when asked, and keeps
|
|
260
|
-
one queue of ranked
|
|
260
|
+
one queue of ranked grasps. It never commands motion.
|
|
261
261
|
|
|
262
262
|
```python
|
|
263
263
|
from griip_sdk import build_grasp_provider
|
|
264
264
|
|
|
265
|
-
with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
265
|
+
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
266
266
|
# First round: one picture of each pallet, then start on the left.
|
|
267
267
|
move_robot_to(LEFT_CAPTURE_POSE) # your motion
|
|
268
268
|
sdk.capture("left") # take a picture now, store it as "left"
|
|
@@ -272,29 +272,27 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
|
272
272
|
|
|
273
273
|
while True:
|
|
274
274
|
# Left pallet
|
|
275
|
-
target = sdk.next_target() # wait for the "left" run, pop its best
|
|
275
|
+
target = sdk.next_target() # wait for the "left" run, pop its best reachable grasp; None = nothing graspable
|
|
276
276
|
sdk.process("right") # start perception on the "right" picture; it runs during the steps below
|
|
277
277
|
picked_left = target is not None
|
|
278
278
|
if picked_left:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
move_robot_to(pose)
|
|
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)
|
|
282
281
|
close_gripper()
|
|
283
|
-
|
|
282
|
+
move_linear(target.approach_pose_mm_deg) # straight back out
|
|
284
283
|
sdk.capture("left") # new picture of the left pallet for the next round, taken now
|
|
285
284
|
move_robot_to(PLACE_POSE)
|
|
286
285
|
open_gripper()
|
|
287
286
|
|
|
288
287
|
# Right pallet
|
|
289
|
-
target = sdk.next_target() # wait for the "right" run, pop its best
|
|
288
|
+
target = sdk.next_target() # wait for the "right" run, pop its best reachable grasp
|
|
290
289
|
sdk.process("left") # start perception on the new "left" picture; runs while we pick right
|
|
291
290
|
picked_right = target is not None
|
|
292
291
|
if picked_right:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
move_robot_to(pose)
|
|
292
|
+
move_joints(target.approach_trajectory)
|
|
293
|
+
move_linear(target.grasp_pose_mm_deg)
|
|
296
294
|
close_gripper()
|
|
297
|
-
|
|
295
|
+
move_linear(target.approach_pose_mm_deg)
|
|
298
296
|
sdk.capture("right") # new picture of the right pallet for the next round
|
|
299
297
|
move_robot_to(PLACE_POSE)
|
|
300
298
|
open_gripper()
|
|
@@ -303,12 +301,12 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice") as sdk:
|
|
|
303
301
|
break # both pallets came back empty
|
|
304
302
|
```
|
|
305
303
|
|
|
306
|
-
Five verbs. `capture(tag)` stores a picture with the robot pose at
|
|
307
|
-
moment, so park the robot first; the tag is any string you choose, one
|
|
304
|
+
Five verbs. `capture(tag)` stores a picture with the robot pose and joints at
|
|
305
|
+
that moment, so park the robot first; the tag is any string you choose, one
|
|
308
306
|
stored picture per tag. `captures()` lists the stored pictures, `delete(tag)`
|
|
309
307
|
removes one. `process(tag)` runs perception on a stored picture in the
|
|
310
308
|
background, one image at a time. `next_target(timeout=None)` waits for
|
|
311
|
-
in-flight runs and pops the best
|
|
309
|
+
in-flight runs and pops the best grasp; it returns `None` when the last
|
|
312
310
|
picture had nothing graspable, when the run failed (`captures()` carries the
|
|
313
311
|
state and the reason), or on timeout.
|
|
314
312
|
|
|
@@ -318,22 +316,41 @@ picture is dropped.
|
|
|
318
316
|
|
|
319
317
|
Each `GraspTarget` answers what a motion-owning app needs to know:
|
|
320
318
|
|
|
321
|
-
- `capture_tag` says which picture, and therefore which pallet, it came from
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
319
|
+
- `capture_tag` says which picture, and therefore which pallet, it came from;
|
|
320
|
+
`object_index` which part in it. Several grasps can come back per part.
|
|
321
|
+
- `approach_pose` is where to go first; `grasp_pose` is where the gripper
|
|
322
|
+
closes, `approach_offset` (from the grasp definition) further along the tool
|
|
323
|
+
Z. Both are TCP poses in the robot base frame. `approach_pose_mm_deg` /
|
|
324
|
+
`grasp_pose_mm_deg` give them as `[x, y, z, w, p, r]`: millimetres, and
|
|
325
|
+
degrees about X, Y then Z, the pendant convention. The `SE3` forms stay in
|
|
326
|
+
metres for code that composes transforms.
|
|
327
|
+
- `at_flange(pose)` converts either one for a controller whose TCP is the
|
|
328
|
+
flange (`tool.tcp_offset` is returned as `tcp_offset`).
|
|
329
|
+
- `plunge_pose` / `scoop_pose` are the SDK's own guarded-scoop phases. The
|
|
330
|
+
scoop can end past the grasp point, so never move to it without a force stop.
|
|
331
|
+
- `approach_joint_angles` / `grasp_joint_angles` are your robot's IK solutions
|
|
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.
|
|
332
350
|
|
|
333
351
|
Same `pick.yaml` as a self-driving cell: part, grasps, `tool.tcp_offset`,
|
|
334
352
|
camera, hand-eye. No `home_bin*` poses are needed; the capture pose is
|
|
335
|
-
whatever the robot reports.
|
|
336
|
-
reachability is checked. No gripper is built or actuated.
|
|
353
|
+
whatever the robot reports. No gripper is built or actuated.
|
|
337
354
|
|
|
338
355
|
Only if the pictures show a container with walls: `capture(tag, bin_number=N)`
|
|
339
356
|
attaches the `bin_N_*` cuboids from `cuboids.json` to the request so grasps
|
|
@@ -341,6 +358,65 @@ through a wall or below the floor are rejected. `N` must be listed in
|
|
|
341
358
|
`runtime.bins.available`. It is not a taught pose. Open pallets need none of
|
|
342
359
|
this.
|
|
343
360
|
|
|
361
|
+
### Your own robot (no VRMCS)
|
|
362
|
+
|
|
363
|
+
When the app owns the robot, say a Fanuc over RMI, set `robot.driver: external`
|
|
364
|
+
in `pick.yaml` (`robot.model` names the arm) and pass any object with these
|
|
365
|
+
three methods, in pendant units. The SDK opens no connection of its own.
|
|
366
|
+
|
|
367
|
+
```python
|
|
368
|
+
class MyRmiRobot:
|
|
369
|
+
def __init__(self, rmi):
|
|
370
|
+
self._rmi = rmi # your RMI session; the SDK never opens one
|
|
371
|
+
|
|
372
|
+
def get_tcp_pose(self) -> list[float]:
|
|
373
|
+
# Current TCP in UFrame 0, active UTool, [x, y, z, w, p, r] in mm and degrees.
|
|
374
|
+
return self._rmi.read_cartesian_position()
|
|
375
|
+
|
|
376
|
+
def get_joint_angles(self) -> list[float]:
|
|
377
|
+
# Radians, robot model (URDF) convention: VAMP plans in these. Convert here.
|
|
378
|
+
return to_model_joints(self._rmi.read_joint_angles())
|
|
379
|
+
|
|
380
|
+
def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
|
|
381
|
+
# None only when tcp_pose is unreachable; raise for anything else (not ready, comms).
|
|
382
|
+
solution = self._rmi.inverse_kinematics(tcp_pose, from_model_joints(seed_joint_angles))
|
|
383
|
+
return None if solution is None else to_model_joints(solution)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
387
|
+
assert rmi.active_utool_offset_mm() == sdk.tcp_offset_mm # optional: check the controller tool once
|
|
388
|
+
...
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
- **Threads.** The SDK calls these methods only on the thread that called
|
|
392
|
+
`capture` (`get_tcp_pose`, `get_joint_angles`) or `next_target`, never
|
|
393
|
+
from a background thread, so they serialize with the app's motion if the app
|
|
394
|
+
calls them between moves. Call them while the arm moves and they need the
|
|
395
|
+
app's robot lock.
|
|
396
|
+
- **Calls per `next_target`.** One `get_joint_angles`, then two
|
|
397
|
+
`inverse_kinematics` for the grasp it returns (approach, then grasp), then
|
|
398
|
+
one path plan on the server (no robot call). Each skipped candidate adds one
|
|
399
|
+
or two IK calls and at most one plan.
|
|
400
|
+
- **Seeds.** The approach is seeded with the current joints read at the start
|
|
401
|
+
of that `next_target`; the grasp with the approach solution, the
|
|
402
|
+
configuration the arm is in when it starts the straight move. The path is
|
|
403
|
+
planned from those same current joints.
|
|
404
|
+
- **Joints.** Radians in the robot model's (URDF) convention everywhere, the
|
|
405
|
+
convention VAMP plans in. A controller that reports degrees, or couples
|
|
406
|
+
joints differently, converts inside these methods.
|
|
407
|
+
- **Errors.** `None` drops that candidate as unreachable. An exception from
|
|
408
|
+
your robot propagates out of `next_target` and the candidate stays at the
|
|
409
|
+
front of the queue for the next call.
|
|
410
|
+
- **Frames.** Poses are TCP poses in the robot base frame (UFrame 0) at
|
|
411
|
+
`tool.tcp_offset`, which `sdk.tcp_offset_mm` returns; the active UTool must
|
|
412
|
+
match it, or use UTool 0 with `target.at_flange(...)`.
|
|
413
|
+
|
|
414
|
+
With an external robot nothing talks to VRMCS. The server has no IK: it sends
|
|
415
|
+
every grasp that clears the bin walls, and `next_target` drops what your IK
|
|
416
|
+
can't reach or VAMP can't find a collision-free path to, attaching both IK
|
|
417
|
+
solutions and the path. `robot.model` must name a VAMP robot in the installed
|
|
418
|
+
`vamp-planner` wheel.
|
|
419
|
+
|
|
344
420
|
## Calibration
|
|
345
421
|
|
|
346
422
|
The SDK exposes the two calibration primitives — hand-eye and
|
|
@@ -362,6 +438,17 @@ The SDK plans to `cell.positions.calibration_joints`, runs the bundled sphere
|
|
|
362
438
|
routine, returns the robot to that start pose, and persists the result. The
|
|
363
439
|
fuller form below adds progress reporting and the operator-driven scan session:
|
|
364
440
|
|
|
441
|
+
On a cell with `robot.driver: external`, pass the app's `CalibrationRobot`: a
|
|
442
|
+
`GraspRobot` plus `execute_joint_path(waypoints)`. VAMP still plans every
|
|
443
|
+
move for `robot.model`, in-process, and your robot executes the path; joints
|
|
444
|
+
are radians in the robot model's convention here. Environment scanning needs
|
|
445
|
+
freedrive and is not available on an external robot.
|
|
446
|
+
|
|
447
|
+
```python
|
|
448
|
+
with build_calibration_app("cell.yaml", robot=MyRmiCalibrationRobot(rmi)) as cal:
|
|
449
|
+
x_cam_flg = cal.run_hand_eye_calibration()
|
|
450
|
+
```
|
|
451
|
+
|
|
365
452
|
```python
|
|
366
453
|
from pathlib import Path
|
|
367
454
|
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"lint": {
|
|
27
27
|
"executor": "@nxlv/python:run-commands",
|
|
28
28
|
"options": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"cwd": "projects/physical-ai/libs/griip-sdk",
|
|
30
|
+
"commands": ["uv run ruff check src/", "uv run ruff format --check src/"],
|
|
31
|
+
"parallel": false
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"typecheck": {
|
|
@@ -2,12 +2,12 @@ dependency-groups = { }
|
|
|
2
2
|
|
|
3
3
|
[project]
|
|
4
4
|
name = "griip-sdk-dev"
|
|
5
|
-
version = "0.
|
|
6
|
-
description = "Dev build of griip-sdk from commit
|
|
5
|
+
version = "0.6.0.dev25643"
|
|
6
|
+
description = "Dev build of griip-sdk from commit da01d1026 (PR #6192). Not a release."
|
|
7
7
|
readme = "README.md"
|
|
8
|
-
requires-python = ">=3.10,<3.
|
|
8
|
+
requires-python = ">=3.10,<3.13"
|
|
9
9
|
dependencies = [
|
|
10
|
-
"griip-core
|
|
10
|
+
"griip-core-dev==0.5.6.dev25643",
|
|
11
11
|
"grpcio>=1.78.0",
|
|
12
12
|
"numpy>=1.24",
|
|
13
13
|
"protobuf>=4.0",
|
|
@@ -28,7 +28,8 @@ dependencies = [
|
|
|
28
28
|
"foxglove-schemas-protobuf",
|
|
29
29
|
"mcap>=1.3.0,<2.0",
|
|
30
30
|
"mcap-protobuf-support>=0.4.0,<1.0",
|
|
31
|
-
"vention-grpc-py-sdk
|
|
31
|
+
"vention-grpc-py-sdk>=0.0.72",
|
|
32
|
+
"vention-sim-grpc-py-sdk==0.1.3",
|
|
32
33
|
"fastapi[standard]>=0.121.1"
|
|
33
34
|
]
|
|
34
35
|
|
|
@@ -20,6 +20,7 @@ from griip_sdk.hardware.gripper import (
|
|
|
20
20
|
SuctionGripper,
|
|
21
21
|
ThreeFingerGripper,
|
|
22
22
|
)
|
|
23
|
+
from griip_sdk.hardware.robot_interface import CalibrationRobot, GraspRobot
|
|
23
24
|
from griip_sdk.orchestration.bin_picking_manager import BinPickingManager
|
|
24
25
|
from griip_sdk.orchestration.grasp_provider import GraspProvider
|
|
25
26
|
from griip_sdk.orchestration.pick_and_place_manager import SingleCyclePickAndPlaceManager
|
|
@@ -49,10 +50,12 @@ __all__ = [
|
|
|
49
50
|
"build_grasp_provider",
|
|
50
51
|
"build_pick_only_manager",
|
|
51
52
|
"CalibrationApp",
|
|
53
|
+
"CalibrationRobot",
|
|
52
54
|
"CaptureInfo",
|
|
53
55
|
"ConfigError",
|
|
54
56
|
"Cuboid",
|
|
55
57
|
"GraspProvider",
|
|
58
|
+
"GraspRobot",
|
|
56
59
|
"GraspTarget",
|
|
57
60
|
"GripperMoveResult",
|
|
58
61
|
"list_available_parts",
|
{griip_sdk_dev-0.4.0.dev24238 → griip_sdk_dev-0.6.0.dev25643}/src/griip_sdk/calibration/app.py
RENAMED
|
@@ -22,9 +22,9 @@ import grpc
|
|
|
22
22
|
import numpy as np
|
|
23
23
|
import numpy.typing as npt
|
|
24
24
|
from spatialmath import SE3, SO3
|
|
25
|
-
from vention.vision.v1.vision_service_abc import ImageServiceBackend
|
|
26
25
|
|
|
27
26
|
from griip_sdk.calibration.camera_factory import build_calibration_camera
|
|
27
|
+
from griip_sdk.calibration.external_robot import ExternalCalibrationRobotClient
|
|
28
28
|
from griip_sdk.calibration.config_store import (
|
|
29
29
|
DEFAULT_CALIBRATION_DATA_PATH,
|
|
30
30
|
CalibrationConfigStore,
|
|
@@ -53,9 +53,12 @@ from griip_sdk.cell.config import PrototypeCellConfig
|
|
|
53
53
|
from griip_sdk.cell.initialize import build_robot_initialize_request, send_initialize
|
|
54
54
|
from griip_sdk.errors import ConfigError
|
|
55
55
|
from griip_core.generated import griip_pb2 as pb
|
|
56
|
+
from griip_core.robot_drivers import EXTERNAL_ROBOT_DRIVER
|
|
56
57
|
from griip_core.generated import griip_pb2_grpc
|
|
57
58
|
from griip_sdk.grpc_adapters.servicer_as_stub import ServicerAsStub
|
|
58
59
|
from griip_sdk.hardware.robot_client import VrmcsRobotClient, build_vrmcs_client
|
|
60
|
+
from griip_sdk.hardware.robot_interface import CalibrationRobot
|
|
61
|
+
from griip_sdk.hardware.vision_backend import VisionServiceBackend
|
|
59
62
|
|
|
60
63
|
logger = logging.getLogger(__name__)
|
|
61
64
|
|
|
@@ -74,7 +77,7 @@ class CalibrationApp:
|
|
|
74
77
|
cell: PrototypeCellConfig,
|
|
75
78
|
config_path: Path,
|
|
76
79
|
robot_client: VrmcsRobotClient,
|
|
77
|
-
vision_backend:
|
|
80
|
+
vision_backend: VisionServiceBackend,
|
|
78
81
|
cam_name: str,
|
|
79
82
|
camera_mxid: str,
|
|
80
83
|
sensor: str,
|
|
@@ -545,6 +548,7 @@ def build_calibration_app(
|
|
|
545
548
|
mqtt_host: str | None = "localhost",
|
|
546
549
|
mqtt_port: int = 1883,
|
|
547
550
|
strict_intrinsics: bool = True,
|
|
551
|
+
robot: CalibrationRobot | None = None,
|
|
548
552
|
) -> Iterator[CalibrationApp]:
|
|
549
553
|
"""Yield a wired :class:`CalibrationApp` for the cell at ``cell_yaml``.
|
|
550
554
|
|
|
@@ -571,6 +575,11 @@ def build_calibration_app(
|
|
|
571
575
|
strict_intrinsics: when ``True`` (default), missing calibio intrinsics
|
|
572
576
|
raise :class:`FileNotFoundError`; ``False`` falls back to live
|
|
573
577
|
``camera_info`` (camera-swap escape hatch).
|
|
578
|
+
robot: the app's own robot, required when ``robot.driver`` is
|
|
579
|
+
``external``. Nothing talks to VRMCS: reads, IK and path execution
|
|
580
|
+
go through it, and VAMP plans in-process for ``robot.model`` in
|
|
581
|
+
either API mode, since the server has no planner for such a robot.
|
|
582
|
+
Joints are radians in the robot model's convention.
|
|
574
583
|
"""
|
|
575
584
|
resolved_path = Path(cell_yaml).expanduser().resolve()
|
|
576
585
|
cell = load_cell_config(resolved_path)
|
|
@@ -583,7 +592,15 @@ def build_calibration_app(
|
|
|
583
592
|
logger.info("=== build_calibration_app ===")
|
|
584
593
|
logger.info("Config: %s griip_api.mode: %s", resolved_path, cell.griip_api.mode)
|
|
585
594
|
|
|
586
|
-
|
|
595
|
+
robot_is_external = cell.robot.driver == EXTERNAL_ROBOT_DRIVER
|
|
596
|
+
if robot_is_external and robot is None:
|
|
597
|
+
raise ValueError(f"robot.driver is '{EXTERNAL_ROBOT_DRIVER}' in {resolved_path}: pass the app's robot to build_calibration_app")
|
|
598
|
+
if robot is not None:
|
|
599
|
+
app_tcp_offset = cell.tool.tcp_offset if cell.tool is not None else [0.0, 0.0, 0.0]
|
|
600
|
+
# Duck-typed stand-in for the slice of VrmcsRobotClient calibration uses.
|
|
601
|
+
robot_client = cast(VrmcsRobotClient, ExternalCalibrationRobotClient(robot, app_tcp_offset))
|
|
602
|
+
else:
|
|
603
|
+
robot_client = build_vrmcs_client(resolved_path, cell)
|
|
587
604
|
grpc_channel: grpc.Channel | None = None
|
|
588
605
|
mqtt_publisher: MqttProgressPublisher | None = None
|
|
589
606
|
if mqtt_host is not None:
|
|
@@ -604,7 +621,12 @@ def build_calibration_app(
|
|
|
604
621
|
grpc_channel, planning_stub, perception_stub = _build_grpc_calibration_stubs(cell.griip_api.url)
|
|
605
622
|
logger.info("Connected to mmai-griip-api over gRPC at %s", cell.griip_api.url)
|
|
606
623
|
_initialize_remote_api(grpc_channel, cell)
|
|
607
|
-
|
|
624
|
+
if robot_is_external:
|
|
625
|
+
planning_stub = _build_in_process_planning_stub(
|
|
626
|
+
robot_client, cell, resolved_path.parent, cuboids_path_override=effective_cuboids_path
|
|
627
|
+
)
|
|
628
|
+
else:
|
|
629
|
+
_configure_remote_planner(planning_stub, cell, resolved_path.parent, cuboids_path_override=effective_cuboids_path)
|
|
608
630
|
else:
|
|
609
631
|
planning_stub = _build_in_process_planning_stub(
|
|
610
632
|
robot_client, cell, resolved_path.parent, cuboids_path_override=effective_cuboids_path
|
|
@@ -12,12 +12,12 @@ from __future__ import annotations
|
|
|
12
12
|
import logging
|
|
13
13
|
from dataclasses import dataclass
|
|
14
14
|
|
|
15
|
-
from vention.vision.v1.vision_service_abc import ImageServiceBackend
|
|
16
15
|
|
|
17
16
|
from griip_sdk.calibration.config_store import CalibrationConfigStore
|
|
18
17
|
from griip_sdk.cell.config import CameraConfig
|
|
19
18
|
from griip_sdk.hardware.grpc_vision_backend import GrpcVisionServiceBackend, camera_identity_from_backend
|
|
20
19
|
from griip_sdk.hardware.mmai_vision_backend import MmaiVisionServiceBackend
|
|
20
|
+
from griip_sdk.hardware.vision_backend import VisionServiceBackend
|
|
21
21
|
|
|
22
22
|
logger = logging.getLogger(__name__)
|
|
23
23
|
|
|
@@ -31,7 +31,7 @@ class CalibrationCamera:
|
|
|
31
31
|
so calibration-time saves and pick-time loads provably agree.
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
|
-
vision_backend:
|
|
34
|
+
vision_backend: VisionServiceBackend
|
|
35
35
|
camera_vendor: str
|
|
36
36
|
camera_mx_id: str
|
|
37
37
|
|
|
@@ -65,7 +65,7 @@ def build_calibration_camera(
|
|
|
65
65
|
"Using vention.vision gRPC camera at %s; intrinsics/calibration are owned by the vision service.",
|
|
66
66
|
camera_config.target,
|
|
67
67
|
)
|
|
68
|
-
vision_backend:
|
|
68
|
+
vision_backend: VisionServiceBackend = GrpcVisionServiceBackend(
|
|
69
69
|
camera_config.target, source_metadata_defaults=camera_config.source_metadata
|
|
70
70
|
)
|
|
71
71
|
camera_vendor, camera_mx_id = camera_identity_from_backend(vision_backend, camera_config.sensor)
|