griip-sdk-dev 0.6.0.dev25643__tar.gz → 0.6.0.dev25682__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.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/.coverage +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/PKG-INFO +24 -15
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/README.md +21 -12
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/pyproject.toml +3 -3
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/app.py +6 -2
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/external_robot.py +9 -5
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_external_robot.py +19 -5
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/config.py +4 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/recipes.py +3 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_recipes.py +7 -1
- griip_sdk_dev-0.6.0.dev25682/src/griip_sdk/hardware/joint_conventions.py +45 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/robot_interface.py +5 -4
- griip_sdk_dev-0.6.0.dev25682/src/griip_sdk/hardware/tests/test_joint_conventions.py +29 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/grasp_provider.py +19 -9
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_grasp_provider.py +26 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/types.py +2 -2
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/docs/griip-sdk-consumer-improvements.md +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/project.json +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/apriltag_pose.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/camera_factory.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/cartesian_pose.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/config_store.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/README.md +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/config/routine.yaml +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/core.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/main.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/planning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/routines.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/run_hand_eye_calibration.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/hand_eye_calib/transforms.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/mqtt_publisher.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/mqtt_topics.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/routines.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/scanning/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/scanning/environment_scanning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/scanning/run_environment_scanning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/conftest.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_calibration_app.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_camera_factory.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_environment_scanning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_hand_eye_calibration_service.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_hand_eye_helpers.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/tests/test_transforms.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/types.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/units.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/builders.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/end_effector_collision_model.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/initialize.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/loader.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/mock_builders.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/parts.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/conftest.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_builders.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_end_effector_collision_model.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_initialize.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_loader.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_mock_cell_smoke.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_parts.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/cell/tests/test_recording_config.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/errors.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/grpc_adapters/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/grpc_adapters/servicer_as_stub.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/bin_shaker.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/camera.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/fanuc_robot_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/ft_sensor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/grpc_vision_backend.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/io_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mmai_vision_backend.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mocks/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mocks/camera_mock.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mocks/gripper_client_mock.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mocks/io_client_mock.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/mocks/robot_client_mock.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/onrobot_3fg15_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/robot_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/robotiq_2f140_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/sim_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/sim_hand_eye.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/sim_robot_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/suction_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/conftest.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_call_with_timeout.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_command_state_fanout.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_gripper_command_listeners.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_grpc_vision_backend.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_mmai_vision_backend.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_reset_to_normal.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_robot_client_base.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_robot_client_lifecycle.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_robot_feedback_fanout.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_robotiq_2f140_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_robotiq_gripper_bus_lock.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_sim_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_sim_hand_eye.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_sim_robot_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_suction_gripper.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_tower_light.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_vision_codec.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tests/test_vrmcs_tcp_guard.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/torquing_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/tower_light.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/ur_robot_client.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/vision_backend.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/hardware/vision_codec.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/log_utils.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/README.md +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/__main__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/_actors.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/_geometry.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/editor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/object_io.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/sphere_generation_tool/urdf_io.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/conftest.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/test_editor_math.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/test_editor_smoke.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/test_mesh_loading.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/test_object_io.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/modeling/tests/test_urdf_io.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/bin_cuboid_extraction.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/bin_picking_manager.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/bin_state.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/callbacks.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/cycle_pause_gate.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/errors.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/grasp_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/parallel_jaw_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/suction_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/tests/test_parallel_jaw_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/execution/three_finger_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/grasp_queue.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/part_setup.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/perception_inputs.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/pick_and_place_manager.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/pick_generator.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/placement_planner.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/planning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/proto_conversions.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/roi_scheduler.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/scoop_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/conftest.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_bin_picking_manager.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_bin_state.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_cycle_pause_gate.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_part_setup.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_perception_inputs.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_phase_collision_spheres.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_pick_and_place_manager.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_pick_generator.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_placement_planner.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_planning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_proto_conversions.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_scoop_executor.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/tests/test_trajectory_store.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/trajectory_store.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/config/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/config/registry.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/in_process_api.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/read_tcp.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/run_environment_scanning.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/run_hand_eye_calibration.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/prototyping/run_linear_shuttle.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/foxglove_events.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/foxglove_joint_states.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/gripper_state_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/gripper_state_mcap_recording.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/h264_video_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/h264_video_mcap_recording.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/kpi_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/kpi_mcap_recording.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/kpi_timer.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/mcap_recording.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/memory_utils.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/robot_state_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/rotating_mcap_writer.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_foxglove_event_publisher.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_foxglove_joint_states.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_kpi_timer.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_mcap_foxglove_event_publisher.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_mcap_gripper_state_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_mcap_h264_video_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_mcap_kpi_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_mcap_robot_state_logger.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/recording/tests/test_session.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/tests/__init__.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/tests/test_log_utils.py +0 -0
- {griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/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.6.0.
|
|
4
|
-
Summary: Dev build of griip-sdk from commit
|
|
3
|
+
Version: 0.6.0.dev25682
|
|
4
|
+
Summary: Dev build of griip-sdk from commit feece84a1 (PR #6192). Not a release.
|
|
5
5
|
Author: VentionCo
|
|
6
6
|
License: Proprietary
|
|
7
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-dev==0.5.6.
|
|
11
|
+
Requires-Dist: griip-core-dev==0.5.6.dev25682
|
|
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
|
|
@@ -368,8 +368,9 @@ Each `GraspTarget` answers what a motion-owning app needs to know:
|
|
|
368
368
|
Run it as joint moves with no blending (FINE): only the straight joint-space
|
|
369
369
|
segments between waypoints are checked, and blending cuts corners nobody
|
|
370
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
|
|
372
|
-
the
|
|
371
|
+
move (to a capture pose, to place). The straight move from the approach to
|
|
372
|
+
`grasp_pose` and back is treated as collision-free: the approach offset in
|
|
373
|
+
the grasp definition is what keeps it clear.
|
|
373
374
|
- Everything the server used for this grasp, so an app running its own
|
|
374
375
|
plunge/scoop never re-reads grasps.json: `plunge_velocity`,
|
|
375
376
|
`scoop_velocity`, `force_torque_sensor_threshold`, `retract_move_distance`,
|
|
@@ -393,9 +394,16 @@ this.
|
|
|
393
394
|
|
|
394
395
|
### Your own robot (no VRMCS)
|
|
395
396
|
|
|
396
|
-
When the app owns the robot, say a Fanuc over RMI, set `
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
When the app owns the robot, say a Fanuc over RMI, set it up in `pick.yaml`
|
|
398
|
+
and pass any object with these three methods, in pendant units. The SDK opens
|
|
399
|
+
no connection of its own.
|
|
400
|
+
|
|
401
|
+
```yaml
|
|
402
|
+
robot:
|
|
403
|
+
driver: external
|
|
404
|
+
model: crx25ia # a robot in the installed vamp-planner wheel
|
|
405
|
+
joint_convention: fanuc # joints in and out as the pendant shows them
|
|
406
|
+
```
|
|
399
407
|
|
|
400
408
|
```python
|
|
401
409
|
class MyRmiRobot:
|
|
@@ -407,13 +415,12 @@ class MyRmiRobot:
|
|
|
407
415
|
return self._rmi.read_cartesian_position()
|
|
408
416
|
|
|
409
417
|
def get_joint_angles(self) -> list[float]:
|
|
410
|
-
#
|
|
411
|
-
return
|
|
418
|
+
# In robot.joint_convention: pendant degrees with `fanuc`.
|
|
419
|
+
return self._rmi.read_joint_angles()
|
|
412
420
|
|
|
413
421
|
def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
|
|
414
422
|
# None only when tcp_pose is unreachable; raise for anything else (not ready, comms).
|
|
415
|
-
|
|
416
|
-
return None if solution is None else to_model_joints(solution)
|
|
423
|
+
return self._rmi.inverse_kinematics(tcp_pose, seed_joint_angles)
|
|
417
424
|
|
|
418
425
|
|
|
419
426
|
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
@@ -434,9 +441,11 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
|
|
|
434
441
|
of that `next_target`; the grasp with the approach solution, the
|
|
435
442
|
configuration the arm is in when it starts the straight move. The path is
|
|
436
443
|
planned from those same current joints.
|
|
437
|
-
- **Joints.**
|
|
438
|
-
|
|
439
|
-
|
|
444
|
+
- **Joints.** Every joint list in and out (your methods, the IK solutions, the
|
|
445
|
+
trajectory, `sdk.plan`) is in `robot.joint_convention`. With `fanuc` that is
|
|
446
|
+
pendant degrees and the SDK does the conversion VAMP needs (radians, and
|
|
447
|
+
the pendant's J3, measured from the horizontal, re-expressed relative to
|
|
448
|
+
link 2). The default `model` is URDF radians.
|
|
440
449
|
- **Errors.** `None` drops that candidate as unreachable. An exception from
|
|
441
450
|
your robot propagates out of `next_target` and the candidate stays at the
|
|
442
451
|
front of the queue for the next call.
|
|
@@ -335,8 +335,9 @@ Each `GraspTarget` answers what a motion-owning app needs to know:
|
|
|
335
335
|
Run it as joint moves with no blending (FINE): only the straight joint-space
|
|
336
336
|
segments between waypoints are checked, and blending cuts corners nobody
|
|
337
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
|
|
339
|
-
the
|
|
338
|
+
move (to a capture pose, to place). The straight move from the approach to
|
|
339
|
+
`grasp_pose` and back is treated as collision-free: the approach offset in
|
|
340
|
+
the grasp definition is what keeps it clear.
|
|
340
341
|
- Everything the server used for this grasp, so an app running its own
|
|
341
342
|
plunge/scoop never re-reads grasps.json: `plunge_velocity`,
|
|
342
343
|
`scoop_velocity`, `force_torque_sensor_threshold`, `retract_move_distance`,
|
|
@@ -360,9 +361,16 @@ this.
|
|
|
360
361
|
|
|
361
362
|
### Your own robot (no VRMCS)
|
|
362
363
|
|
|
363
|
-
When the app owns the robot, say a Fanuc over RMI, set `
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
When the app owns the robot, say a Fanuc over RMI, set it up in `pick.yaml`
|
|
365
|
+
and pass any object with these three methods, in pendant units. The SDK opens
|
|
366
|
+
no connection of its own.
|
|
367
|
+
|
|
368
|
+
```yaml
|
|
369
|
+
robot:
|
|
370
|
+
driver: external
|
|
371
|
+
model: crx25ia # a robot in the installed vamp-planner wheel
|
|
372
|
+
joint_convention: fanuc # joints in and out as the pendant shows them
|
|
373
|
+
```
|
|
366
374
|
|
|
367
375
|
```python
|
|
368
376
|
class MyRmiRobot:
|
|
@@ -374,13 +382,12 @@ class MyRmiRobot:
|
|
|
374
382
|
return self._rmi.read_cartesian_position()
|
|
375
383
|
|
|
376
384
|
def get_joint_angles(self) -> list[float]:
|
|
377
|
-
#
|
|
378
|
-
return
|
|
385
|
+
# In robot.joint_convention: pendant degrees with `fanuc`.
|
|
386
|
+
return self._rmi.read_joint_angles()
|
|
379
387
|
|
|
380
388
|
def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> list[float] | None:
|
|
381
389
|
# None only when tcp_pose is unreachable; raise for anything else (not ready, comms).
|
|
382
|
-
|
|
383
|
-
return None if solution is None else to_model_joints(solution)
|
|
390
|
+
return self._rmi.inverse_kinematics(tcp_pose, seed_joint_angles)
|
|
384
391
|
|
|
385
392
|
|
|
386
393
|
with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRobot(rmi)) as sdk:
|
|
@@ -401,9 +408,11 @@ with build_grasp_provider("pick.yaml", part_id="smallest_splice", robot=MyRmiRob
|
|
|
401
408
|
of that `next_target`; the grasp with the approach solution, the
|
|
402
409
|
configuration the arm is in when it starts the straight move. The path is
|
|
403
410
|
planned from those same current joints.
|
|
404
|
-
- **Joints.**
|
|
405
|
-
|
|
406
|
-
|
|
411
|
+
- **Joints.** Every joint list in and out (your methods, the IK solutions, the
|
|
412
|
+
trajectory, `sdk.plan`) is in `robot.joint_convention`. With `fanuc` that is
|
|
413
|
+
pendant degrees and the SDK does the conversion VAMP needs (radians, and
|
|
414
|
+
the pendant's J3, measured from the horizontal, re-expressed relative to
|
|
415
|
+
link 2). The default `model` is URDF radians.
|
|
407
416
|
- **Errors.** `None` drops that candidate as unreachable. An exception from
|
|
408
417
|
your robot propagates out of `next_target` and the candidate stays at the
|
|
409
418
|
front of the queue for the next call.
|
|
@@ -2,12 +2,12 @@ dependency-groups = { }
|
|
|
2
2
|
|
|
3
3
|
[project]
|
|
4
4
|
name = "griip-sdk-dev"
|
|
5
|
-
version = "0.6.0.
|
|
6
|
-
description = "Dev build of griip-sdk from commit
|
|
5
|
+
version = "0.6.0.dev25682"
|
|
6
|
+
description = "Dev build of griip-sdk from commit feece84a1 (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.
|
|
10
|
+
"griip-core-dev==0.5.6.dev25682",
|
|
11
11
|
"grpcio>=1.78.0",
|
|
12
12
|
"numpy>=1.24",
|
|
13
13
|
"protobuf>=4.0",
|
{griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/calibration/app.py
RENAMED
|
@@ -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
|
|
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(
|
|
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
|
|
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
|
-
|
|
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
|
|
@@ -879,6 +880,8 @@ def build_grasp_provider(
|
|
|
879
880
|
camera_manager=cast("CameraManager", context.camera_manager),
|
|
880
881
|
robot=robot,
|
|
881
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"),
|
|
882
885
|
tcp_to_camera=context.tcp_to_camera,
|
|
883
886
|
tcp_to_flange=tcp_to_flange,
|
|
884
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
|
|
|
@@ -179,6 +180,7 @@ def test_build_grasp_provider_external_robot_uses_it_and_configures_the_planner(
|
|
|
179
180
|
provider.capture("left")
|
|
180
181
|
|
|
181
182
|
robot.get_tcp_pose.assert_called_once()
|
|
183
|
+
assert isinstance(provider._joints, FanucJoints)
|
|
182
184
|
assert len(configure_planner_calls) == 1 # VAMP still plans collision-free paths for an app-owned robot
|
|
183
185
|
|
|
184
186
|
|
|
@@ -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()
|
|
@@ -7,8 +7,9 @@ own and never talks to VRMCS. It calls the methods on the thread that called
|
|
|
7
7
|
Poses are ``[x, y, z, w, p, r]`` in millimetres and degrees in the robot base
|
|
8
8
|
frame, at the TCP set by ``tool.tcp_offset``: what the pendant shows with
|
|
9
9
|
UFrame 0 and a UTool equal to that offset. ``w, p, r`` rotate about X, Y then Z.
|
|
10
|
-
Joints are
|
|
11
|
-
|
|
10
|
+
Joints are in ``robot.joint_convention`` from the cell YAML: ``model`` (URDF
|
|
11
|
+
radians, what VAMP plans in; the default) or ``fanuc`` (pendant degrees). The
|
|
12
|
+
SDK converts, so every joint list in and out is in that one convention.
|
|
12
13
|
"""
|
|
13
14
|
|
|
14
15
|
from __future__ import annotations
|
|
@@ -27,7 +28,7 @@ class GraspRobot(Protocol):
|
|
|
27
28
|
...
|
|
28
29
|
|
|
29
30
|
def get_joint_angles(self) -> list[float]:
|
|
30
|
-
"""Current joints,
|
|
31
|
+
"""Current joints, in ``robot.joint_convention``."""
|
|
31
32
|
...
|
|
32
33
|
|
|
33
34
|
def inverse_kinematics(self, tcp_pose: list[float], seed_joint_angles: list[float]) -> Optional[list[float]]:
|
|
@@ -45,7 +46,7 @@ class CalibrationRobot(GraspRobot, Protocol):
|
|
|
45
46
|
"""A GraspRobot that hand-eye calibration can also move along VAMP paths."""
|
|
46
47
|
|
|
47
48
|
def execute_joint_path(self, waypoints: list[list[float]]) -> bool:
|
|
48
|
-
"""Move through ``waypoints`` (
|
|
49
|
+
"""Move through ``waypoints`` (``robot.joint_convention``); True once the last is reached."""
|
|
49
50
|
...
|
|
50
51
|
|
|
51
52
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Joint conventions: the Fanuc mapping matches VRMCS's from_fanuc_joints and round-trips."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import math
|
|
6
|
+
|
|
7
|
+
import pytest
|
|
8
|
+
|
|
9
|
+
from griip_sdk.hardware.joint_conventions import FanucJoints, ModelJoints, joint_convention
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_fanuc_to_model_is_radians_with_j2_added_to_j3() -> None:
|
|
13
|
+
model = FanucJoints().to_model([10.0, 20.0, -30.0, 40.0, 50.0, 60.0])
|
|
14
|
+
|
|
15
|
+
assert model == pytest.approx([math.radians(angle) for angle in (10.0, 20.0, -10.0, 40.0, 50.0, 60.0)])
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_fanuc_round_trips() -> None:
|
|
19
|
+
fanuc = [-170.0, 35.5, -80.25, 120.0, -45.0, 359.0]
|
|
20
|
+
|
|
21
|
+
assert FanucJoints().from_model(FanucJoints().to_model(fanuc)) == pytest.approx(fanuc)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def test_model_passes_through_and_names_resolve() -> None:
|
|
25
|
+
joints = [0.1, -1.2, 1.4, -1.6, -1.5, 0.2]
|
|
26
|
+
|
|
27
|
+
assert ModelJoints().to_model(joints) == joints and ModelJoints().from_model(joints) == joints
|
|
28
|
+
assert isinstance(joint_convention("fanuc"), FanucJoints)
|
|
29
|
+
assert isinstance(joint_convention("model"), ModelJoints)
|
|
@@ -27,6 +27,7 @@ from spatialmath import SE3
|
|
|
27
27
|
from griip_core.generated import griip_pb2 as pb
|
|
28
28
|
from griip_sdk.cell.end_effector_collision_model import EndEffectorCollisionModel
|
|
29
29
|
from griip_sdk.hardware.camera import CameraManager, GrabResult
|
|
30
|
+
from griip_sdk.hardware.joint_conventions import JointConvention
|
|
30
31
|
from griip_sdk.hardware.robot_interface import GraspRobot, mm_deg_to_se3
|
|
31
32
|
from griip_sdk.orchestration.perception_inputs import build_generate_picks_request
|
|
32
33
|
from griip_sdk.orchestration.proto_conversions import bin_wall_to_proto, bin_walls_to_proto
|
|
@@ -70,6 +71,7 @@ class GraspProvider:
|
|
|
70
71
|
camera_manager: CameraManager,
|
|
71
72
|
robot: GraspRobot,
|
|
72
73
|
check_reachability: bool,
|
|
74
|
+
joints: JointConvention,
|
|
73
75
|
tcp_to_camera: SE3,
|
|
74
76
|
tcp_to_flange: SE3,
|
|
75
77
|
camera_intrinsics_flat: list[float],
|
|
@@ -89,6 +91,8 @@ class GraspProvider:
|
|
|
89
91
|
self._robot = robot
|
|
90
92
|
# True when the server skipped IK: the robot's IK vets each target on pop.
|
|
91
93
|
self._check_reachability = check_reachability
|
|
94
|
+
# The robot's joints <-> the model's (URDF radians), which the SDK and VAMP work in.
|
|
95
|
+
self._joints = joints
|
|
92
96
|
self._tcp_to_camera = tcp_to_camera
|
|
93
97
|
self._tcp_to_flange = tcp_to_flange
|
|
94
98
|
self._camera_intrinsics_flat = camera_intrinsics_flat
|
|
@@ -132,7 +136,7 @@ class GraspProvider:
|
|
|
132
136
|
"""
|
|
133
137
|
if bin_number is not None and bin_number not in self._all_bin_walls:
|
|
134
138
|
raise ValueError(f"bin_number {bin_number} is not in runtime.bins.available ({self.bin_numbers})")
|
|
135
|
-
joint_angles =
|
|
139
|
+
joint_angles = self._joints.to_model(self._robot.get_joint_angles())
|
|
136
140
|
tcp_pose = mm_deg_to_se3(self._robot.get_tcp_pose())
|
|
137
141
|
grab_result = self._camera_manager.grab()
|
|
138
142
|
stored = _StoredCapture(
|
|
@@ -208,7 +212,7 @@ class GraspProvider:
|
|
|
208
212
|
continue
|
|
209
213
|
try:
|
|
210
214
|
if current_joint_angles is None:
|
|
211
|
-
current_joint_angles =
|
|
215
|
+
current_joint_angles = self._joints.to_model(self._robot.get_joint_angles())
|
|
212
216
|
reachable = self._with_robot_ik(candidate, current_joint_angles)
|
|
213
217
|
except Exception:
|
|
214
218
|
with self._state:
|
|
@@ -304,10 +308,15 @@ class GraspProvider:
|
|
|
304
308
|
def plan(self, start_joint_angles: list[float], goal_joint_angles: list[float]) -> Optional[list[list[float]]]:
|
|
305
309
|
"""A collision-free joint path from start to goal, or None when there is none.
|
|
306
310
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
311
|
+
Joints in and out are the robot's (``robot.joint_convention``). VAMP
|
|
312
|
+
plans the arm plus gripper and camera spheres against the cell cuboids.
|
|
313
|
+
Run the waypoints as joint moves with no blending: only the straight
|
|
314
|
+
joint-space segments between them are checked.
|
|
310
315
|
"""
|
|
316
|
+
model_path = self._plan_model(self._joints.to_model(start_joint_angles), self._joints.to_model(goal_joint_angles))
|
|
317
|
+
return None if model_path is None else [self._joints.from_model(waypoint) for waypoint in model_path]
|
|
318
|
+
|
|
319
|
+
def _plan_model(self, start_joint_angles: list[float], goal_joint_angles: list[float]) -> Optional[list[list[float]]]:
|
|
311
320
|
response = cast(Any, self._planning_stub).PlanPath(
|
|
312
321
|
pb.PlanPathRequest(
|
|
313
322
|
start_joint_angles=list(start_joint_angles),
|
|
@@ -320,20 +329,21 @@ class GraspProvider:
|
|
|
320
329
|
return [list(waypoint.values) for waypoint in response.trajectory]
|
|
321
330
|
|
|
322
331
|
def _with_robot_ik(self, target: GraspTarget, seed_joint_angles: list[float]) -> Optional[GraspTarget]:
|
|
323
|
-
|
|
332
|
+
"""IK and a path for ``target``, seeded from ``seed_joint_angles`` (model joints); joints on the result are the robot's."""
|
|
333
|
+
approach_joint_angles = self._robot.inverse_kinematics(target.approach_pose_mm_deg, self._joints.from_model(seed_joint_angles))
|
|
324
334
|
if approach_joint_angles is None:
|
|
325
335
|
return None
|
|
326
|
-
grasp_joint_angles = self._robot.inverse_kinematics(target.grasp_pose_mm_deg, approach_joint_angles)
|
|
336
|
+
grasp_joint_angles = self._robot.inverse_kinematics(target.grasp_pose_mm_deg, list(approach_joint_angles))
|
|
327
337
|
if grasp_joint_angles is None:
|
|
328
338
|
return None
|
|
329
|
-
approach_trajectory = self.
|
|
339
|
+
approach_trajectory = self._plan_model(seed_joint_angles, self._joints.to_model(approach_joint_angles))
|
|
330
340
|
if approach_trajectory is None:
|
|
331
341
|
return None
|
|
332
342
|
return replace(
|
|
333
343
|
target,
|
|
334
344
|
approach_joint_angles=list(approach_joint_angles),
|
|
335
345
|
grasp_joint_angles=list(grasp_joint_angles),
|
|
336
|
-
approach_trajectory=approach_trajectory,
|
|
346
|
+
approach_trajectory=[self._joints.from_model(waypoint) for waypoint in approach_trajectory],
|
|
337
347
|
)
|
|
338
348
|
|
|
339
349
|
def _request_extras(self, bin_number: Optional[int]) -> dict[str, Any]:
|
|
@@ -11,6 +11,7 @@ import numpy as np
|
|
|
11
11
|
import pytest
|
|
12
12
|
from spatialmath import SE3
|
|
13
13
|
|
|
14
|
+
from griip_sdk.hardware.joint_conventions import FanucJoints, JointConvention, ModelJoints
|
|
14
15
|
from griip_sdk.hardware.mocks.camera_mock import MockCameraManager
|
|
15
16
|
from griip_sdk.hardware.robot_interface import mm_deg_to_se3, se3_to_mm_deg
|
|
16
17
|
from griip_sdk.orchestration.grasp_provider import GraspProvider
|
|
@@ -157,6 +158,7 @@ def _provider(
|
|
|
157
158
|
camera: MockCameraManager | None = None,
|
|
158
159
|
check_reachability: bool = False,
|
|
159
160
|
planning_stub: _FakePlanningStub | None = None,
|
|
161
|
+
joints: JointConvention | None = None,
|
|
160
162
|
) -> GraspProvider:
|
|
161
163
|
collision_model = MagicMock()
|
|
162
164
|
collision_model.get_spheres.return_value = []
|
|
@@ -166,6 +168,7 @@ def _provider(
|
|
|
166
168
|
camera_manager=camera or MockCameraManager(), # type: ignore[arg-type]
|
|
167
169
|
robot=robot or _FakeRobot(),
|
|
168
170
|
check_reachability=check_reachability,
|
|
171
|
+
joints=joints or ModelJoints(),
|
|
169
172
|
tcp_to_camera=TCP_TO_CAMERA,
|
|
170
173
|
tcp_to_flange=TCP_TO_FLANGE,
|
|
171
174
|
camera_intrinsics_flat=[600.0, 0.0, 320.0, 0.0, 600.0, 240.0, 0.0, 0.0, 1.0],
|
|
@@ -521,3 +524,26 @@ def test_plan_returns_waypoints_or_none() -> None:
|
|
|
521
524
|
|
|
522
525
|
assert provider.plan([0.0] * 6, [0.2] * 6) == [[0.0] * 6, [0.1] * 6, [0.2] * 6]
|
|
523
526
|
assert provider.plan([0.0] * 6, [1.0] * 6) is None
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
def test_fanuc_robot_gets_and_returns_pendant_degrees_while_vamp_plans_in_model_joints() -> None:
|
|
530
|
+
robot, planner = _FakeRobot(), _FakePlanningStub()
|
|
531
|
+
robot.joint_angles = [10.0, 20.0, -30.0, 0.0, 45.0, 90.0] # pendant degrees
|
|
532
|
+
provider = _provider(
|
|
533
|
+
_FakePickingStub(default=_unchecked(_pick_result(1, 1, checked=False))),
|
|
534
|
+
robot=robot,
|
|
535
|
+
check_reachability=True,
|
|
536
|
+
planning_stub=planner,
|
|
537
|
+
joints=FanucJoints(),
|
|
538
|
+
)
|
|
539
|
+
provider.capture("left", bin_number=1)
|
|
540
|
+
provider.process("left")
|
|
541
|
+
|
|
542
|
+
target = provider.next_target(timeout=5.0)
|
|
543
|
+
|
|
544
|
+
assert target is not None and target.approach_trajectory is not None
|
|
545
|
+
(_, approach_seed, _), _ = robot.ik_calls
|
|
546
|
+
assert approach_seed == pytest.approx(robot.joint_angles) # the IK seed goes back in degrees
|
|
547
|
+
assert list(planner.requests[0].start_joint_angles) == pytest.approx(FanucJoints().to_model(robot.joint_angles))
|
|
548
|
+
assert target.approach_trajectory[0] == pytest.approx(robot.joint_angles)
|
|
549
|
+
assert target.approach_trajectory[-1] == pytest.approx(target.approach_joint_angles)
|
{griip_sdk_dev-0.6.0.dev25643 → griip_sdk_dev-0.6.0.dev25682}/src/griip_sdk/orchestration/types.py
RENAMED
|
@@ -306,8 +306,8 @@ class GraspTarget:
|
|
|
306
306
|
solutions when the SDK checked reachability with it, else None.
|
|
307
307
|
``approach_trajectory`` is a collision-free joint path to the approach
|
|
308
308
|
(VAMP, arm plus gripper and camera against the cell cuboids): run it as
|
|
309
|
-
joint moves with no blending, waypoint by waypoint. Joints are
|
|
310
|
-
|
|
309
|
+
joint moves with no blending, waypoint by waypoint. Joints are in the
|
|
310
|
+
robot's ``robot.joint_convention``.
|
|
311
311
|
|
|
312
312
|
The rest is what the server used for this grasp, straight from the pick
|
|
313
313
|
result, so an app running its own plunge/scoop never re-reads grasps.json:
|
|
File without changes
|
|
File without changes
|