roboapi 0.4.4__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.
Files changed (253) hide show
  1. {roboapi-0.4.4 → roboapi-0.5.0}/MANIFEST.in +2 -0
  2. {roboapi-0.4.4 → roboapi-0.5.0}/PKG-INFO +29 -7
  3. {roboapi-0.4.4 → roboapi-0.5.0}/README.md +27 -5
  4. {roboapi-0.4.4 → roboapi-0.5.0}/docs/calibration.md +137 -0
  5. {roboapi-0.4.4 → roboapi-0.5.0}/docs/installation.md +6 -1
  6. {roboapi-0.4.4 → roboapi-0.5.0}/docs/model-api.md +82 -5
  7. roboapi-0.5.0/docs/releases/v0.4.5.md +19 -0
  8. roboapi-0.5.0/docs/releases/v0.5.0.md +72 -0
  9. roboapi-0.5.0/docs/yam-ik.md +63 -0
  10. {roboapi-0.4.4 → roboapi-0.5.0}/docs/zh-CN/README.md +20 -3
  11. roboapi-0.5.0/examples/compare_yam_ik.py +172 -0
  12. roboapi-0.5.0/examples/yam_xctrl_robot_client.py +450 -0
  13. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/App.test.tsx +212 -8
  14. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/App.tsx +31 -6
  15. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/api.ts +49 -11
  16. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CameraView.test.tsx +10 -6
  17. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CameraView.tsx +71 -60
  18. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/DevicesDialog.tsx +13 -6
  19. roboapi-0.5.0/frontend/src/components/DualCalibrationDialog.tsx +180 -0
  20. roboapi-0.5.0/frontend/src/components/DualCalibrationSettings.tsx +63 -0
  21. roboapi-0.5.0/frontend/src/components/DualPolicySettings.tsx +92 -0
  22. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/InstructionPanel.tsx +70 -15
  23. roboapi-0.5.0/frontend/src/components/RobotLifecycleButton.tsx +53 -0
  24. roboapi-0.5.0/frontend/src/components/SettingsPanel.test.tsx +127 -0
  25. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/SettingsPanel.tsx +65 -44
  26. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/StopButton.tsx +8 -2
  27. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/TaskHistory.tsx +11 -2
  28. roboapi-0.5.0/frontend/src/components/calibration/DualAlignmentResult.tsx +63 -0
  29. roboapi-0.5.0/frontend/src/components/calibration/DualCalibrationViews.tsx +120 -0
  30. roboapi-0.5.0/frontend/src/components/calibration/DualRigDiagram.tsx +395 -0
  31. roboapi-0.5.0/frontend/src/components/calibration/dual-calibration.css +235 -0
  32. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/format.ts +3 -0
  33. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/i18n.tsx +124 -2
  34. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/notifications.test.ts +10 -0
  35. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/notifications.ts +5 -1
  36. roboapi-0.5.0/frontend/src/pages/DualCalibrationPage.tsx +38 -0
  37. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/pages/RunPage.tsx +25 -7
  38. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/pages/SettingsPage.test.tsx +2 -2
  39. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/pages/SettingsPage.tsx +137 -110
  40. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/styles.css +188 -10
  41. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/test/fixtures.ts +1 -0
  42. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/useCameraPreview.test.tsx +3 -2
  43. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/useCameraPreview.ts +25 -15
  44. {roboapi-0.4.4 → roboapi-0.5.0}/pyproject.toml +6 -2
  45. roboapi-0.5.0/roboapi/calibration/dual.py +535 -0
  46. roboapi-0.5.0/roboapi/calibration/dual_profile.py +57 -0
  47. roboapi-0.5.0/roboapi/calibration/robot_client.py +218 -0
  48. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/cli.py +125 -0
  49. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/config/models.py +2 -1
  50. roboapi-0.5.0/roboapi/dual_policy.py +243 -0
  51. roboapi-0.5.0/roboapi/dual_run.py +452 -0
  52. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/geometry.py +38 -0
  53. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/initialize.py +16 -6
  54. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/mcp.py +9 -4
  55. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/policy/__init__.py +2 -2
  56. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/policy/client.py +180 -25
  57. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/policy/protocol.py +97 -22
  58. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/policy/settings.py +15 -4
  59. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/records.py +2 -0
  60. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/runtime.py +7 -0
  61. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/server.py +150 -31
  62. roboapi-0.5.0/roboapi/web/static/assets/CalibrationScene-C6YZWfVb.js +4216 -0
  63. roboapi-0.5.0/roboapi/web/static/assets/DualAlignmentResult-D0BQ-B-I.js +1 -0
  64. roboapi-0.5.0/roboapi/web/static/assets/index-B3kVxK39.css +1 -0
  65. roboapi-0.5.0/roboapi/web/static/assets/index-DtJM_Rfs.js +28 -0
  66. roboapi-0.5.0/roboapi/web/static/assets/three.core-bX4gSOa2.js +5 -0
  67. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/index.html +2 -2
  68. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/PKG-INFO +29 -7
  69. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/SOURCES.txt +27 -3
  70. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_components.py +1 -0
  71. roboapi-0.5.0/tests/test_dual_calibration.py +656 -0
  72. roboapi-0.5.0/tests/test_dual_policy.py +160 -0
  73. roboapi-0.5.0/tests/test_dual_run.py +214 -0
  74. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_initialize.py +36 -4
  75. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_policy.py +228 -2
  76. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_web.py +23 -0
  77. {roboapi-0.4.4 → roboapi-0.5.0}/uv.lock +1 -1
  78. roboapi-0.4.4/frontend/src/components/SettingsPanel.test.tsx +0 -64
  79. roboapi-0.4.4/roboapi/web/static/assets/CalibrationScene-DegHxh1F.js +0 -4220
  80. roboapi-0.4.4/roboapi/web/static/assets/index-CZ3Otu1v.js +0 -27
  81. roboapi-0.4.4/roboapi/web/static/assets/index-QXqV-fDC.css +0 -1
  82. {roboapi-0.4.4 → roboapi-0.5.0}/.python-version +0 -0
  83. {roboapi-0.4.4 → roboapi-0.5.0}/DESIGN.md +0 -0
  84. {roboapi-0.4.4 → roboapi-0.5.0}/LICENSE +0 -0
  85. {roboapi-0.4.4 → roboapi-0.5.0}/NOTICE +0 -0
  86. {roboapi-0.4.4 → roboapi-0.5.0}/docs/development.md +0 -0
  87. {roboapi-0.4.4 → roboapi-0.5.0}/docs/embodiments.md +0 -0
  88. {roboapi-0.4.4 → roboapi-0.5.0}/docs/naming.md +0 -0
  89. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.2.10.md +0 -0
  90. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.2.11.md +0 -0
  91. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.2.8.md +0 -0
  92. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.2.9.md +0 -0
  93. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.3.0.md +0 -0
  94. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.4.0.md +0 -0
  95. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.4.1.md +0 -0
  96. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.4.2.md +0 -0
  97. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.4.3.md +0 -0
  98. {roboapi-0.4.4 → roboapi-0.5.0}/docs/releases/v0.4.4.md +0 -0
  99. {roboapi-0.4.4 → roboapi-0.5.0}/docs/repository-rename.md +0 -0
  100. {roboapi-0.4.4 → roboapi-0.5.0}/docs/zh-CN/DESIGN.md +0 -0
  101. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/BRAND.md +0 -0
  102. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/asset-provenance.json +0 -0
  103. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/index.html +0 -0
  104. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/package-lock.json +0 -0
  105. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/package.json +0 -0
  106. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/Bundler-LICENSE.txt +0 -0
  107. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/Inter-OFL.txt +0 -0
  108. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/Lucide-LICENSE.txt +0 -0
  109. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/Meshoptimizer-LICENSE.txt +0 -0
  110. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/PokeBrand-NOTICE.txt +0 -0
  111. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/React-LICENSE.txt +0 -0
  112. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/public/assets/Three-LICENSE.txt +0 -0
  113. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/api.test.ts +0 -0
  114. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/brand/Inter-Variable.ttf +0 -0
  115. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/brand/MiSans-Regular.woff2 +0 -0
  116. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/brand/MiSans-Semibold.woff2 +0 -0
  117. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/brand/logo-1.png +0 -0
  118. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/calibration/README.md +0 -0
  119. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/calibration/home-reference.png +0 -0
  120. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/assets/calibration/robotiq-ace-pro-2.glb +0 -0
  121. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/cameraStream.test.ts +0 -0
  122. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/cameraStream.ts +0 -0
  123. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/Brand.tsx +0 -0
  124. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CalibrationDialog.test.tsx +0 -0
  125. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CalibrationDialog.tsx +0 -0
  126. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CalibrationIllustration.test.tsx +0 -0
  127. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CalibrationIllustration.tsx +0 -0
  128. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/CalibrationScene.tsx +0 -0
  129. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/Dialog.tsx +0 -0
  130. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/DirectionCheckDialog.test.tsx +0 -0
  131. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/DirectionCheckDialog.tsx +0 -0
  132. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/Icon.tsx +0 -0
  133. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/LogsPanel.tsx +0 -0
  134. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/Notification.tsx +0 -0
  135. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/Popover.tsx +0 -0
  136. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/PresetChips.test.tsx +0 -0
  137. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/PresetChips.tsx +0 -0
  138. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/PresetsPanel.tsx +0 -0
  139. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/RunInfoDialog.tsx +0 -0
  140. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/StorageSettings.test.tsx +0 -0
  141. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/StorageSettings.tsx +0 -0
  142. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/TaskHistory.test.tsx +0 -0
  143. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/WorkspaceSettings.test.tsx +0 -0
  144. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/WorkspaceSettings.tsx +0 -0
  145. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/calibration/camera-lens.ts +0 -0
  146. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/calibration/direction-motion.test.ts +0 -0
  147. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/calibration/direction-motion.ts +0 -0
  148. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/calibration/locking-pins.ts +0 -0
  149. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/components/calibration.css +0 -0
  150. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/main.tsx +0 -0
  151. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/naming.test.tsx +0 -0
  152. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/naming.ts +0 -0
  153. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/test/mockCamera.ts +0 -0
  154. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/test/setup.ts +0 -0
  155. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/usePolling.test.tsx +0 -0
  156. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/src/usePolling.ts +0 -0
  157. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/tsconfig.json +0 -0
  158. {roboapi-0.4.4 → roboapi-0.5.0}/frontend/vite.config.ts +0 -0
  159. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/__init__.py +0 -0
  160. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/calibration/__init__.py +0 -0
  161. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/calibration/profile.py +0 -0
  162. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/calibration/session.py +0 -0
  163. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/config/__init__.py +0 -0
  164. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/config/loader.py +0 -0
  165. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/embodiment.py +0 -0
  166. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/errors.py +0 -0
  167. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/__init__.py +0 -0
  168. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/base.py +0 -0
  169. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/camera.py +0 -0
  170. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/__init__.py +0 -0
  171. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/arm.py +0 -0
  172. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/desk.py +0 -0
  173. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/feedback.py +0 -0
  174. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/guiding.py +0 -0
  175. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/ik.py +0 -0
  176. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/limits.py +0 -0
  177. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/franka/settings.py +0 -0
  178. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/registry.py +0 -0
  179. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/robotiq.py +0 -0
  180. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/scaffold.py +0 -0
  181. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/templates/README.md.tmpl +0 -0
  182. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/templates/arm.py.tmpl +0 -0
  183. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/templates/camera.py.tmpl +0 -0
  184. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/templates/gripper.py.tmpl +0 -0
  185. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/templates/pyproject.toml.tmpl +0 -0
  186. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/__init__.py +0 -0
  187. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/build.py +0 -0
  188. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/compliant.py +0 -0
  189. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/dashboard.py +0 -0
  190. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/feedback.py +0 -0
  191. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/ipc.py +0 -0
  192. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/CMakeLists.txt +0 -0
  193. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/dependencies.lock.json +0 -0
  194. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/cartesian_speedl.hpp +0 -0
  195. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/control_loop.hpp +0 -0
  196. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/geom.hpp +0 -0
  197. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/motion_primitives.hpp +0 -0
  198. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/robot_io.hpp +0 -0
  199. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/include/ur_cpp/streaming_pose.hpp +0 -0
  200. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/src/control_loop.cpp +0 -0
  201. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/src/robot_io_urcl.cpp +0 -0
  202. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/cartesian_speedl_unit.cpp +0 -0
  203. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/control_modes_unit.cpp +0 -0
  204. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/streaming_pose_unit.cpp +0 -0
  205. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/tests/velocity_governor_unit.cpp +0 -0
  206. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/native/worker.cpp +0 -0
  207. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/position.py +0 -0
  208. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/hardware/ur/settings.py +0 -0
  209. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/images.py +0 -0
  210. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/motion.py +0 -0
  211. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/naming.py +0 -0
  212. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/operations.py +0 -0
  213. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/product-names.json +0 -0
  214. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/semantics.py +0 -0
  215. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/tasks.py +0 -0
  216. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/tool.py +0 -0
  217. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/__init__.py +0 -0
  218. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/presets.py +0 -0
  219. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Bundler-LICENSE.txt +0 -0
  220. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Inter-OFL.txt +0 -0
  221. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Inter-Variable-c8O0ljhh.ttf +0 -0
  222. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Lucide-LICENSE.txt +0 -0
  223. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Meshoptimizer-LICENSE.txt +0 -0
  224. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/MiSans-Regular-ES4DrbaF.woff2 +0 -0
  225. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/MiSans-Semibold-B34HIk9C.woff2 +0 -0
  226. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/PokeBrand-NOTICE.txt +0 -0
  227. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/React-LICENSE.txt +0 -0
  228. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/Three-LICENSE.txt +0 -0
  229. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/home-reference-CTpf8-oV.png +0 -0
  230. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi/web/static/assets/robotiq-ace-pro-2-EJuoOXTy.glb +0 -0
  231. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/dependency_links.txt +0 -0
  232. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/entry_points.txt +0 -0
  233. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/requires.txt +0 -0
  234. {roboapi-0.4.4 → roboapi-0.5.0}/roboapi.egg-info/top_level.txt +0 -0
  235. {roboapi-0.4.4 → roboapi-0.5.0}/setup.cfg +0 -0
  236. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_calibration.py +0 -0
  237. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_chunk_boundary.py +0 -0
  238. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_cli.py +0 -0
  239. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_config.py +0 -0
  240. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_direction_check.py +0 -0
  241. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_instruction_pending.py +0 -0
  242. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_mcp.py +0 -0
  243. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_monitor_error_clear.py +0 -0
  244. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_motion.py +0 -0
  245. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_naming.py +0 -0
  246. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_preview.py +0 -0
  247. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_runtime.py +0 -0
  248. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_sessions.py +0 -0
  249. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_storage.py +0 -0
  250. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_task_runtime.py +0 -0
  251. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_task_web.py +0 -0
  252. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_tasks.py +0 -0
  253. {roboapi-0.4.4 → roboapi-0.5.0}/tests/test_workspace.py +0 -0
@@ -7,3 +7,5 @@ include DESIGN.md
7
7
  recursive-include roboapi *.json
8
8
  include .python-version uv.lock
9
9
  recursive-include docs *.md
10
+ include examples/compare_yam_ik.py
11
+ include examples/yam_xctrl_robot_client.py
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: roboapi
3
- Version: 0.4.4
4
- Summary: Run robot policies on UR and Franka through a browser or an MCP agent.
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 robot policies on UR and Franka through a browser or an MCP agent.
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 a single arm, a Robotiq parallel gripper and a wrist fisheye camera to a
48
- session-based model API. It collects observations, requests action
49
- chunks and executes them with the same Cartesian semantics across robots.
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,
@@ -59,7 +59,8 @@ and extract it. The GitHub repository is currently private.
59
59
  Mounting must match the model's training viewpoint.
60
60
  - **Host:** Linux x86-64 and CPython 3.10–3.12; new installations use 3.12 with
61
61
  [uv](https://docs.astral.sh/uv/getting-started/installation/).
62
- - **Model service:** a Base URL, model ID and API key for the model API contract.
62
+ - **Model service:** an API key for `https://api.pokebot.com/v1`, or a custom service
63
+ implementing the same model API contract. Select a model from the service's list during setup.
63
64
 
64
65
  The release wheel includes the web interface. UR e-Series requires a separately built
65
66
  control runtime from sources included in the wheel. Franka uses a compatible SDK and
@@ -90,6 +91,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
90
91
  | Franka FR3, system 5.9+ | `uv pip install 'roboapi[franka,gripper]'` |
91
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/` |
92
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` |
93
95
 
94
96
  UR e-Series additionally needs its native runtime built on the host:
95
97
 
@@ -118,6 +120,8 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
118
120
 
119
121
  Have the robot address, camera device and model credentials ready. The wizard selects the
120
122
  gripper connection and saves the local configuration; Franka also needs Desk credentials.
123
+ Accept the default model address or enter your own, provide the API key, then select a
124
+ model from the returned list. Model discovery requires a network connection.
121
125
  3. Start the browser interface:
122
126
 
123
127
  ```sh
@@ -139,6 +143,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
139
143
  Actions run at 30 Hz. Between chunks, RoboAPI waits 0.5 seconds by default before capturing
140
144
  the next observation. Open the current model at the input’s right to go to **Settings →
141
145
  Model & runtime** and change its connection or **Chunk wait (s)** while stopped. Choose
146
+ **Connect** to load models, select one, then **Save** to apply the settings. Choose
142
147
  English or Chinese in **Settings → General**.
143
148
 
144
149
  Shift+Enter sends; Enter inserts a newline. Up/Down recalls past instructions without sending.
@@ -171,6 +176,22 @@ recordings while keeping instructions and feedback, or delete whole tasks after
171
176
  Active tasks and recordings still being saved are skipped. Device shortcuts remain in the main header.
172
177
  **Logs** opens a floating panel with a text filter; the camera and instruction controls remain in place and stay usable.
173
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
+
174
195
  ## Connect an agent
175
196
 
176
197
  Choose one startup mode for an installation:
@@ -195,6 +216,7 @@ The browser and agent share devices and settings. Stop the run before switching
195
216
  | `docs/calibration.md` | Home, reference plane and shared task coordinates |
196
217
  | `docs/model-api.md` | Sessions, observations, actions and execution feedback |
197
218
  | `docs/development.md` | Source setup, tests, packaging and releases |
219
+ | `docs/yam-ik.md` | Offline YAM inverse kinematics solver comparison |
198
220
  | `DESIGN.md` | Product scope and architecture |
199
221
 
200
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 robot policies on UR and Franka through a browser or an MCP agent.
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 a single arm, a Robotiq parallel gripper and a wrist fisheye camera to a
8
- session-based model API. It collects observations, requests action
9
- chunks and executes them with the same Cartesian semantics across robots.
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,
@@ -19,7 +19,8 @@ and extract it. The GitHub repository is currently private.
19
19
  Mounting must match the model's training viewpoint.
20
20
  - **Host:** Linux x86-64 and CPython 3.10–3.12; new installations use 3.12 with
21
21
  [uv](https://docs.astral.sh/uv/getting-started/installation/).
22
- - **Model service:** a Base URL, model ID and API key for the model API contract.
22
+ - **Model service:** an API key for `https://api.pokebot.com/v1`, or a custom service
23
+ implementing the same model API contract. Select a model from the service's list during setup.
23
24
 
24
25
  The release wheel includes the web interface. UR e-Series requires a separately built
25
26
  control runtime from sources included in the wheel. Franka uses a compatible SDK and
@@ -50,6 +51,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
50
51
  | Franka FR3, system 5.9+ | `uv pip install 'roboapi[franka,gripper]'` |
51
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/` |
52
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` |
53
55
 
54
56
  UR e-Series additionally needs its native runtime built on the host:
55
57
 
@@ -78,6 +80,8 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
78
80
 
79
81
  Have the robot address, camera device and model credentials ready. The wizard selects the
80
82
  gripper connection and saves the local configuration; Franka also needs Desk credentials.
83
+ Accept the default model address or enter your own, provide the API key, then select a
84
+ model from the returned list. Model discovery requires a network connection.
81
85
  3. Start the browser interface:
82
86
 
83
87
  ```sh
@@ -99,6 +103,7 @@ for one component. See [Add hardware components](docs/embodiments.md) for SDK in
99
103
  Actions run at 30 Hz. Between chunks, RoboAPI waits 0.5 seconds by default before capturing
100
104
  the next observation. Open the current model at the input’s right to go to **Settings →
101
105
  Model & runtime** and change its connection or **Chunk wait (s)** while stopped. Choose
106
+ **Connect** to load models, select one, then **Save** to apply the settings. Choose
102
107
  English or Chinese in **Settings → General**.
103
108
 
104
109
  Shift+Enter sends; Enter inserts a newline. Up/Down recalls past instructions without sending.
@@ -131,6 +136,22 @@ recordings while keeping instructions and feedback, or delete whole tasks after
131
136
  Active tasks and recordings still being saved are skipped. Device shortcuts remain in the main header.
132
137
  **Logs** opens a floating panel with a text filter; the camera and instruction controls remain in place and stay usable.
133
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
+
134
155
  ## Connect an agent
135
156
 
136
157
  Choose one startup mode for an installation:
@@ -155,6 +176,7 @@ The browser and agent share devices and settings. Stop the run before switching
155
176
  | `docs/calibration.md` | Home, reference plane and shared task coordinates |
156
177
  | `docs/model-api.md` | Sessions, observations, actions and execution feedback |
157
178
  | `docs/development.md` | Source setup, tests, packaging and releases |
179
+ | `docs/yam-ik.md` | Offline YAM inverse kinematics solver comparison |
158
180
  | `DESIGN.md` | Product scope and architecture |
159
181
 
160
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;
@@ -163,7 +164,11 @@ configuration readback and guiding; their complete workflows still need hardware
163
164
  Follow [Get started](../README.md#get-started) to initialize, preview and calibrate.
164
165
  After the final Home return, the browser saves the calibration and initializes control,
165
166
  including the gripper. It then offers optional direction checks; **Done** returns to the run view.
166
- The setup wizard saves settings without contacting hardware or the model service.
167
+ The setup wizard does not contact hardware. It defaults to `https://api.pokebot.com/v1`,
168
+ accepts a custom Base URL, and uses the API key to fetch the available models before saving.
169
+ In the browser's model settings, **Connect** loads the list without saving credentials or
170
+ creating a session; select a model and choose **Save** to apply it. A failed connection
171
+ leaves the saved configuration unchanged.
167
172
  A successful camera preview shows fresh video. Franka arm preview uses Desk credentials
168
173
  and leaves FCI, brakes and operating mode unchanged. Calibration prepares Programming-mode
169
174
  guiding; automatic returns and Enable control prepare FCI when needed.
@@ -8,13 +8,16 @@ A service must implement all four endpoints; a general chat endpoint alone is in
8
8
 
9
9
  ## Connection
10
10
 
11
- Configure the service's Base URL, model ID and API key through `roboapi init` or **Settings**.
11
+ Use `roboapi init` or **Settings** to enter an API key and select a model from the service's
12
+ list. The default Base URL is `https://api.pokebot.com/v1`; custom endpoints are supported.
13
+ In Settings, **Connect** fetches models without saving or creating a session;
14
+ **Save** applies the selected model and connection settings.
12
15
  For a Base URL such as `https://model.example/v1`, paths below are relative to `/v1/`.
13
16
  Requests use JSON and `Authorization: Bearer <API_KEY>`.
14
17
 
15
18
  | Method | Path | Purpose |
16
19
  | --- | --- | --- |
17
- | GET | `models` | Confirm that the configured model is available |
20
+ | GET | `models` | List models during setup and confirm the selected model when connecting |
18
21
  | POST | `sessions` | Create one session for a run |
19
22
  | POST | `chat/completions` | Request the next action chunk in that session |
20
23
  | POST | `sessions/{id}/close` | Close the session with final execution feedback |
@@ -161,7 +164,81 @@ The close response must contain the same ID and a messages array; `next_turn` is
161
164
  ```
162
165
 
163
166
  The service stores the session history. Stopping the robot does not depend on successful
164
- session closure; an unconfirmed close is reported in the process log.
167
+ session closure. An unconfirmed close is reported in the process log.
165
168
 
166
- The [client](../RoboAPI/policy/client.py), [protocol implementation](../RoboAPI/policy/protocol.py)
167
- and [session tests](../tests/test_sessions.py) implement this contract.
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,19 @@
1
+ # v0.4.5 — Select models from the service
2
+
3
+ - Default to `https://api.pokebot.com/v1`, with custom endpoints still supported.
4
+ - Fetch the authenticated model list during `roboapi init` and select a model
5
+ instead of entering an ID or relying on a fixed default.
6
+ - In model settings, choose **Connect**, select a model, then **Save**. Keep the
7
+ current selection when it is available, and reload the list after changing
8
+ the address or API key.
9
+ - Discover models without saving draft credentials or creating a session.
10
+ Failed connections leave saved settings unchanged and can be retried.
11
+
12
+ ## Upgrading
13
+
14
+ Install the update in the existing environment and restart RoboAPI. Existing
15
+ endpoint and model settings remain in use; open **Settings > Model & runtime**
16
+ to connect and choose another model. New installation setup requires access to
17
+ the model service to retrieve its list.
18
+
19
+ This update does not require recalibration or rebuilding the UR native runtime.
@@ -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.