roboapi 0.4.5__tar.gz → 0.5.0__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.
- {roboapi-0.4.5 → roboapi-0.5.0}/MANIFEST.in +2 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/PKG-INFO +24 -6
- {roboapi-0.4.5 → roboapi-0.5.0}/README.md +22 -4
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/calibration.md +137 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/installation.md +1 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/model-api.md +77 -3
- roboapi-0.5.0/docs/releases/v0.5.0.md +72 -0
- roboapi-0.5.0/docs/yam-ik.md +63 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/zh-CN/README.md +20 -3
- roboapi-0.5.0/examples/compare_yam_ik.py +172 -0
- roboapi-0.5.0/examples/yam_xctrl_robot_client.py +450 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/App.test.tsx +203 -3
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/App.tsx +31 -6
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/api.ts +49 -11
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CameraView.test.tsx +10 -6
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CameraView.tsx +71 -60
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/DevicesDialog.tsx +13 -6
- roboapi-0.5.0/frontend/src/components/DualCalibrationDialog.tsx +180 -0
- roboapi-0.5.0/frontend/src/components/DualCalibrationSettings.tsx +63 -0
- roboapi-0.5.0/frontend/src/components/DualPolicySettings.tsx +92 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/InstructionPanel.tsx +70 -15
- roboapi-0.5.0/frontend/src/components/RobotLifecycleButton.tsx +53 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/StopButton.tsx +8 -2
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/TaskHistory.tsx +11 -2
- roboapi-0.5.0/frontend/src/components/calibration/DualAlignmentResult.tsx +63 -0
- roboapi-0.5.0/frontend/src/components/calibration/DualCalibrationViews.tsx +120 -0
- roboapi-0.5.0/frontend/src/components/calibration/DualRigDiagram.tsx +395 -0
- roboapi-0.5.0/frontend/src/components/calibration/dual-calibration.css +235 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/format.ts +3 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/i18n.tsx +121 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/notifications.test.ts +10 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/notifications.ts +5 -1
- roboapi-0.5.0/frontend/src/pages/DualCalibrationPage.tsx +38 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/pages/RunPage.tsx +25 -7
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/pages/SettingsPage.tsx +137 -110
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/styles.css +184 -8
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/test/fixtures.ts +1 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/useCameraPreview.test.tsx +3 -2
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/useCameraPreview.ts +25 -15
- {roboapi-0.4.5 → roboapi-0.5.0}/pyproject.toml +6 -2
- roboapi-0.5.0/roboapi/calibration/dual.py +535 -0
- roboapi-0.5.0/roboapi/calibration/dual_profile.py +57 -0
- roboapi-0.5.0/roboapi/calibration/robot_client.py +218 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/cli.py +125 -0
- roboapi-0.5.0/roboapi/dual_policy.py +243 -0
- roboapi-0.5.0/roboapi/dual_run.py +452 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/geometry.py +38 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/mcp.py +9 -4
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/policy/__init__.py +2 -2
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/policy/client.py +152 -18
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/policy/protocol.py +97 -22
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/records.py +2 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/server.py +138 -30
- roboapi-0.5.0/roboapi/web/static/assets/CalibrationScene-C6YZWfVb.js +4216 -0
- roboapi-0.5.0/roboapi/web/static/assets/DualAlignmentResult-D0BQ-B-I.js +1 -0
- roboapi-0.5.0/roboapi/web/static/assets/index-B3kVxK39.css +1 -0
- roboapi-0.5.0/roboapi/web/static/assets/index-DtJM_Rfs.js +28 -0
- roboapi-0.5.0/roboapi/web/static/assets/three.core-bX4gSOa2.js +5 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/index.html +2 -2
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/PKG-INFO +24 -6
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/SOURCES.txt +26 -3
- roboapi-0.5.0/tests/test_dual_calibration.py +656 -0
- roboapi-0.5.0/tests/test_dual_policy.py +160 -0
- roboapi-0.5.0/tests/test_dual_run.py +214 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_policy.py +175 -2
- {roboapi-0.4.5 → roboapi-0.5.0}/uv.lock +1 -1
- roboapi-0.4.5/roboapi/web/static/assets/CalibrationScene-5G_QRvLJ.js +0 -4220
- roboapi-0.4.5/roboapi/web/static/assets/index-BKtDMtWh.js +0 -27
- roboapi-0.4.5/roboapi/web/static/assets/index-wKYVYXw0.css +0 -1
- {roboapi-0.4.5 → roboapi-0.5.0}/.python-version +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/DESIGN.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/LICENSE +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/NOTICE +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/development.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/embodiments.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/naming.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.2.10.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.2.11.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.2.8.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.2.9.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.3.0.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.0.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.1.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.2.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.3.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.4.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/releases/v0.4.5.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/repository-rename.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/docs/zh-CN/DESIGN.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/BRAND.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/asset-provenance.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/index.html +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/package-lock.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/package.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/Bundler-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/Inter-OFL.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/Lucide-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/Meshoptimizer-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/PokeBrand-NOTICE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/React-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/public/assets/Three-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/api.test.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/brand/Inter-Variable.ttf +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/brand/MiSans-Regular.woff2 +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/brand/MiSans-Semibold.woff2 +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/brand/logo-1.png +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/calibration/README.md +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/calibration/home-reference.png +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/assets/calibration/robotiq-ace-pro-2.glb +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/cameraStream.test.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/cameraStream.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/Brand.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CalibrationDialog.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CalibrationDialog.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CalibrationIllustration.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CalibrationIllustration.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/CalibrationScene.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/Dialog.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/DirectionCheckDialog.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/DirectionCheckDialog.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/Icon.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/LogsPanel.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/Notification.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/Popover.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/PresetChips.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/PresetChips.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/PresetsPanel.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/RunInfoDialog.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/SettingsPanel.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/SettingsPanel.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/StorageSettings.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/StorageSettings.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/TaskHistory.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/WorkspaceSettings.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/WorkspaceSettings.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/calibration/camera-lens.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/calibration/direction-motion.test.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/calibration/direction-motion.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/calibration/locking-pins.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/components/calibration.css +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/main.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/naming.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/naming.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/pages/SettingsPage.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/test/mockCamera.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/test/setup.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/usePolling.test.tsx +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/src/usePolling.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/tsconfig.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/frontend/vite.config.ts +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/calibration/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/calibration/profile.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/calibration/session.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/config/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/config/loader.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/config/models.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/embodiment.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/errors.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/base.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/camera.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/arm.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/desk.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/feedback.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/guiding.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/ik.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/limits.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/franka/settings.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/registry.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/robotiq.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/scaffold.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/templates/README.md.tmpl +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/templates/arm.py.tmpl +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/templates/camera.py.tmpl +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/templates/gripper.py.tmpl +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/templates/pyproject.toml.tmpl +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/build.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/compliant.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/dashboard.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/feedback.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/ipc.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/CMakeLists.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/dependencies.lock.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/cartesian_speedl.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/control_loop.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/geom.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/motion_primitives.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/robot_io.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/streaming_pose.hpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/src/control_loop.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/src/robot_io_urcl.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/cartesian_speedl_unit.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/control_modes_unit.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/streaming_pose_unit.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/velocity_governor_unit.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/native/worker.cpp +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/position.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/hardware/ur/settings.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/images.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/initialize.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/motion.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/naming.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/operations.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/policy/settings.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/product-names.json +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/runtime.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/semantics.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/tasks.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/tool.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/__init__.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/presets.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Bundler-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Inter-OFL.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Inter-Variable-c8O0ljhh.ttf +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Lucide-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Meshoptimizer-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/MiSans-Regular-ES4DrbaF.woff2 +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/MiSans-Semibold-B34HIk9C.woff2 +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/PokeBrand-NOTICE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/React-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/Three-LICENSE.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/home-reference-CTpf8-oV.png +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi/web/static/assets/robotiq-ace-pro-2-EJuoOXTy.glb +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/dependency_links.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/entry_points.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/requires.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/roboapi.egg-info/top_level.txt +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/setup.cfg +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_calibration.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_chunk_boundary.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_cli.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_components.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_config.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_direction_check.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_initialize.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_instruction_pending.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_mcp.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_monitor_error_clear.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_motion.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_naming.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_preview.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_runtime.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_sessions.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_storage.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_task_runtime.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_task_web.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_tasks.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_web.py +0 -0
- {roboapi-0.4.5 → roboapi-0.5.0}/tests/test_workspace.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: roboapi
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Run
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Run single-arm and dual-arm robot policies through a local browser console.
|
|
5
5
|
Author: PokeBot
|
|
6
6
|
License-Expression: Apache-2.0 AND MIT AND ISC AND OFL-1.1 AND LicenseRef-MiSans
|
|
7
7
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -42,11 +42,11 @@ Dynamic: license-file
|
|
|
42
42
|
|
|
43
43
|
> Version 0.3.0 renames the Python package, CLI and import to `roboapi`. Use a new environment and configuration; existing `robomcp` releases are different artifacts.
|
|
44
44
|
|
|
45
|
-
Test and run
|
|
45
|
+
Test and run single-arm and dual-arm robot policies through a local browser console or an MCP agent.
|
|
46
46
|
|
|
47
|
-
RoboAPI connects
|
|
48
|
-
session-based model API.
|
|
49
|
-
|
|
47
|
+
For single-arm setups (UR and Franka), RoboAPI connects an arm, a Robotiq parallel gripper and a wrist fisheye camera to a
|
|
48
|
+
session-based model API. For dual-arm setups, RoboAPI connects a local loopback Robot Client and provides EE calibration, a
|
|
49
|
+
multi-camera browser console and a local Policy HTTP port.
|
|
50
50
|
|
|
51
51
|
The source archive on PyPI includes complete installation, calibration and model API guides
|
|
52
52
|
in `docs/`: select **Download files** on the PyPI project page, download the `.tar.gz` archive,
|
|
@@ -91,6 +91,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
|
|
|
91
91
|
| Franka FR3, system 5.9+ | `uv pip install 'roboapi[franka,gripper]'` |
|
|
92
92
|
| Franka FR3, system 5.6.0 | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.13.3' --index https://timschneider42.github.io/franky/whl/libfranka-0.13.3/` |
|
|
93
93
|
| Franka Panda, system 4.2.1–4.x | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.9.2' --index https://timschneider42.github.io/franky/whl/libfranka-0.9.2/` |
|
|
94
|
+
| Dual-arm (Robot Client) | `uv pip install roboapi` |
|
|
94
95
|
|
|
95
96
|
UR e-Series additionally needs its native runtime built on the host:
|
|
96
97
|
|
|
@@ -175,6 +176,22 @@ recordings while keeping instructions and feedback, or delete whole tasks after
|
|
|
175
176
|
Active tasks and recordings still being saved are skipped. Device shortcuts remain in the main header.
|
|
176
177
|
**Logs** opens a floating panel with a text filter; the camera and instruction controls remain in place and stay usable.
|
|
177
178
|
|
|
179
|
+
## Dual-arm console
|
|
180
|
+
|
|
181
|
+
For a dual-arm workcell exposing the loopback [Robot Client HTTP contract](docs/calibration.md#robot-client-http-contract), start the dual-arm console with the model credentials:
|
|
182
|
+
|
|
183
|
+
```sh
|
|
184
|
+
roboapi dual-console \
|
|
185
|
+
--robot-client http://127.0.0.1:8765 \
|
|
186
|
+
--base-url https://api.pokebot.com/v1 \
|
|
187
|
+
--model "$PLATFORM_MODEL" \
|
|
188
|
+
--token-file "$PLATFORM_TOKEN_FILE" \
|
|
189
|
+
--port 8080 \
|
|
190
|
+
--policy-port 8081
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Select the matching robot identifier in **Settings → Model & runtime**, complete **Settings → Devices → Dual-arm calibration** (or run `roboapi calibrate-dual` and `roboapi check-dual-calibration`), and use the browser UI on port `8080` or the local Policy HTTP API on port `8081`. See [Dual-arm EE calibration](docs/calibration.md#dual-arm-ee-calibration) and [Model API](docs/model-api.md#local-dual-arm-policy-port).
|
|
194
|
+
|
|
178
195
|
## Connect an agent
|
|
179
196
|
|
|
180
197
|
Choose one startup mode for an installation:
|
|
@@ -199,6 +216,7 @@ The browser and agent share devices and settings. Stop the run before switching
|
|
|
199
216
|
| `docs/calibration.md` | Home, reference plane and shared task coordinates |
|
|
200
217
|
| `docs/model-api.md` | Sessions, observations, actions and execution feedback |
|
|
201
218
|
| `docs/development.md` | Source setup, tests, packaging and releases |
|
|
219
|
+
| `docs/yam-ik.md` | Offline YAM inverse kinematics solver comparison |
|
|
202
220
|
| `DESIGN.md` | Product scope and architecture |
|
|
203
221
|
|
|
204
222
|
CI checks Python 3.10–3.12, frontend tests, hardware SDK imports and the installed web package,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
> Version 0.3.0 renames the Python package, CLI and import to `roboapi`. Use a new environment and configuration; existing `robomcp` releases are different artifacts.
|
|
4
4
|
|
|
5
|
-
Test and run
|
|
5
|
+
Test and run single-arm and dual-arm robot policies through a local browser console or an MCP agent.
|
|
6
6
|
|
|
7
|
-
RoboAPI connects
|
|
8
|
-
session-based model API.
|
|
9
|
-
|
|
7
|
+
For single-arm setups (UR and Franka), RoboAPI connects an arm, a Robotiq parallel gripper and a wrist fisheye camera to a
|
|
8
|
+
session-based model API. For dual-arm setups, RoboAPI connects a local loopback Robot Client and provides EE calibration, a
|
|
9
|
+
multi-camera browser console and a local Policy HTTP port.
|
|
10
10
|
|
|
11
11
|
The source archive on PyPI includes complete installation, calibration and model API guides
|
|
12
12
|
in `docs/`: select **Download files** on the PyPI project page, download the `.tar.gz` archive,
|
|
@@ -51,6 +51,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
|
|
|
51
51
|
| Franka FR3, system 5.9+ | `uv pip install 'roboapi[franka,gripper]'` |
|
|
52
52
|
| Franka FR3, system 5.6.0 | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.13.3' --index https://timschneider42.github.io/franky/whl/libfranka-0.13.3/` |
|
|
53
53
|
| Franka Panda, system 4.2.1–4.x | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.9.2' --index https://timschneider42.github.io/franky/whl/libfranka-0.9.2/` |
|
|
54
|
+
| Dual-arm (Robot Client) | `uv pip install roboapi` |
|
|
54
55
|
|
|
55
56
|
UR e-Series additionally needs its native runtime built on the host:
|
|
56
57
|
|
|
@@ -135,6 +136,22 @@ recordings while keeping instructions and feedback, or delete whole tasks after
|
|
|
135
136
|
Active tasks and recordings still being saved are skipped. Device shortcuts remain in the main header.
|
|
136
137
|
**Logs** opens a floating panel with a text filter; the camera and instruction controls remain in place and stay usable.
|
|
137
138
|
|
|
139
|
+
## Dual-arm console
|
|
140
|
+
|
|
141
|
+
For a dual-arm workcell exposing the loopback [Robot Client HTTP contract](docs/calibration.md#robot-client-http-contract), start the dual-arm console with the model credentials:
|
|
142
|
+
|
|
143
|
+
```sh
|
|
144
|
+
roboapi dual-console \
|
|
145
|
+
--robot-client http://127.0.0.1:8765 \
|
|
146
|
+
--base-url https://api.pokebot.com/v1 \
|
|
147
|
+
--model "$PLATFORM_MODEL" \
|
|
148
|
+
--token-file "$PLATFORM_TOKEN_FILE" \
|
|
149
|
+
--port 8080 \
|
|
150
|
+
--policy-port 8081
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Select the matching robot identifier in **Settings → Model & runtime**, complete **Settings → Devices → Dual-arm calibration** (or run `roboapi calibrate-dual` and `roboapi check-dual-calibration`), and use the browser UI on port `8080` or the local Policy HTTP API on port `8081`. See [Dual-arm EE calibration](docs/calibration.md#dual-arm-ee-calibration) and [Model API](docs/model-api.md#local-dual-arm-policy-port).
|
|
154
|
+
|
|
138
155
|
## Connect an agent
|
|
139
156
|
|
|
140
157
|
Choose one startup mode for an installation:
|
|
@@ -159,6 +176,7 @@ The browser and agent share devices and settings. Stop the run before switching
|
|
|
159
176
|
| `docs/calibration.md` | Home, reference plane and shared task coordinates |
|
|
160
177
|
| `docs/model-api.md` | Sessions, observations, actions and execution feedback |
|
|
161
178
|
| `docs/development.md` | Source setup, tests, packaging and releases |
|
|
179
|
+
| `docs/yam-ik.md` | Offline YAM inverse kinematics solver comparison |
|
|
162
180
|
| `DESIGN.md` | Product scope and architecture |
|
|
163
181
|
|
|
164
182
|
CI checks Python 3.10–3.12, frontend tests, hardware SDK imports and the installed web package,
|
|
@@ -74,6 +74,9 @@ motion targets use its inverse. Reset streams a Cartesian path to this same Home
|
|
|
74
74
|
returns the resolved path as `profile_file`. The file stores Home, reference-plane and return
|
|
75
75
|
samples plus installation identity. Later starts reuse it; recalibration replaces it.
|
|
76
76
|
It stays outside Git. Recalibrate after changing the installation, Home or axes.
|
|
77
|
+
RoboAPI loads the file on the robot host and applies the mapping locally. The policy
|
|
78
|
+
session creation request contains the model name. Inference sends the mapped pose,
|
|
79
|
+
gripper opening, image and instruction, with the session metadata and pending feedback.
|
|
77
80
|
|
|
78
81
|
During an automatic return, the active operation button becomes **Stop**. The Run view's
|
|
79
82
|
**Stop** also interrupts capture or automatic returns.
|
|
@@ -199,3 +202,137 @@ Undo keeps the guiding session open; undoing Home restores unrestricted Home tea
|
|
|
199
202
|
Panda 4.x uses its control-token FCI endpoint to switch between motion and native guiding;
|
|
200
203
|
FR3 uses its detected Desk operating-mode protocol. Both use the same Home/A/B/C flow and Cartesian mapping.
|
|
201
204
|
The driver selects joint position, velocity and acceleration limits for the configured model.
|
|
205
|
+
|
|
206
|
+
## Dual-arm EE calibration
|
|
207
|
+
|
|
208
|
+
Start your workcell's Robot Client on the control computer. Use the same
|
|
209
|
+
RoboAPI package for both embodiments. The dual-arm Robot Client has an explicit
|
|
210
|
+
lifecycle: **start** enables control and returns Home; **stop** folds both arms
|
|
211
|
+
to the controller's fully folded pose and releases control. The console uses one
|
|
212
|
+
toggle for these operations; Home remains a separate idle action. While stopped, it shows no camera frames and
|
|
213
|
+
rejects prompts and calibration. Start the client before opening calibration or
|
|
214
|
+
running a task. For a dual-arm workcell, start the console with the model and
|
|
215
|
+
robot ID selected from model discovery.
|
|
216
|
+
|
|
217
|
+
```sh
|
|
218
|
+
roboapi dual-console \
|
|
219
|
+
--robot-client http://127.0.0.1:8765 \
|
|
220
|
+
--base-url "$PLATFORM_BASE_URL" \
|
|
221
|
+
--model "$PLATFORM_MODEL" \
|
|
222
|
+
--token-file "$PLATFORM_TOKEN_FILE" \
|
|
223
|
+
--port 8080 \
|
|
224
|
+
--policy-port 8081
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Choose the matching supported embodiment in **Settings → Model & runtime**.
|
|
228
|
+
An incorrect choice can reduce policy performance. If your robot is missing
|
|
229
|
+
from the list, select the closest arm, gripper, and camera configuration.
|
|
230
|
+
Performance with that configuration is not guaranteed. The action range defaults
|
|
231
|
+
to `10-42`. It is a half-open interval, so the default executes 32 actions from
|
|
232
|
+
the middle of the model output. Enter a range such as `10-42` to skip the first
|
|
233
|
+
10 actions and execute actions 10 through 41.
|
|
234
|
+
|
|
235
|
+
Open **Settings → Devices → Dual-arm calibration**. Place both arms in an open
|
|
236
|
+
calibration pose, then confirm the pose and save the calibration. The wizard
|
|
237
|
+
captures the current measured pose as a session-only calibration anchor.
|
|
238
|
+
Each EE origin is its arm's flange center. RoboAPI applies the saved
|
|
239
|
+
left and right EE-axis rotations to observations and their inverses to
|
|
240
|
+
actions. The run page shows the head over two half-width wrist views.
|
|
241
|
+
Recording uses the head camera.
|
|
242
|
+
|
|
243
|
+
Open **Calibration self-check** in the same device settings, or run:
|
|
244
|
+
|
|
245
|
+
```sh
|
|
246
|
+
roboapi check-dual-calibration \
|
|
247
|
+
--robot-client http://127.0.0.1:8765 \
|
|
248
|
+
--profile ~/.config/roboapi/dual/dual-calibration.json
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
The check validates the station ID, both stored rotations, and live observations
|
|
252
|
+
without requesting motion. If a
|
|
253
|
+
real move is visibly wrong, repeat calibration and inspect the camera mounts.
|
|
254
|
+
|
|
255
|
+
### Robot Client HTTP contract
|
|
256
|
+
|
|
257
|
+
Listen on loopback and serve these JSON endpoints. RoboAPI connects to this service
|
|
258
|
+
and uses the controller's motion limits and stop behavior.
|
|
259
|
+
|
|
260
|
+
| Endpoint | Request and response |
|
|
261
|
+
| --- | --- |
|
|
262
|
+
| `GET /v1/info` | Returns `{"calibration_id":"yam-station-1","control_state":"started"}`. `control_state` is `started` or `stopped`; the Robot Client identifies its physical installation so RoboAPI can match the saved calibration. Change the identifier when equipment or mounting changes require recalibration. |
|
|
263
|
+
| `POST /v1/start` | Receives `{}`. Enables control, returns the arms to the controller's Home pose, and returns `{"status":"completed"}` after both steps finish. |
|
|
264
|
+
| `GET /v1/observation` | In the started state, returns the latest synchronized `state_eepose`, `camera_ego`, `camera_left`, and `camera_right`. The three camera fields are base64 RGB PNG or JPEG data URLs. In the stopped state, return HTTP 409 without images. |
|
|
265
|
+
| `POST /v1/actions` | Receives `left_arm`, `left_gripper`, `right_arm`, and `right_gripper`. Returns `{"status":"completed","executed_steps":T}` after settling, or `{"status":"interrupted","executed_steps":N}` after stopping. |
|
|
266
|
+
| `POST /v1/home` | Receives `{}`. Returns `{"status":"completed"}` at the controller's configured initial pose, or `{"status":"interrupted"}` after stopping. |
|
|
267
|
+
| `POST /v1/stop` | Receives `{}`. Stops active motion, returns both arms to the fully folded pose, releases control, and returns `{"status":"stopped"}` only after all three steps finish. |
|
|
268
|
+
|
|
269
|
+
`state_eepose` contains 20 finite values in left-then-right order. Each arm supplies
|
|
270
|
+
absolute flange-center XYZ in meters, the first two rotation-matrix columns in
|
|
271
|
+
column order, and a normalized gripper opening. Use the same frame for state and
|
|
272
|
+
targets, with `0` closed and `1` open. `camera_ego` is the head view.
|
|
273
|
+
|
|
274
|
+
Each arm array has shape `[T, 9]` and each gripper array has shape `[T, 1]`.
|
|
275
|
+
Do not serve observations while stopped; the console clears its cached frames
|
|
276
|
+
when Stop completes. Dispatch both arms together by row, preferably at 30 Hz.
|
|
277
|
+
Accept one lifecycle operation, action block or Home request at a time and reject a concurrent motion. Send HTTP 200
|
|
278
|
+
headers after reserving the motion slot, then keep the response body open until
|
|
279
|
+
the controller finishes or stops. Count only rows actually dispatched. Reject
|
|
280
|
+
invalid requests before sending the headers and include a JSON `error` message.
|
|
281
|
+
Use the same `error` field to report failures after admission.
|
|
282
|
+
|
|
283
|
+
Handle Stop on a separate connection. RoboAPI waits for admission before sending
|
|
284
|
+
Stop and waits for the Stop receipt and the motion response before issuing another
|
|
285
|
+
motion. The Stop receipt must mean that folding and control release are complete.
|
|
286
|
+
Use a bounded execution time in the local controller. At the beginning
|
|
287
|
+
of dual-arm calibration, the wizard records the current stationary observation
|
|
288
|
+
as the session anchor and uses it for the calibration reset action. Starting
|
|
289
|
+
the Robot Client returns to the controller's own Home; the console keeps Home
|
|
290
|
+
as a separate idle action from the lifecycle toggle.
|
|
291
|
+
|
|
292
|
+
Before selecting Start, place both wrists level with the grippers open and facing
|
|
293
|
+
straight ahead. The current pose becomes the session anchor, so the controller's
|
|
294
|
+
normal Home can remain fully folded.
|
|
295
|
+
The default trial moves 5 cm. Leave at least that much room above, below, to
|
|
296
|
+
the left and right of each gripper, with space for forward and backward trials.
|
|
297
|
+
Confirm the flange origins, upright wrist cameras and at least 10 cm clearance
|
|
298
|
+
for both arms in each direction. With a probe above 5 cm, the wizard asks for
|
|
299
|
+
twice the probe distance. The starting 3D view marks the
|
|
300
|
+
standard frame at both flange centres: +X right in the wrist image, +Y down,
|
|
301
|
+
and +Z forward along the fingers. Native axes can be swapped or reversed. Each
|
|
302
|
+
axis must remain parallel to a target axis for this calibration to correct it.
|
|
303
|
+
Probe native +Z, +Y and +X on the right arm first, then on the left. Observe each
|
|
304
|
+
actual direction and select one of the six arrows in the 3D gripper close-up.
|
|
305
|
+
The X, Y and Z axes use red, green and blue in both the close-up and the active
|
|
306
|
+
wrist view. The wrist schematic projects the visible portion of the gripper
|
|
307
|
+
from the camera above its palm.
|
|
308
|
+
Set the direction trial distance to 2, 3 or 5 cm in the wizard. It defaults to
|
|
309
|
+
5 cm, or the initial distance supplied via `--distance`. Each translation
|
|
310
|
+
eases in and out over about 2 seconds at 30 Hz. **Retry this test**
|
|
311
|
+
returns the tested arm to the recorded starting position before replaying a
|
|
312
|
+
completed trial. A rejected first trial can be retried directly.
|
|
313
|
+
For a gripper, Retry first sends the opposite opening and then repeats the
|
|
314
|
+
selected opening. **Reset to calibration pose** returns to the session anchor
|
|
315
|
+
captured at Start and keeps completed steps. It does not call the Robot Client's
|
|
316
|
+
Home operation. After resetting, run the current trial again.
|
|
317
|
+
|
|
318
|
+
For each arm, the three answers define a signed axis permutation. Its inverse
|
|
319
|
+
is the right rotation `Q`. In the verification trials, confirm that
|
|
320
|
+
`R_native @ Q` sends +Z along the fingers, +Y down the wrist image, and +X
|
|
321
|
+
right in the wrist image. Confirm that each gripper closes at 0 and opens at 1.
|
|
322
|
+
The operator judges the trial from the observed motion and the controller
|
|
323
|
+
handles tracking. The wizard replaces the output profile after all confirmations.
|
|
324
|
+
|
|
325
|
+
After the right arm passes all three direction checks, choose **Calibrate left arm
|
|
326
|
+
separately** or **Reuse right arm settings**. Reusing the right rotation `Q` skips the three left-arm
|
|
327
|
+
probes and still requires all three left-arm direction checks. Each side keeps
|
|
328
|
+
its own interface reference rotation and gripper checks.
|
|
329
|
+
|
|
330
|
+
Choose **Did not pass** to keep the current test open for another trial.
|
|
331
|
+
To replace an incorrect rotation, choose **Relearn this arm**.
|
|
332
|
+
|
|
333
|
+
On completion the wizard animates each native tool frame rotating into the standard
|
|
334
|
+
frame and displays the absolute path of the saved file on the RoboAPI host.
|
|
335
|
+
Pass the saved profile to the dual-arm policy client. The profile carries each
|
|
336
|
+
arm's `Q` and the interface's existing right rotation `E`. The policy client
|
|
337
|
+
right-multiplies incoming orientations by `Q @ E.T` and applies its inverse to
|
|
338
|
+
outgoing orientations. Positions stay in their original base frames.
|
|
@@ -44,6 +44,7 @@ Run the installation command for one setup, then complete its hardware preparati
|
|
|
44
44
|
| Franka FR3, system 5.9+ | `uv pip install 'roboapi[franka,gripper]'` | [Franka realtime host and Desk](#franka) |
|
|
45
45
|
| Franka FR3, system 5.6.0 | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.13.3' --index https://timschneider42.github.io/franky/whl/libfranka-0.13.3/` | [Franka](#franka); import the configured load and TCP once |
|
|
46
46
|
| Franka Panda 4.2.1–4.x | `uv pip install 'roboapi[franka,gripper]' 'franky-control==2.0.0+libfranka.0.9.2' --index https://timschneider42.github.io/franky/whl/libfranka-0.9.2/` | [Franka](#franka); import the configured load and TCP once |
|
|
47
|
+
| Dual-arm (Robot Client) | `uv pip install roboapi` | [Dual-arm EE calibration](calibration.md#dual-arm-ee-calibration) and local Robot Client |
|
|
47
48
|
|
|
48
49
|
All Franka models use the `franka` extra. FR3 5.6 and Panda additionally specify a
|
|
49
50
|
matching SDK build in the same command. Only one SDK build can be installed in an environment;
|
|
@@ -164,7 +164,81 @@ The close response must contain the same ID and a messages array; `next_turn` is
|
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
The service stores the session history. Stopping the robot does not depend on successful
|
|
167
|
-
session closure
|
|
167
|
+
session closure. An unconfirmed close is reported in the process log.
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
## Local dual-arm Policy port
|
|
170
|
+
|
|
171
|
+
`roboapi dual-console` listens on loopback port 8081 by default. Use
|
|
172
|
+
`--policy-port` to set another port. Complete [dual-arm EE calibration](calibration.md#dual-arm-ee-calibration)
|
|
173
|
+
before opening a session. The service applies the saved axis rotations to
|
|
174
|
+
observations and their inverses to returned targets. The controller
|
|
175
|
+
executes the returned actions and reports the actual number dispatched.
|
|
176
|
+
|
|
177
|
+
| Endpoint | JSON request | JSON response |
|
|
178
|
+
| --- | --- | --- |
|
|
179
|
+
| `POST /v1/sessions` | `robot_id` and optional `chunk_range` such as `10-42` | `id`, `robot_id`, `chunk_range`, `chunk_length`, `next_turn` |
|
|
180
|
+
| `POST /v1/sessions/{id}/actions` | `turn`, Robot Client `observation` including `instruction`, and `executed_steps` when a previous block is pending | `actions` in native EE axes with shape `[T,20]`, `request_id`, `next_turn` |
|
|
181
|
+
| `POST /v1/sessions/{id}/close` | `executed_steps` for the pending block, or an empty object | `status: "closed"` |
|
|
182
|
+
|
|
183
|
+
## Dual-arm Cloud API from Python
|
|
184
|
+
|
|
185
|
+
For hardware integration with the local calibration console, expose the
|
|
186
|
+
[Robot Client HTTP endpoints](calibration.md#robot-client-http-contract) on the robot host.
|
|
187
|
+
The client below handles the separate cloud inference connection.
|
|
188
|
+
|
|
189
|
+
Use the same client with a public `robot` name selected from
|
|
190
|
+
`GET models/{model}/robots` (`client.list_robots()`). Session creation includes that
|
|
191
|
+
name. The client tracks the timing of the synchronized chunk.
|
|
192
|
+
|
|
193
|
+
`chunk_range` is a half-open model-output interval. The default is `10-42`, which
|
|
194
|
+
selects 32 rows from the middle of the returned action sequence. An older integer
|
|
195
|
+
`chunk_length` is still accepted as `0-end` for compatibility.
|
|
196
|
+
|
|
197
|
+
```python
|
|
198
|
+
from roboapi.policy import OpenAIChatPolicyClient
|
|
199
|
+
|
|
200
|
+
client = OpenAIChatPolicyClient(
|
|
201
|
+
base_url,
|
|
202
|
+
model=model_id,
|
|
203
|
+
robot="yam",
|
|
204
|
+
api_key=api_key,
|
|
205
|
+
image_height=None,
|
|
206
|
+
)
|
|
207
|
+
client.begin_session()
|
|
208
|
+
try:
|
|
209
|
+
chunk = client.infer_dual(
|
|
210
|
+
left_pose7=left_pose,
|
|
211
|
+
left_gripper=left_opening,
|
|
212
|
+
right_pose7=right_pose,
|
|
213
|
+
right_gripper=right_opening,
|
|
214
|
+
head=head_rgb,
|
|
215
|
+
left_wrist=left_rgb,
|
|
216
|
+
right_wrist=right_rgb,
|
|
217
|
+
instruction="Pick up the block.",
|
|
218
|
+
)
|
|
219
|
+
# Read the targets without executing them for this example.
|
|
220
|
+
print(chunk.left_arm.shape)
|
|
221
|
+
print(chunk.right_arm.shape)
|
|
222
|
+
client.record_execution(
|
|
223
|
+
chunk,
|
|
224
|
+
0,
|
|
225
|
+
completed=False,
|
|
226
|
+
)
|
|
227
|
+
finally:
|
|
228
|
+
client.end_session()
|
|
229
|
+
client.close()
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Pass absolute flange poses in the selected robot's policy frame, with package
|
|
233
|
+
quaternion order `[x, y, z, qw, qx, qy, qz]`. The client encodes each arm as
|
|
234
|
+
`XYZ[3] + rotation-matrix columns 1 and 2[6] + gripper[1]`, left arm first.
|
|
235
|
+
The three RGB images follow in head, left-wrist, right-wrist order.
|
|
236
|
+
`image_height=None` sends each image at its original size.
|
|
237
|
+
|
|
238
|
+
Each of the response's 20-value rows decodes into two wxyz flange poses and two
|
|
239
|
+
normalized gripper openings. `executed_steps` counts synchronized rows. The
|
|
240
|
+
Python client exposes these targets for the caller's dual-arm controller.
|
|
241
|
+
See the [offline YAM IK comparison](yam-ik.md) for a solver-only example.
|
|
242
|
+
|
|
243
|
+
The [client](../roboapi/policy/client.py) and [protocol implementation](../roboapi/policy/protocol.py)
|
|
244
|
+
are exercised by the [policy tests](../tests/test_policy.py) and [session tests](../tests/test_sessions.py).
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# v0.5.0 — Dual-arm Robot Client, EE calibration, and console
|
|
2
|
+
|
|
3
|
+
RoboAPI now supports both single-arm and dual-arm robot policies from the same
|
|
4
|
+
package and local browser console.
|
|
5
|
+
|
|
6
|
+
## Changes
|
|
7
|
+
|
|
8
|
+
- **Dual-arm local browser console (`roboapi dual-console`):** connects to a
|
|
9
|
+
loopback Robot Client (`--robot-client`), serves the browser UI (`--port`,
|
|
10
|
+
default `8080`) and local Policy HTTP API (`--policy-port`, default `8081`),
|
|
11
|
+
displays synchronized head and left/right wrist camera views, records tasks
|
|
12
|
+
from the head camera, and retains presets and task history under
|
|
13
|
+
`~/.config/roboapi/dual` (configurable via `--data-dir`).
|
|
14
|
+
- **Explicit dual-arm Robot Client lifecycle and task stop:**
|
|
15
|
+
- `GET /v1/info` reports `calibration_id` and `control_state` (`started` or
|
|
16
|
+
`stopped`), `POST /v1/start` enables control and returns Home, and
|
|
17
|
+
`POST /v1/stop` stops motion, returns both arms to the fully folded pose,
|
|
18
|
+
and releases control.
|
|
19
|
+
- `POST /v1/home` remains a separate idle action; `GET /v1/observation`
|
|
20
|
+
returns HTTP `409` while stopped and the console clears cached frames.
|
|
21
|
+
- Stopping a task uses **Stop task** (`POST /api/policy/stop`) without
|
|
22
|
+
stopping or folding the Robot Client.
|
|
23
|
+
- **Dual-arm EE calibration wizard and self-check:**
|
|
24
|
+
- Run `roboapi calibrate-dual` or open **Settings → Devices → Dual-arm
|
|
25
|
+
calibration** in `roboapi dual-console` to record a session-only calibration
|
|
26
|
+
anchor, probe and verify signed EE axis permutations for both arms (with
|
|
27
|
+
optional reuse of the right arm's rotation `Q` on the left arm), and save a
|
|
28
|
+
dual-arm calibration profile.
|
|
29
|
+
- Validate a saved profile and live feedback without moving the robot via
|
|
30
|
+
`roboapi check-dual-calibration` or **Calibration self-check** in device
|
|
31
|
+
settings.
|
|
32
|
+
- **Dual-arm policy client and local Policy port:**
|
|
33
|
+
- `OpenAIChatPolicyClient` adds `list_robots()` (`GET /models/{model}/robots`)
|
|
34
|
+
and `infer_dual(...)`, encoding 20-value dual-arm EE state/action vectors
|
|
35
|
+
and three RGB camera views (`head`, `left_wrist`, `right_wrist`).
|
|
36
|
+
- Action execution supports half-open `chunk_range` intervals defaulting to
|
|
37
|
+
`10-42` (32 actions from the middle of the model chunk); legacy integer
|
|
38
|
+
`chunk_length` remains accepted as `0-end` for compatibility.
|
|
39
|
+
- The local loopback Policy port exposes `POST /v1/sessions`,
|
|
40
|
+
`POST /v1/sessions/{id}/actions`, and `POST /v1/sessions/{id}/close`,
|
|
41
|
+
automatically applying saved EE axis rotations to observations and their
|
|
42
|
+
inverses to returned targets.
|
|
43
|
+
- **Content-review HTTP 403 classification:** distinguishes HTTP 403
|
|
44
|
+
content-review rejections (`content_review_required`, `content_filter`,
|
|
45
|
+
`content_policy_violation`, `moderation_blocked`) from authentication and
|
|
46
|
+
permission errors across the policy client, MCP, and browser console
|
|
47
|
+
notifications.
|
|
48
|
+
- **Bundled YAM IK examples and notes:** installs `examples/compare_yam_ik.py`,
|
|
49
|
+
`examples/yam_xctrl_robot_client.py`, and `docs/yam-ik.md` under
|
|
50
|
+
`share/roboapi/` in the wheel and includes them in the source archive.
|
|
51
|
+
|
|
52
|
+
## Upgrading
|
|
53
|
+
|
|
54
|
+
- **Single-arm installations:** install `roboapi==0.5.0` with the same hardware
|
|
55
|
+
extras and restart RoboAPI. Existing single-arm configuration, model settings,
|
|
56
|
+
and saved calibration remain compatible with `0.4.5`.
|
|
57
|
+
- **UR native runtime:** `roboapi-ur-loop` sources are unchanged from `0.4.5`.
|
|
58
|
+
Existing UR e-Series environments do not need to rebuild the native runtime or
|
|
59
|
+
recalibrate unless physical mounting, Home, or task axes have changed. New UR
|
|
60
|
+
e-Series environments still require building the native runtime.
|
|
61
|
+
- **Dual-arm installations:** install `roboapi` (no single-arm hardware extras
|
|
62
|
+
required), start your loopback Robot Client, launch `roboapi dual-console`,
|
|
63
|
+
choose the matching robot identifier in **Settings → Model & runtime**, and
|
|
64
|
+
complete dual-arm EE calibration before running tasks.
|
|
65
|
+
|
|
66
|
+
## Validation
|
|
67
|
+
|
|
68
|
+
Offline unit tests, frontend component tests, wheel/source packaging checks, and
|
|
69
|
+
installed-package smoke checks cover both single-arm and dual-arm workflows.
|
|
70
|
+
Physical robot validation has not been executed automatically in CI; verify
|
|
71
|
+
calibration, Robot Client stop/fold behavior, and tracking on the target
|
|
72
|
+
hardware before routine operation.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# YAM inverse kinematics comparison
|
|
2
|
+
|
|
3
|
+
The station profile `pi05_dual_yam_uni_baidu` runs XCtrl's PyRoki controller with
|
|
4
|
+
`method: jparse` on both arms. Each 100 Hz control tick takes the interpolated
|
|
5
|
+
Cartesian reference and the latest measured joint angles. It uses the station
|
|
6
|
+
URDF's `poke_ee_link` at the flange centre, with each arm mount accounted for
|
|
7
|
+
at the model boundary. The solver differentiates FK, attenuates weak Jacobian
|
|
8
|
+
directions relative to the largest singular value (`gamma=0.1`), scales the
|
|
9
|
+
joint update as a vector and clamps joint positions to the URDF limits.
|
|
10
|
+
It has up to 100 numerical iterations at `dt=0.01`, with 1 mm and 0.01 rad
|
|
11
|
+
stopping thresholds. The 5 rad/s default caps the internal iteration, while
|
|
12
|
+
the driver separately governs physical joint motion.
|
|
13
|
+
|
|
14
|
+
i2rt v1.3.5's `Kinematics.ik` uses a MuJoCo site and Mink's damped
|
|
15
|
+
differential-IK quadratic program. Each iteration solves with `quadprog`,
|
|
16
|
+
integrates the result and checks convergence. It takes an explicit `init_q`
|
|
17
|
+
and optional Mink constraints, defaults to 200 iterations and tighter
|
|
18
|
+
`1e-4` m / `1e-4` rad tolerances, and reports a success flag. XCtrl returns
|
|
19
|
+
the last joint candidate and publishes a diagnostic FK pose. These are
|
|
20
|
+
different solver and execution paths. On hardware, reference interpolation,
|
|
21
|
+
fresh feedback, flange and mount calibration, and driver limits all affect
|
|
22
|
+
continuous tracking.
|
|
23
|
+
[XCtrl source](https://github.com/songshuguifish/xctrl-ros2/blob/685d08eafc40d9bbbf26447356a9767a791d040a/src/xctrl_nodes/controllers/pyroki_ik.py)
|
|
24
|
+
· [i2rt v1.3.5 source](https://github.com/i2rt-robotics/i2rt/blob/5b72c47239bd056d0fa6c1a39edeb0537c89443c/i2rt/robots/kinematics.py)
|
|
25
|
+
|
|
26
|
+
## Run the same targets on both solvers
|
|
27
|
+
|
|
28
|
+
Use the station's `yam_linear_4310_fixed_gripper.urdf` from robot-descriptions
|
|
29
|
+
revision `fafbbcf2dca311893e2f638de1b03d37fc590a2d`. The example creates a
|
|
30
|
+
kinematics-only MuJoCo model from the same URDF chain for i2rt. Both solvers get
|
|
31
|
+
the same joint seed and the same reachable target generated by FK in the arm
|
|
32
|
+
base frame. The script only computes joint targets and measures residuals.
|
|
33
|
+
The RoboAPI package installs it at `$VIRTUAL_ENV/share/roboapi/examples/compare_yam_ik.py`.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
JAX_PLATFORMS=cpu /path/to/xctrl/.venv/bin/python examples/compare_yam_ik.py \
|
|
37
|
+
--backend xctrl --urdf /path/to/yam_linear_4310_fixed_gripper.urdf
|
|
38
|
+
/path/to/i2rt/.venv/bin/python examples/compare_yam_ik.py \
|
|
39
|
+
--backend i2rt --urdf /path/to/yam_linear_4310_fixed_gripper.urdf
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Each run reports the target residual, largest joint change, a common 1 mm /
|
|
43
|
+
0.01 rad pass criterion, the vendor success flag where available and repeated
|
|
44
|
+
solve time. Use this sample before wiring a solver into a control loop. Each
|
|
45
|
+
target is handled independently: if IK has no solution, reports failure, or
|
|
46
|
+
returns a non-finite or incorrectly shaped joint target, the sample prints a
|
|
47
|
+
`skipped` result with the reason and continues with the next target instead of
|
|
48
|
+
terminating the run. A real-time controller should hold its last valid joint
|
|
49
|
+
target for that tick and keep trying later targets; report a control fault only
|
|
50
|
+
after the controller's consecutive-failure threshold is reached or no valid
|
|
51
|
+
target remains to hold.
|
|
52
|
+
|
|
53
|
+
On the station CPU, both examples reached the common position tolerance.
|
|
54
|
+
The ordinary target produced position and orientation residuals of
|
|
55
|
+
0.228 mm / 0.00982 rad with XCtrl and 0.00483 mm / 0.00000401 rad with i2rt.
|
|
56
|
+
Near a singularity, XCtrl returned 0.293 mm / 0.01084 rad and i2rt
|
|
57
|
+
returned 0.0266 mm / 0.00000116 rad. In this endpoint test i2rt had smaller
|
|
58
|
+
residuals. Continuous tracking on hardware also depends on the feedback and
|
|
59
|
+
execution loop.
|
|
60
|
+
|
|
61
|
+
A RoboAPI chunk exposes wxyz flange poses. Once a pose is in the frame expected
|
|
62
|
+
by XCtrl, `roboapi.geometry.obs_pose(chunk.left_arm[i])` reorders it to xyzw
|
|
63
|
+
for the controller. Supply measured joint angles from that same arm as the seed.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> 0.3.0 将包名、命令和 Python 导入统一为 `roboapi`。使用新环境和配置目录,重新初始化与标定。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
通过本地网页或 MCP agent,在单臂(UR / Franka)和双臂工作站上测试和运行机器人策略。
|
|
6
6
|
|
|
7
|
-
RoboAPI
|
|
8
|
-
|
|
7
|
+
单臂场景下,RoboAPI 将机械臂、Robotiq 平行夹爪和腕部鱼眼相机接入[带会话的模型 API](../model-api.md),
|
|
8
|
+
完成采集观测、请求动作段和执行动作的闭环;双臂场景下,RoboAPI 对接本地回环 Robot Client,提供双臂末端标定、多视角网页控制台和本地 Policy HTTP 接口。
|
|
9
9
|
|
|
10
10
|
[安装说明](../installation.md) · [模型 API](../model-api.md) · [English](../../README.md)
|
|
11
11
|
|
|
@@ -66,6 +66,22 @@ Franka 使用 SDK wheel,并需要实时主机。完整命令统一维护在[
|
|
|
66
66
|
存储管理显示机器人主机上的任务和录像占用,支持选择或全部清理录像并保留评价,也可确认删除整条任务。
|
|
67
67
|
正在运行或保存录像的任务会跳过。主画面保留设备快捷入口。
|
|
68
68
|
|
|
69
|
+
## 双臂控制台
|
|
70
|
+
|
|
71
|
+
双臂工作站实现回环 [Robot Client HTTP 契约](../calibration.md#robot-client-http-contract) 后,可直接安装基础包 `uv pip install roboapi` 并启动双臂控制台:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
roboapi dual-console \
|
|
75
|
+
--robot-client http://127.0.0.1:8765 \
|
|
76
|
+
--base-url https://api.pokebot.com/v1 \
|
|
77
|
+
--model "$PLATFORM_MODEL" \
|
|
78
|
+
--token-file "$PLATFORM_TOKEN_FILE" \
|
|
79
|
+
--port 8080 \
|
|
80
|
+
--policy-port 8081
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
在 **设置 → 模型与运行** 选择对应的机器人本体,完成 **设置 → 设备 → 双臂标定**(或使用 `roboapi calibrate-dual` / `roboapi check-dual-calibration`),即可通过 8080 网页控制台或 8081 本地 Policy HTTP 接口运行策略。详见[双臂末端标定](../calibration.md#dual-arm-ee-calibration)和[模型 API](../model-api.md#local-dual-arm-policy-port)。
|
|
84
|
+
|
|
69
85
|
## 接入 agent
|
|
70
86
|
|
|
71
87
|
同一安装选择一种启动方式:
|
|
@@ -90,6 +106,7 @@ Franka 使用 SDK wheel,并需要实时主机。完整命令统一维护在[
|
|
|
90
106
|
| [标定](../calibration.md) | 初始位置、水平参考面与任务坐标 |
|
|
91
107
|
| [模型 API](../model-api.md) | 会话、观测、动作与执行反馈 |
|
|
92
108
|
| [开发](../development.md) | 源码环境、测试、打包与发布 |
|
|
109
|
+
| [YAM IK 对比](../yam-ik.md) | 离线 YAM 逆运动学求解器对比 |
|
|
93
110
|
| [设计](DESIGN.md) | 产品范围与架构 |
|
|
94
111
|
|
|
95
112
|
CI 检查 Python 3.10–3.12、前端、硬件 SDK 导入及安装后的网页包,并构建和测试 UR 原生控制程序。
|