pyros-robotics 1.0.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 (330) hide show
  1. pyros_robotics-1.0.0/.gitignore +48 -0
  2. pyros_robotics-1.0.0/LICENSE +198 -0
  3. pyros_robotics-1.0.0/PKG-INFO +185 -0
  4. pyros_robotics-1.0.0/README.md +134 -0
  5. pyros_robotics-1.0.0/docs/schemas/README.md +38 -0
  6. pyros_robotics-1.0.0/docs/schemas/ci.schema.json +27 -0
  7. pyros_robotics-1.0.0/docs/schemas/doctor.schema.json +27 -0
  8. pyros_robotics-1.0.0/docs/schemas/fix-urdf.schema.json +39 -0
  9. pyros_robotics-1.0.0/docs/schemas/run.schema.json +43 -0
  10. pyros_robotics-1.0.0/docs/schemas/urdf-diff.schema.json +30 -0
  11. pyros_robotics-1.0.0/docs/schemas/validate-urdf.schema.json +29 -0
  12. pyros_robotics-1.0.0/examples/broken_robot_ws/README.md +33 -0
  13. pyros_robotics-1.0.0/examples/broken_robot_ws/SEEDED_BUGS.md +33 -0
  14. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_bringup/CMakeLists.txt +10 -0
  15. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_bringup/config/params.yaml +11 -0
  16. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_bringup/launch/bringup.launch.py +49 -0
  17. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_bringup/package.xml +16 -0
  18. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_description/CMakeLists.txt +10 -0
  19. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_description/launch/view.launch.py +18 -0
  20. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_description/package.xml +16 -0
  21. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_description/urdf/robot.urdf +53 -0
  22. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/package.xml +17 -0
  23. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/resource/seeded_bot_sensors +0 -0
  24. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/__init__.py +0 -0
  25. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/imu_pub.py +27 -0
  26. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/lidar_node.py +34 -0
  27. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/map_consumer.py +30 -0
  28. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/map_node.py +35 -0
  29. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/odom_sub.py +25 -0
  30. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/seeded_bot_sensors/scan_consumer.py +30 -0
  31. pyros_robotics-1.0.0/examples/broken_robot_ws/src/seeded_bot_sensors/setup.py +28 -0
  32. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/README.md +45 -0
  33. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/config/controllers.yaml +18 -0
  34. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/launch/sim.launch.py +29 -0
  35. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/package.xml +15 -0
  36. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/resource/my_robot_bringup +0 -0
  37. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/setup.cfg +4 -0
  38. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_bringup/setup.py +19 -0
  39. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/CMakeLists.txt +15 -0
  40. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/launch/robot.launch.py +26 -0
  41. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/meshes/chassis.stl +0 -0
  42. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/meshes/left_wheel.stl +0 -0
  43. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/meshes/right_wheel.stl +0 -0
  44. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/package.xml +15 -0
  45. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/urdf/my_robot.urdf +165 -0
  46. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_description/urdf/my_robot_fixed.urdf +165 -0
  47. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/config/nav2_params.yaml +37 -0
  48. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/launch/nav2.launch.py +21 -0
  49. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/package.xml +15 -0
  50. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/resource/my_robot_navigation +0 -0
  51. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/setup.cfg +4 -0
  52. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/src/my_robot_navigation/setup.py +19 -0
  53. pyros_robotics-1.0.0/examples/turtlebot_demo_ws/worlds/my_robot_world.sdf +39 -0
  54. pyros_robotics-1.0.0/pyproject.toml +106 -0
  55. pyros_robotics-1.0.0/src/pyros/__init__.py +3 -0
  56. pyros_robotics-1.0.0/src/pyros/agent/__init__.py +5 -0
  57. pyros_robotics-1.0.0/src/pyros/agent/context.py +143 -0
  58. pyros_robotics-1.0.0/src/pyros/agent/dispatcher.py +380 -0
  59. pyros_robotics-1.0.0/src/pyros/agent/intent_router.py +132 -0
  60. pyros_robotics-1.0.0/src/pyros/agent/modes.py +268 -0
  61. pyros_robotics-1.0.0/src/pyros/agent/react.py +412 -0
  62. pyros_robotics-1.0.0/src/pyros/agent/repl.py +940 -0
  63. pyros_robotics-1.0.0/src/pyros/agent/runner.py +649 -0
  64. pyros_robotics-1.0.0/src/pyros/agent/tools.py +1781 -0
  65. pyros_robotics-1.0.0/src/pyros/api/__init__.py +0 -0
  66. pyros_robotics-1.0.0/src/pyros/api/server.py +137 -0
  67. pyros_robotics-1.0.0/src/pyros/auth/__init__.py +6 -0
  68. pyros_robotics-1.0.0/src/pyros/auth/client.py +317 -0
  69. pyros_robotics-1.0.0/src/pyros/auth/config.py +22 -0
  70. pyros_robotics-1.0.0/src/pyros/auth/limits.py +239 -0
  71. pyros_robotics-1.0.0/src/pyros/auth/middleware.py +99 -0
  72. pyros_robotics-1.0.0/src/pyros/auth/schema.sql +74 -0
  73. pyros_robotics-1.0.0/src/pyros/catalog/__init__.py +55 -0
  74. pyros_robotics-1.0.0/src/pyros/catalog/actuators.py +175 -0
  75. pyros_robotics-1.0.0/src/pyros/catalog/controllers.py +244 -0
  76. pyros_robotics-1.0.0/src/pyros/catalog/platforms.py +378 -0
  77. pyros_robotics-1.0.0/src/pyros/catalog/sensors.py +734 -0
  78. pyros_robotics-1.0.0/src/pyros/cli/__init__.py +0 -0
  79. pyros_robotics-1.0.0/src/pyros/cli/auth_commands.py +104 -0
  80. pyros_robotics-1.0.0/src/pyros/cli/bench_command.py +82 -0
  81. pyros_robotics-1.0.0/src/pyros/cli/ci_command.py +207 -0
  82. pyros_robotics-1.0.0/src/pyros/cli/codegen_commands.py +471 -0
  83. pyros_robotics-1.0.0/src/pyros/cli/config.py +47 -0
  84. pyros_robotics-1.0.0/src/pyros/cli/deploy_command.py +524 -0
  85. pyros_robotics-1.0.0/src/pyros/cli/diag_commands.py +187 -0
  86. pyros_robotics-1.0.0/src/pyros/cli/diff_command.py +208 -0
  87. pyros_robotics-1.0.0/src/pyros/cli/explain_commands.py +145 -0
  88. pyros_robotics-1.0.0/src/pyros/cli/forensics_commands.py +257 -0
  89. pyros_robotics-1.0.0/src/pyros/cli/formatting.py +1209 -0
  90. pyros_robotics-1.0.0/src/pyros/cli/gen_commands.py +44 -0
  91. pyros_robotics-1.0.0/src/pyros/cli/graph_commands.py +73 -0
  92. pyros_robotics-1.0.0/src/pyros/cli/main.py +154 -0
  93. pyros_robotics-1.0.0/src/pyros/cli/migrate_commands.py +41 -0
  94. pyros_robotics-1.0.0/src/pyros/cli/onboarding.py +249 -0
  95. pyros_robotics-1.0.0/src/pyros/cli/progress.py +88 -0
  96. pyros_robotics-1.0.0/src/pyros/cli/replay_command.py +334 -0
  97. pyros_robotics-1.0.0/src/pyros/cli/run_command.py +96 -0
  98. pyros_robotics-1.0.0/src/pyros/cli/sim_commands.py +236 -0
  99. pyros_robotics-1.0.0/src/pyros/cli/templates.py +322 -0
  100. pyros_robotics-1.0.0/src/pyros/cli/test_command.py +358 -0
  101. pyros_robotics-1.0.0/src/pyros/cli/toolchain.py +143 -0
  102. pyros_robotics-1.0.0/src/pyros/cli/tui.py +1408 -0
  103. pyros_robotics-1.0.0/src/pyros/cli/tune_commands.py +65 -0
  104. pyros_robotics-1.0.0/src/pyros/cli/update_command.py +144 -0
  105. pyros_robotics-1.0.0/src/pyros/cli/urdf_commands.py +384 -0
  106. pyros_robotics-1.0.0/src/pyros/cli/watch_command.py +194 -0
  107. pyros_robotics-1.0.0/src/pyros/codegen/__init__.py +6 -0
  108. pyros_robotics-1.0.0/src/pyros/codegen/change.py +132 -0
  109. pyros_robotics-1.0.0/src/pyros/codegen/engine.py +96 -0
  110. pyros_robotics-1.0.0/src/pyros/codegen/history.py +141 -0
  111. pyros_robotics-1.0.0/src/pyros/codegen/launch_modifier.py +71 -0
  112. pyros_robotics-1.0.0/src/pyros/codegen/package_modifier.py +32 -0
  113. pyros_robotics-1.0.0/src/pyros/codegen/templates/__init__.py +0 -0
  114. pyros_robotics-1.0.0/src/pyros/codegen/templates/base.py +32 -0
  115. pyros_robotics-1.0.0/src/pyros/codegen/templates/behavior_tree.py +230 -0
  116. pyros_robotics-1.0.0/src/pyros/codegen/templates/docker_packaging.py +180 -0
  117. pyros_robotics-1.0.0/src/pyros/codegen/templates/hardware_interface.py +354 -0
  118. pyros_robotics-1.0.0/src/pyros/codegen/templates/moveit2_setup.py +113 -0
  119. pyros_robotics-1.0.0/src/pyros/codegen/templates/multi_robot.py +133 -0
  120. pyros_robotics-1.0.0/src/pyros/codegen/templates/nav2_setup.py +180 -0
  121. pyros_robotics-1.0.0/src/pyros/codegen/templates/node_scaffolding.py +512 -0
  122. pyros_robotics-1.0.0/src/pyros/codegen/templates/ros2_control.py +97 -0
  123. pyros_robotics-1.0.0/src/pyros/codegen/templates/rviz_config.py +221 -0
  124. pyros_robotics-1.0.0/src/pyros/codegen/templates/sensor_addition.py +206 -0
  125. pyros_robotics-1.0.0/src/pyros/codegen/urdf_modifier.py +38 -0
  126. pyros_robotics-1.0.0/src/pyros/codegen/validator.py +96 -0
  127. pyros_robotics-1.0.0/src/pyros/codegen/yaml_modifier.py +70 -0
  128. pyros_robotics-1.0.0/src/pyros/diagnostics/__init__.py +6 -0
  129. pyros_robotics-1.0.0/src/pyros/diagnostics/bag_probe.py +244 -0
  130. pyros_robotics-1.0.0/src/pyros/diagnostics/bench.py +215 -0
  131. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/__init__.py +0 -0
  132. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/base.py +29 -0
  133. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/dependency_checks.py +68 -0
  134. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/launch_checks.py +268 -0
  135. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/node_checks.py +51 -0
  136. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/param_checks.py +58 -0
  137. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/performance_checks.py +186 -0
  138. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/tf_checks.py +240 -0
  139. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/topic_checks.py +119 -0
  140. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/urdf_checks.py +189 -0
  141. pyros_robotics-1.0.0/src/pyros/diagnostics/checks/vision_checks.py +307 -0
  142. pyros_robotics-1.0.0/src/pyros/diagnostics/colcon_translator.py +139 -0
  143. pyros_robotics-1.0.0/src/pyros/diagnostics/controllers_from_urdf.py +186 -0
  144. pyros_robotics-1.0.0/src/pyros/diagnostics/diff_applier.py +285 -0
  145. pyros_robotics-1.0.0/src/pyros/diagnostics/diff_changeset.py +157 -0
  146. pyros_robotics-1.0.0/src/pyros/diagnostics/doctor.py +158 -0
  147. pyros_robotics-1.0.0/src/pyros/diagnostics/engine.py +124 -0
  148. pyros_robotics-1.0.0/src/pyros/diagnostics/evidence.py +349 -0
  149. pyros_robotics-1.0.0/src/pyros/diagnostics/fixes/__init__.py +0 -0
  150. pyros_robotics-1.0.0/src/pyros/diagnostics/fixes/dependency_fixes.py +135 -0
  151. pyros_robotics-1.0.0/src/pyros/diagnostics/fixes/param_fixes.py +31 -0
  152. pyros_robotics-1.0.0/src/pyros/diagnostics/fixes/tf_fixes.py +153 -0
  153. pyros_robotics-1.0.0/src/pyros/diagnostics/launch_graph.py +204 -0
  154. pyros_robotics-1.0.0/src/pyros/diagnostics/log_scanner.py +171 -0
  155. pyros_robotics-1.0.0/src/pyros/diagnostics/models.py +49 -0
  156. pyros_robotics-1.0.0/src/pyros/diagnostics/reporter.py +64 -0
  157. pyros_robotics-1.0.0/src/pyros/diagnostics/rmw_probe.py +232 -0
  158. pyros_robotics-1.0.0/src/pyros/diagnostics/sandbox.py +189 -0
  159. pyros_robotics-1.0.0/src/pyros/diagnostics/tf_live.py +152 -0
  160. pyros_robotics-1.0.0/src/pyros/diagnostics/urdf_differ.py +291 -0
  161. pyros_robotics-1.0.0/src/pyros/diagnostics/urdf_fixer.py +373 -0
  162. pyros_robotics-1.0.0/src/pyros/diagnostics/urdf_validator.py +481 -0
  163. pyros_robotics-1.0.0/src/pyros/explainer/__init__.py +5 -0
  164. pyros_robotics-1.0.0/src/pyros/explainer/diagnoser.py +654 -0
  165. pyros_robotics-1.0.0/src/pyros/explainer/diagram_renderer.py +130 -0
  166. pyros_robotics-1.0.0/src/pyros/explainer/engine.py +120 -0
  167. pyros_robotics-1.0.0/src/pyros/explainer/llm_diagnoser.py +307 -0
  168. pyros_robotics-1.0.0/src/pyros/explainer/subsystem_tracer.py +287 -0
  169. pyros_robotics-1.0.0/src/pyros/explainer/tf_visualizer.py +15 -0
  170. pyros_robotics-1.0.0/src/pyros/generator/__init__.py +6 -0
  171. pyros_robotics-1.0.0/src/pyros/generator/config_generator.py +130 -0
  172. pyros_robotics-1.0.0/src/pyros/generator/engine.py +235 -0
  173. pyros_robotics-1.0.0/src/pyros/generator/extras_emitter.py +291 -0
  174. pyros_robotics-1.0.0/src/pyros/generator/launch_generator.py +121 -0
  175. pyros_robotics-1.0.0/src/pyros/generator/llm_urdf_generator.py +227 -0
  176. pyros_robotics-1.0.0/src/pyros/generator/mesh_generator.py +1038 -0
  177. pyros_robotics-1.0.0/src/pyros/generator/models.py +238 -0
  178. pyros_robotics-1.0.0/src/pyros/generator/physical_properties.py +58 -0
  179. pyros_robotics-1.0.0/src/pyros/generator/scaffolder.py +158 -0
  180. pyros_robotics-1.0.0/src/pyros/generator/spec_parser.py +420 -0
  181. pyros_robotics-1.0.0/src/pyros/generator/urdf_generator.py +1876 -0
  182. pyros_robotics-1.0.0/src/pyros/generator/world_generator.py +346 -0
  183. pyros_robotics-1.0.0/src/pyros/graph/__init__.py +5 -0
  184. pyros_robotics-1.0.0/src/pyros/graph/models.py +116 -0
  185. pyros_robotics-1.0.0/src/pyros/graph/parsers/__init__.py +0 -0
  186. pyros_robotics-1.0.0/src/pyros/graph/parsers/launch_parser.py +260 -0
  187. pyros_robotics-1.0.0/src/pyros/graph/parsers/package_scanner.py +111 -0
  188. pyros_robotics-1.0.0/src/pyros/graph/parsers/sdf_parser.py +49 -0
  189. pyros_robotics-1.0.0/src/pyros/graph/parsers/tf_builder.py +165 -0
  190. pyros_robotics-1.0.0/src/pyros/graph/parsers/topic_mapper.py +363 -0
  191. pyros_robotics-1.0.0/src/pyros/graph/parsers/urdf_parser.py +274 -0
  192. pyros_robotics-1.0.0/src/pyros/graph/parsers/yaml_linker.py +43 -0
  193. pyros_robotics-1.0.0/src/pyros/graph/qos.py +336 -0
  194. pyros_robotics-1.0.0/src/pyros/graph/query.py +61 -0
  195. pyros_robotics-1.0.0/src/pyros/graph/workspace_graph.py +288 -0
  196. pyros_robotics-1.0.0/src/pyros/llm/__init__.py +5 -0
  197. pyros_robotics-1.0.0/src/pyros/llm/client.py +193 -0
  198. pyros_robotics-1.0.0/src/pyros/mcp/__init__.py +9 -0
  199. pyros_robotics-1.0.0/src/pyros/mcp/server.py +439 -0
  200. pyros_robotics-1.0.0/src/pyros/migration/__init__.py +5 -0
  201. pyros_robotics-1.0.0/src/pyros/migration/dependency_mapper.py +82 -0
  202. pyros_robotics-1.0.0/src/pyros/migration/engine.py +215 -0
  203. pyros_robotics-1.0.0/src/pyros/migration/models.py +81 -0
  204. pyros_robotics-1.0.0/src/pyros/migration/scanner.py +79 -0
  205. pyros_robotics-1.0.0/src/pyros/migration/transformers/__init__.py +1 -0
  206. pyros_robotics-1.0.0/src/pyros/migration/transformers/cmake.py +61 -0
  207. pyros_robotics-1.0.0/src/pyros/migration/transformers/config_yaml.py +27 -0
  208. pyros_robotics-1.0.0/src/pyros/migration/transformers/interfaces.py +188 -0
  209. pyros_robotics-1.0.0/src/pyros/migration/transformers/launch_xml.py +134 -0
  210. pyros_robotics-1.0.0/src/pyros/migration/transformers/package_xml.py +55 -0
  211. pyros_robotics-1.0.0/src/pyros/migration/transformers/roscpp_to_rclcpp.py +57 -0
  212. pyros_robotics-1.0.0/src/pyros/migration/transformers/rospy_to_rclpy.py +143 -0
  213. pyros_robotics-1.0.0/src/pyros/migration/transformers/stack_mapper.py +145 -0
  214. pyros_robotics-1.0.0/src/pyros/py.typed +0 -0
  215. pyros_robotics-1.0.0/src/pyros/runtime/__init__.py +23 -0
  216. pyros_robotics-1.0.0/src/pyros/runtime/introspect.py +204 -0
  217. pyros_robotics-1.0.0/src/pyros/runtime/log_reader.py +114 -0
  218. pyros_robotics-1.0.0/src/pyros/sim/__init__.py +6 -0
  219. pyros_robotics-1.0.0/src/pyros/sim/backends/__init__.py +1 -0
  220. pyros_robotics-1.0.0/src/pyros/sim/backends/base.py +41 -0
  221. pyros_robotics-1.0.0/src/pyros/sim/backends/gazebo_backend.py +719 -0
  222. pyros_robotics-1.0.0/src/pyros/sim/backends/mujoco_backend.py +217 -0
  223. pyros_robotics-1.0.0/src/pyros/sim/metrics.py +47 -0
  224. pyros_robotics-1.0.0/src/pyros/sim/process_manager.py +80 -0
  225. pyros_robotics-1.0.0/src/pyros/sim/runner.py +108 -0
  226. pyros_robotics-1.0.0/src/pyros/sim/scenarios/__init__.py +1 -0
  227. pyros_robotics-1.0.0/src/pyros/sim/scenarios/base.py +29 -0
  228. pyros_robotics-1.0.0/src/pyros/sim/scenarios/custom.py +47 -0
  229. pyros_robotics-1.0.0/src/pyros/sim/scenarios/navigation.py +150 -0
  230. pyros_robotics-1.0.0/src/pyros/sim/urdf_to_mjcf.py +569 -0
  231. pyros_robotics-1.0.0/src/pyros/tuning/__init__.py +7 -0
  232. pyros_robotics-1.0.0/src/pyros/tuning/config_writer.py +93 -0
  233. pyros_robotics-1.0.0/src/pyros/tuning/engine.py +91 -0
  234. pyros_robotics-1.0.0/src/pyros/tuning/objective_parser.py +198 -0
  235. pyros_robotics-1.0.0/src/pyros/tuning/optimizer.py +119 -0
  236. pyros_robotics-1.0.0/src/pyros/tuning/param_space.py +124 -0
  237. pyros_robotics-1.0.0/src/pyros/tuning/scoring.py +76 -0
  238. pyros_robotics-1.0.0/templates/github-actions/pyros-ci.yml +88 -0
  239. pyros_robotics-1.0.0/tests/__init__.py +0 -0
  240. pyros_robotics-1.0.0/tests/conftest.py +30 -0
  241. pyros_robotics-1.0.0/tests/fixtures/__init__.py +0 -0
  242. pyros_robotics-1.0.0/tests/fixtures/workspace_builder.py +592 -0
  243. pyros_robotics-1.0.0/tests/test_agent/__init__.py +0 -0
  244. pyros_robotics-1.0.0/tests/test_agent/test_agent.py +46 -0
  245. pyros_robotics-1.0.0/tests/test_agent/test_apply_fix_tool.py +348 -0
  246. pyros_robotics-1.0.0/tests/test_agent/test_dispatcher.py +73 -0
  247. pyros_robotics-1.0.0/tests/test_agent/test_install_policy.py +135 -0
  248. pyros_robotics-1.0.0/tests/test_agent/test_intent_router.py +141 -0
  249. pyros_robotics-1.0.0/tests/test_agent/test_llm_error_formatting.py +57 -0
  250. pyros_robotics-1.0.0/tests/test_agent/test_react_retry.py +86 -0
  251. pyros_robotics-1.0.0/tests/test_agent/test_runner.py +295 -0
  252. pyros_robotics-1.0.0/tests/test_cli/__init__.py +0 -0
  253. pyros_robotics-1.0.0/tests/test_cli/test_catalog.py +58 -0
  254. pyros_robotics-1.0.0/tests/test_cli/test_ci_command.py +99 -0
  255. pyros_robotics-1.0.0/tests/test_cli/test_codegen_commands.py +83 -0
  256. pyros_robotics-1.0.0/tests/test_cli/test_dotenv_override.py +92 -0
  257. pyros_robotics-1.0.0/tests/test_cli/test_json_schemas.py +119 -0
  258. pyros_robotics-1.0.0/tests/test_cli/test_schema_versioning.py +127 -0
  259. pyros_robotics-1.0.0/tests/test_cli/test_status_command.py +34 -0
  260. pyros_robotics-1.0.0/tests/test_cli/test_templates.py +354 -0
  261. pyros_robotics-1.0.0/tests/test_codegen/__init__.py +0 -0
  262. pyros_robotics-1.0.0/tests/test_codegen/test_change.py +91 -0
  263. pyros_robotics-1.0.0/tests/test_codegen/test_docker_template.py +41 -0
  264. pyros_robotics-1.0.0/tests/test_codegen/test_engine.py +59 -0
  265. pyros_robotics-1.0.0/tests/test_codegen/test_multi_robot.py +60 -0
  266. pyros_robotics-1.0.0/tests/test_codegen/test_sensor_addition.py +120 -0
  267. pyros_robotics-1.0.0/tests/test_diagnostics/__init__.py +0 -0
  268. pyros_robotics-1.0.0/tests/test_diagnostics/test_bag_probe.py +110 -0
  269. pyros_robotics-1.0.0/tests/test_diagnostics/test_bench.py +139 -0
  270. pyros_robotics-1.0.0/tests/test_diagnostics/test_colcon_translator.py +57 -0
  271. pyros_robotics-1.0.0/tests/test_diagnostics/test_controllers_from_urdf.py +112 -0
  272. pyros_robotics-1.0.0/tests/test_diagnostics/test_diff_applier.py +196 -0
  273. pyros_robotics-1.0.0/tests/test_diagnostics/test_diff_changeset.py +215 -0
  274. pyros_robotics-1.0.0/tests/test_diagnostics/test_engine.py +116 -0
  275. pyros_robotics-1.0.0/tests/test_diagnostics/test_evidence.py +72 -0
  276. pyros_robotics-1.0.0/tests/test_diagnostics/test_fixes.py +78 -0
  277. pyros_robotics-1.0.0/tests/test_diagnostics/test_launch_checks.py +162 -0
  278. pyros_robotics-1.0.0/tests/test_diagnostics/test_launch_graph.py +114 -0
  279. pyros_robotics-1.0.0/tests/test_diagnostics/test_log_scanner.py +84 -0
  280. pyros_robotics-1.0.0/tests/test_diagnostics/test_qos_check.py +101 -0
  281. pyros_robotics-1.0.0/tests/test_diagnostics/test_rmw_probe.py +106 -0
  282. pyros_robotics-1.0.0/tests/test_diagnostics/test_sandbox.py +94 -0
  283. pyros_robotics-1.0.0/tests/test_diagnostics/test_tf_live.py +124 -0
  284. pyros_robotics-1.0.0/tests/test_diagnostics/test_urdf_differ.py +128 -0
  285. pyros_robotics-1.0.0/tests/test_diagnostics/test_urdf_fixer.py +178 -0
  286. pyros_robotics-1.0.0/tests/test_diagnostics/test_urdf_validator.py +273 -0
  287. pyros_robotics-1.0.0/tests/test_explainer/__init__.py +0 -0
  288. pyros_robotics-1.0.0/tests/test_explainer/test_diagnoser.py +66 -0
  289. pyros_robotics-1.0.0/tests/test_explainer/test_diagram_renderer.py +58 -0
  290. pyros_robotics-1.0.0/tests/test_explainer/test_engine.py +72 -0
  291. pyros_robotics-1.0.0/tests/test_explainer/test_llm_diagnoser.py +136 -0
  292. pyros_robotics-1.0.0/tests/test_explainer/test_subsystem_tracer.py +62 -0
  293. pyros_robotics-1.0.0/tests/test_explainer/test_verification_flow.py +119 -0
  294. pyros_robotics-1.0.0/tests/test_generator/__init__.py +0 -0
  295. pyros_robotics-1.0.0/tests/test_generator/test_engine.py +86 -0
  296. pyros_robotics-1.0.0/tests/test_generator/test_extras_emitter.py +167 -0
  297. pyros_robotics-1.0.0/tests/test_generator/test_spec_parser.py +54 -0
  298. pyros_robotics-1.0.0/tests/test_graph/__init__.py +0 -0
  299. pyros_robotics-1.0.0/tests/test_graph/test_launch_parser.py +108 -0
  300. pyros_robotics-1.0.0/tests/test_graph/test_package_scanner.py +82 -0
  301. pyros_robotics-1.0.0/tests/test_graph/test_qos.py +196 -0
  302. pyros_robotics-1.0.0/tests/test_graph/test_qos_parsing.py +178 -0
  303. pyros_robotics-1.0.0/tests/test_graph/test_urdf_parser.py +103 -0
  304. pyros_robotics-1.0.0/tests/test_graph/test_workspace_graph.py +126 -0
  305. pyros_robotics-1.0.0/tests/test_integration/__init__.py +0 -0
  306. pyros_robotics-1.0.0/tests/test_integration/test_full_pipeline.py +244 -0
  307. pyros_robotics-1.0.0/tests/test_integration/test_llm_live.py +77 -0
  308. pyros_robotics-1.0.0/tests/test_mcp/__init__.py +0 -0
  309. pyros_robotics-1.0.0/tests/test_mcp/test_server.py +187 -0
  310. pyros_robotics-1.0.0/tests/test_migration/__init__.py +0 -0
  311. pyros_robotics-1.0.0/tests/test_migration/test_engine.py +65 -0
  312. pyros_robotics-1.0.0/tests/test_migration/test_interfaces.py +73 -0
  313. pyros_robotics-1.0.0/tests/test_migration/test_stack_mapper.py +58 -0
  314. pyros_robotics-1.0.0/tests/test_migration/test_transformers.py +120 -0
  315. pyros_robotics-1.0.0/tests/test_runtime/__init__.py +0 -0
  316. pyros_robotics-1.0.0/tests/test_runtime/test_introspect.py +90 -0
  317. pyros_robotics-1.0.0/tests/test_runtime/test_log_reader.py +70 -0
  318. pyros_robotics-1.0.0/tests/test_sim/__init__.py +0 -0
  319. pyros_robotics-1.0.0/tests/test_sim/test_metrics.py +37 -0
  320. pyros_robotics-1.0.0/tests/test_sim/test_mujoco_live.py +106 -0
  321. pyros_robotics-1.0.0/tests/test_sim/test_process_manager.py +35 -0
  322. pyros_robotics-1.0.0/tests/test_sim/test_process_manager_xplat.py +56 -0
  323. pyros_robotics-1.0.0/tests/test_sim/test_runner.py +78 -0
  324. pyros_robotics-1.0.0/tests/test_sim/test_urdf_to_mjcf.py +141 -0
  325. pyros_robotics-1.0.0/tests/test_tuning/__init__.py +0 -0
  326. pyros_robotics-1.0.0/tests/test_tuning/test_config_writer.py +39 -0
  327. pyros_robotics-1.0.0/tests/test_tuning/test_objective_parser.py +34 -0
  328. pyros_robotics-1.0.0/tests/test_tuning/test_optimizer.py +51 -0
  329. pyros_robotics-1.0.0/tests/test_tuning/test_param_space.py +62 -0
  330. pyros_robotics-1.0.0/tests/test_tuning/test_scoring.py +57 -0
@@ -0,0 +1,48 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ *.egg-info/
6
+ *.egg
7
+ dist/
8
+ build/
9
+ .eggs/
10
+ *.whl
11
+
12
+ # Virtual environments
13
+ .venv/
14
+ venv/
15
+ env/
16
+
17
+ # IDE
18
+ .idea/
19
+ .vscode/
20
+ *.swp
21
+ *.swo
22
+ .DS_Store
23
+
24
+ # Testing
25
+ .pytest_cache/
26
+ .coverage
27
+ htmlcov/
28
+ .mypy_cache/
29
+ .ruff_cache/
30
+
31
+ # ROS2
32
+ install/
33
+ log/
34
+ build/
35
+ .ros/
36
+
37
+ # Claude Code
38
+ .claude/
39
+
40
+ # Skills (Claude instructions, not source code)
41
+ skills/
42
+
43
+ # Environment / secrets
44
+ .env
45
+ .env.*
46
+
47
+ # Distribution
48
+ *.tar.gz
@@ -0,0 +1,198 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+
135
+ 6. Trademarks. This License does not grant permission to use the trade
136
+ names, trademarks, service marks, or product names of the Licensor,
137
+ except as required for reasonable and customary use in describing the
138
+ origin of the Work and reproducing the content of the NOTICE file.
139
+
140
+ 7. Disclaimer of Warranty. Unless required by applicable law or
141
+ agreed to in writing, Licensor provides the Work (and each
142
+ Contributor provides its Contributions) on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any warranties or conditions
145
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
146
+ PARTICULAR PURPOSE. You are solely responsible for determining the
147
+ appropriateness of using or redistributing the Work and assume any
148
+ risks associated with Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability. In no event and under no legal theory,
151
+ whether in tort (including negligence), contract, or otherwise,
152
+ unless required by applicable law (such as deliberate and grossly
153
+ negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special,
155
+ incidental, or consequential damages of any character arising as a
156
+ result of this License or out of the use or inability to use the
157
+ Work (including but not limited to damages for loss of goodwill,
158
+ work stoppage, computer failure or malfunction, or any and all
159
+ other commercial damages or losses), even if such Contributor
160
+ has been advised of the possibility of such damages.
161
+
162
+ 9. Accepting Warranty or Additional Liability. While redistributing
163
+ the Work or Derivative Works thereof, You may choose to offer,
164
+ and charge a fee for, acceptance of support, warranty, indemnity,
165
+ or other liability obligations and/or rights consistent with this
166
+ License. However, in accepting such obligations, You may act only
167
+ on Your own behalf and on Your sole responsibility, not on behalf
168
+ of any other Contributor, and only if You agree to indemnify,
169
+ defend, and hold each Contributor harmless for any liability
170
+ incurred by, or claims asserted against, such Contributor by reason
171
+ of your accepting any such warranty or additional liability.
172
+
173
+ END OF TERMS AND CONDITIONS
174
+
175
+ APPENDIX: How to apply the Apache License to your work.
176
+
177
+ To apply the Apache License to your work, attach the following
178
+ boilerplate notice, with the fields enclosed by brackets "[]"
179
+ replaced with your own identifying information. Do not include
180
+ the brackets. The text should be enclosed in the appropriate
181
+ comment syntax for the file format. We also recommend that a
182
+ file or class name and description of purpose be included on the
183
+ same "printed page" as the copyright notice for easier
184
+ identification within third-party archives.
185
+
186
+ Copyright [yyyy] [name of copyright owner]
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ https://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ See the License for the specific language governing permissions and
198
+ limitations under the License.
@@ -0,0 +1,185 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyros-robotics
3
+ Version: 1.0.0
4
+ Summary: Validation, repair, and forensics toolchain for ROS 2 workspaces
5
+ Author: Pyros Team
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Keywords: ai,cli,robotics,ros2,simulation
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Python: >=3.10
15
+ Requires-Dist: anthropic>=0.25
16
+ Requires-Dist: click>=8.1
17
+ Requires-Dist: inquirerpy>=0.3.4
18
+ Requires-Dist: lxml>=4.9
19
+ Requires-Dist: mcp>=1.0
20
+ Requires-Dist: networkx>=3.0
21
+ Requires-Dist: numpy>=1.24
22
+ Requires-Dist: openai>=1.0
23
+ Requires-Dist: prompt-toolkit>=3.0
24
+ Requires-Dist: pyyaml>=6.0
25
+ Requires-Dist: rich>=13.0
26
+ Requires-Dist: textual>=0.40
27
+ Requires-Dist: trimesh>=3.20
28
+ Provides-Extra: all
29
+ Requires-Dist: mujoco>=3.0; extra == 'all'
30
+ Requires-Dist: openai>=1.0; extra == 'all'
31
+ Requires-Dist: ruamel-yaml>=0.18; extra == 'all'
32
+ Requires-Dist: scikit-optimize>=0.9; extra == 'all'
33
+ Provides-Extra: anthropic
34
+ Requires-Dist: anthropic>=0.25; extra == 'anthropic'
35
+ Provides-Extra: dev
36
+ Requires-Dist: jsonschema>=4.0; extra == 'dev'
37
+ Requires-Dist: mypy; extra == 'dev'
38
+ Requires-Dist: pytest-cov; extra == 'dev'
39
+ Requires-Dist: pytest-timeout; extra == 'dev'
40
+ Requires-Dist: pytest>=7.0; extra == 'dev'
41
+ Requires-Dist: ruff; extra == 'dev'
42
+ Provides-Extra: mujoco
43
+ Requires-Dist: mujoco>=3.0; extra == 'mujoco'
44
+ Provides-Extra: openai
45
+ Requires-Dist: openai>=1.0; extra == 'openai'
46
+ Provides-Extra: tuning-v2
47
+ Requires-Dist: scikit-optimize>=0.9; extra == 'tuning-v2'
48
+ Provides-Extra: yaml-preserve
49
+ Requires-Dist: ruamel-yaml>=0.18; extra == 'yaml-preserve'
50
+ Description-Content-Type: text/markdown
51
+
52
+ # pyros
53
+
54
+ **Pyros isn't an AI assistant for robotics engineers. Pyros is the robotics engineer.**
55
+
56
+ Give it a workspace, a CAD export, or a bug. It owns the iteration loop —
57
+ validate, repair, simulate, build — until the output ships. You review the
58
+ artifact. Pyros writes it.
59
+
60
+ ```bash
61
+ $ pyros run "fix examples/broken_arm_ws"
62
+ ✓ scan 1 URDF found
63
+ ✗ validate-urdf 4 errors
64
+ ✓ fix-urdf 2 auto-repaired → robot_fixed.urdf
65
+ ✓ validate-urdf 0 errors ← convergence
66
+ ✓ colcon-build passed
67
+
68
+ artifact: .pyros/runs/run-2026-04-29T11-29-56.json
69
+ duration: 0.22s
70
+ ```
71
+
72
+ ## Install
73
+
74
+ ```bash
75
+ pip install pyros-robotics
76
+ ```
77
+
78
+ ## Use it from any agent (Claude Desktop, Cursor, Windsurf, Claude Code)
79
+
80
+ Pyros ships an MCP server. Every primitive — `validate_urdf`, `fix_urdf`,
81
+ `run`, `ci`, `analyze_bag`, `scan_logs`, `diagnose_qos`, `build_explain`,
82
+ `launch_graph`, `urdf_diff`, `controllers_from_urdf` — is callable from any
83
+ MCP-aware agent.
84
+
85
+ Add to your client's MCP config:
86
+
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "pyros": { "command": "pyros-mcp" }
91
+ }
92
+ }
93
+ ```
94
+
95
+ Then in your agent: *"Fix the URDFs in `~/work/robot_ws` and ship a clean
96
+ build."* The agent calls `pyros.run`, which drives the full validate → fix
97
+ → build loop and returns a structured report.
98
+
99
+ ## Drop into CI
100
+
101
+ Copy [`templates/github-actions/pyros-ci.yml`](./templates/github-actions/pyros-ci.yml)
102
+ to `.github/workflows/pyros-ci.yml`. Pyros will run on every PR, validate
103
+ every URDF, comment the verdict on the PR, and upload reports as workflow
104
+ artifacts. Exit codes propagate, so failing checks block the merge.
105
+
106
+ ```yaml
107
+ name: pyros-ci
108
+ on: [pull_request]
109
+ jobs:
110
+ pyros:
111
+ runs-on: ubuntu-latest
112
+ steps:
113
+ - uses: actions/checkout@v4
114
+ - uses: actions/setup-python@v5
115
+ with: { python-version: "3.12" }
116
+ - run: pip install pyros-robotics
117
+ - run: pyros ci --json --skip-build > pyros-ci.json
118
+ ```
119
+
120
+ ## What it does (no LLM required)
121
+
122
+ ```bash
123
+ # Repair a CAD-exported URDF (zero/missing inertias, wrong mesh paths, joint limits)
124
+ pyros fix-urdf robot.urdf --package my_robot_description
125
+
126
+ # Deep-validate a URDF: kinematic, dynamic, geometry, control checks
127
+ pyros validate-urdf robot.urdf
128
+ pyros validate-urdf robot.urdf --json # for CI pipelines
129
+
130
+ # Run all health checks against a workspace (doctor + URDFs + colcon + log scan)
131
+ pyros ci -w ./my_robot_ws
132
+ pyros ci -w ./my_robot_ws --json > report.json
133
+
134
+ # Launch MuJoCo viewer offline (no auth, no LLM, no network)
135
+ pyros sim-offline -w ./my_robot_ws
136
+
137
+ # Forensics on running / past systems
138
+ pyros doctor # environment health
139
+ pyros analyze-bag run.mcap # rosbag2 summary
140
+ pyros scan-logs # ~/.ros/log error scanner
141
+ pyros diagnose-qos # DDS/QoS mismatch checks
142
+ pyros build-explain # colcon errors → plain English
143
+
144
+ # Workspace introspection
145
+ pyros launch-graph my_pkg/launch/sim.launch.py
146
+ pyros graph -w ./my_robot_ws
147
+ ```
148
+
149
+ Exit codes for `validate-urdf` and `ci`: `0` clean, `1` warnings, `2` errors.
150
+ Both emit JSON with `--json` so they drop into GitHub Actions / GitLab CI directly.
151
+
152
+ ## What it does (LLM optional)
153
+
154
+ ```bash
155
+ # Generate a workspace from a description
156
+ pyros # interactive TUI
157
+ pyros ask "build a 6-DOF arm with vacuum gripper"
158
+ ```
159
+
160
+ Set `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` to enable. Without keys, generation
161
+ falls back to a deterministic builder that handles common robot types.
162
+
163
+ ## Why not just use ChatGPT or Claude?
164
+
165
+ | Task | Chat LLM | Pyros |
166
+ |---|---|---|
167
+ | Write a URDF from a description | ✓ | ✓ (with validation loop) |
168
+ | Detect non-positive-definite inertia tensor | ✗ | ✓ |
169
+ | Repair zero-mass links and bad mesh paths in your file | ✗ | ✓ (`fix-urdf`) |
170
+ | Run colcon build and translate the errors | ✗ | ✓ (`build-explain`) |
171
+ | Read your running ROS system / DDS state | ✗ | ✓ (`diagnose-qos`, `doctor`) |
172
+ | Sit in a CI pipeline with exit codes and JSON | ✗ | ✓ (`ci`) |
173
+ | Scan rosbags for frequency drops and gaps | ✗ | ✓ (`analyze-bag`) |
174
+
175
+ Pyros works on the file on disk, the bag on disk, the build output, and the
176
+ running system. It is a toolchain, not a chat wrapper.
177
+
178
+ ## Status
179
+
180
+ Beta — API stable, used in production by early teams. Report issues at
181
+ <https://github.com/anthropics/pyros>.
182
+
183
+ ## License
184
+
185
+ Apache-2.0
@@ -0,0 +1,134 @@
1
+ # pyros
2
+
3
+ **Pyros isn't an AI assistant for robotics engineers. Pyros is the robotics engineer.**
4
+
5
+ Give it a workspace, a CAD export, or a bug. It owns the iteration loop —
6
+ validate, repair, simulate, build — until the output ships. You review the
7
+ artifact. Pyros writes it.
8
+
9
+ ```bash
10
+ $ pyros run "fix examples/broken_arm_ws"
11
+ ✓ scan 1 URDF found
12
+ ✗ validate-urdf 4 errors
13
+ ✓ fix-urdf 2 auto-repaired → robot_fixed.urdf
14
+ ✓ validate-urdf 0 errors ← convergence
15
+ ✓ colcon-build passed
16
+
17
+ artifact: .pyros/runs/run-2026-04-29T11-29-56.json
18
+ duration: 0.22s
19
+ ```
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ pip install pyros-robotics
25
+ ```
26
+
27
+ ## Use it from any agent (Claude Desktop, Cursor, Windsurf, Claude Code)
28
+
29
+ Pyros ships an MCP server. Every primitive — `validate_urdf`, `fix_urdf`,
30
+ `run`, `ci`, `analyze_bag`, `scan_logs`, `diagnose_qos`, `build_explain`,
31
+ `launch_graph`, `urdf_diff`, `controllers_from_urdf` — is callable from any
32
+ MCP-aware agent.
33
+
34
+ Add to your client's MCP config:
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "pyros": { "command": "pyros-mcp" }
40
+ }
41
+ }
42
+ ```
43
+
44
+ Then in your agent: *"Fix the URDFs in `~/work/robot_ws` and ship a clean
45
+ build."* The agent calls `pyros.run`, which drives the full validate → fix
46
+ → build loop and returns a structured report.
47
+
48
+ ## Drop into CI
49
+
50
+ Copy [`templates/github-actions/pyros-ci.yml`](./templates/github-actions/pyros-ci.yml)
51
+ to `.github/workflows/pyros-ci.yml`. Pyros will run on every PR, validate
52
+ every URDF, comment the verdict on the PR, and upload reports as workflow
53
+ artifacts. Exit codes propagate, so failing checks block the merge.
54
+
55
+ ```yaml
56
+ name: pyros-ci
57
+ on: [pull_request]
58
+ jobs:
59
+ pyros:
60
+ runs-on: ubuntu-latest
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ - uses: actions/setup-python@v5
64
+ with: { python-version: "3.12" }
65
+ - run: pip install pyros-robotics
66
+ - run: pyros ci --json --skip-build > pyros-ci.json
67
+ ```
68
+
69
+ ## What it does (no LLM required)
70
+
71
+ ```bash
72
+ # Repair a CAD-exported URDF (zero/missing inertias, wrong mesh paths, joint limits)
73
+ pyros fix-urdf robot.urdf --package my_robot_description
74
+
75
+ # Deep-validate a URDF: kinematic, dynamic, geometry, control checks
76
+ pyros validate-urdf robot.urdf
77
+ pyros validate-urdf robot.urdf --json # for CI pipelines
78
+
79
+ # Run all health checks against a workspace (doctor + URDFs + colcon + log scan)
80
+ pyros ci -w ./my_robot_ws
81
+ pyros ci -w ./my_robot_ws --json > report.json
82
+
83
+ # Launch MuJoCo viewer offline (no auth, no LLM, no network)
84
+ pyros sim-offline -w ./my_robot_ws
85
+
86
+ # Forensics on running / past systems
87
+ pyros doctor # environment health
88
+ pyros analyze-bag run.mcap # rosbag2 summary
89
+ pyros scan-logs # ~/.ros/log error scanner
90
+ pyros diagnose-qos # DDS/QoS mismatch checks
91
+ pyros build-explain # colcon errors → plain English
92
+
93
+ # Workspace introspection
94
+ pyros launch-graph my_pkg/launch/sim.launch.py
95
+ pyros graph -w ./my_robot_ws
96
+ ```
97
+
98
+ Exit codes for `validate-urdf` and `ci`: `0` clean, `1` warnings, `2` errors.
99
+ Both emit JSON with `--json` so they drop into GitHub Actions / GitLab CI directly.
100
+
101
+ ## What it does (LLM optional)
102
+
103
+ ```bash
104
+ # Generate a workspace from a description
105
+ pyros # interactive TUI
106
+ pyros ask "build a 6-DOF arm with vacuum gripper"
107
+ ```
108
+
109
+ Set `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` to enable. Without keys, generation
110
+ falls back to a deterministic builder that handles common robot types.
111
+
112
+ ## Why not just use ChatGPT or Claude?
113
+
114
+ | Task | Chat LLM | Pyros |
115
+ |---|---|---|
116
+ | Write a URDF from a description | ✓ | ✓ (with validation loop) |
117
+ | Detect non-positive-definite inertia tensor | ✗ | ✓ |
118
+ | Repair zero-mass links and bad mesh paths in your file | ✗ | ✓ (`fix-urdf`) |
119
+ | Run colcon build and translate the errors | ✗ | ✓ (`build-explain`) |
120
+ | Read your running ROS system / DDS state | ✗ | ✓ (`diagnose-qos`, `doctor`) |
121
+ | Sit in a CI pipeline with exit codes and JSON | ✗ | ✓ (`ci`) |
122
+ | Scan rosbags for frequency drops and gaps | ✗ | ✓ (`analyze-bag`) |
123
+
124
+ Pyros works on the file on disk, the bag on disk, the build output, and the
125
+ running system. It is a toolchain, not a chat wrapper.
126
+
127
+ ## Status
128
+
129
+ Beta — API stable, used in production by early teams. Report issues at
130
+ <https://github.com/anthropics/pyros>.
131
+
132
+ ## License
133
+
134
+ Apache-2.0
@@ -0,0 +1,38 @@
1
+ # Pyros JSON output schemas
2
+
3
+ Every `pyros <cmd> --json` output and every MCP tool response includes a
4
+ `"schema_version"` field. This directory documents the shape of each one
5
+ so agents and CI tools have a stable contract.
6
+
7
+ | Field across all outputs | Description |
8
+ |---|---|
9
+ | `schema_version` | Currently `"1.0"`. Bumped on breaking changes. |
10
+
11
+ ## Stability promise
12
+
13
+ - A new field can be added in a `1.x` release.
14
+ - Existing fields' types and meanings will not change without a major bump.
15
+ - Removing or repurposing a field requires bumping `1.x` → `2.0`.
16
+
17
+ ## Schemas
18
+
19
+ | File | Command / tool |
20
+ |---|---|
21
+ | [`run.schema.json`](./run.schema.json) | `pyros run` · MCP `run` |
22
+ | [`validate-urdf.schema.json`](./validate-urdf.schema.json) | `pyros validate-urdf` · MCP `validate_urdf` |
23
+ | [`fix-urdf.schema.json`](./fix-urdf.schema.json) | `pyros fix-urdf` · MCP `fix_urdf` |
24
+ | [`ci.schema.json`](./ci.schema.json) | `pyros ci` · MCP `ci` |
25
+ | [`doctor.schema.json`](./doctor.schema.json) | `pyros doctor` · MCP `doctor` |
26
+ | [`urdf-diff.schema.json`](./urdf-diff.schema.json) | `pyros urdf-diff` · MCP `urdf_diff` |
27
+
28
+ ## Validating against a schema
29
+
30
+ ```python
31
+ import json, jsonschema, subprocess
32
+ out = subprocess.run(
33
+ ["pyros", "validate-urdf", "robot.urdf", "--json"],
34
+ capture_output=True, text=True,
35
+ ).stdout
36
+ schema = json.load(open("docs/schemas/validate-urdf.schema.json"))
37
+ jsonschema.validate(json.loads(out), schema)
38
+ ```
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pyros.dev/schemas/ci.schema.json",
4
+ "title": "pyros ci / MCP ci output",
5
+ "description": "Workspace health-check suite suitable for CI: doctor + URDFs + colcon + log scan.",
6
+ "type": "object",
7
+ "required": ["schema_version", "workspace", "exit_code", "steps"],
8
+ "properties": {
9
+ "schema_version": { "const": "1.0" },
10
+ "workspace": { "type": "string" },
11
+ "elapsed_sec": { "type": "number", "minimum": 0 },
12
+ "exit_code": { "type": "integer", "enum": [0, 1, 2] },
13
+ "steps": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "required": ["name", "exit_code", "summary"],
18
+ "properties": {
19
+ "name": { "type": "string", "description": "doctor | validate-urdf:<file> | colcon-build | log-scan" },
20
+ "exit_code": { "type": "integer", "enum": [0, 1, 2] },
21
+ "summary": { "type": "string" },
22
+ "details": { "type": "array" }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://pyros.dev/schemas/doctor.schema.json",
4
+ "title": "pyros doctor / MCP doctor output",
5
+ "description": "System health check: ROS sourcing, DDS/RMW, workspace structure, diagnostics, colcon.",
6
+ "type": "object",
7
+ "required": ["schema_version", "passed", "checks"],
8
+ "properties": {
9
+ "schema_version": { "const": "1.0" },
10
+ "workspace": { "type": "string" },
11
+ "elapsed_sec": { "type": "number", "minimum": 0 },
12
+ "passed": { "type": "boolean" },
13
+ "checks": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "required": ["label", "ok"],
18
+ "properties": {
19
+ "label": { "type": "string" },
20
+ "ok": { "type": "boolean" },
21
+ "detail": { "type": "string" },
22
+ "fix_hint": { "type": "string" }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }