devagent-physical-engine 0.12.1__tar.gz → 0.12.3__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.
- {devagent_physical_engine-0.12.1/src/devagent_physical_engine.egg-info → devagent_physical_engine-0.12.3}/PKG-INFO +6 -2
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/README.md +5 -1
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/pyproject.toml +1 -1
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/__init__.py +1 -1
- devagent_physical_engine-0.12.3/src/devagent_physical_engine/ros2/gazebo_cli.py +77 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/gazebo_pose.py +6 -6
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/gazebo_world.py +2 -7
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/moveit_scene.py +114 -6
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/scene_probe.py +94 -24
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3/src/devagent_physical_engine.egg-info}/PKG-INFO +6 -2
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine.egg-info/SOURCES.txt +3 -0
- devagent_physical_engine-0.12.3/tests/test_gazebo_cli_v0122.py +88 -0
- devagent_physical_engine-0.12.3/tests/test_moveit_scene_v0123.py +213 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/NOTICE +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/setup.cfg +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/__init__.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/compiler.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/contracts.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/coordinator.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/critic.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/evidence.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/interpreter.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/planner.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/recovery.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/routing.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/runtime.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/semantic.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/agent/structured.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ai_cli.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/cli.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/continuous_clearance.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/doctor.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/engineering_agent.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/engineering_request.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/execution.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/models.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/operating_envelope.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/__init__.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/benchmark.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/candidates.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/contracts.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/evaluator.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/evidence.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/experience.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/measured.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/optimizer.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/optimization/orchestrator.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/physical_campaign.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/physical_evidence.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/physical_motion.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/planning.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/preexecution_contract.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/__init__.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/anthropic.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/common.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/factory.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/gemini.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_adapters/openai.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/provider_qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/providers.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/qualification_cli.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/qualification_harness.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/reference_workcell.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/robot_platform.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/robots.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/__init__.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/acceptance.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/commands.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/continuous_clearance_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/doctor.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/fk_pose.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/fk_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/frame_alignment.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/joint_state_recorder.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/measured_motion.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/moveit_joint_plan_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/moveit_task_planner.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/preexecution.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/qualification_v10.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/qualification_v11.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/qualification_v12.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/state_validity_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/task_adapter.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/task_visualization.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/tf_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/tool_scene.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/tool_scene_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/trajectory.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/ur5e.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/ur5e_adapter.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/ur5e_v10_adapter.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/workpiece_follow.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/workpiece_gazebo_follower.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/workpiece_scene.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/ros2/workpiece_scene_probe.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/setup_profile.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/sim_real_qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/simulation.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/simulation_platform.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/tool_collision.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/trajectory_qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/twin.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/twin_builder.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/twin_materialization.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/verification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine/workpiece_lifecycle.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine.egg-info/dependency_links.txt +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine.egg-info/entry_points.txt +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine.egg-info/requires.txt +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/src/devagent_physical_engine.egg-info/top_level.txt +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_agent_core.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_agent_semantic_hardening.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ai_cli.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ai_cli_v07.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_continuous_clearance_v011.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_core.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_engineering_request_v07.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_interpreter_profiles_v08.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_live_provider_qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_measured_motion_v10.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_natural_language_agent_v07.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_openai_strict_schema_v0113.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_optimization_v05.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_physical_campaign_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_physical_evidence_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_physical_motion_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_planning_fallback_v012.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_preexecution_contract_v10.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_provider_and_qualification.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_qualification_cli_lifecycle_v06.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_qualification_harness_v06.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_readme_pypi.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_real_provider_adapters.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_reference_workcell_v012.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_robot_platform_v08.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ros2_production_receipts_v011.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ros2_simulation.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ros_trajectory_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_setup_profile.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_sim_real_qualification_v011.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_simulation_platform_v08.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_tool_collision_v011.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_trajectory_qualification_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_twin_materialization_v10.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_twin_v08.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ur5e_adapter_scopes_v09.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_ur5e_v10_adapter_scopes.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_v052_stabilization.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_v08_catalog_mapping_regression.py +0 -0
- {devagent_physical_engine-0.12.1 → devagent_physical_engine-0.12.3}/tests/test_workpiece_lifecycle_v011.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devagent-physical-engine
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.3
|
|
4
4
|
Summary: Verification-first agentic engineering, simulation, and evidence runtime for robotics and industrial automation.
|
|
5
5
|
Author: Tom Ha
|
|
6
6
|
License: All Rights Reserved
|
|
@@ -191,6 +191,10 @@ On a successful run, Gazebo / MoveIt remains open by default so the engineer can
|
|
|
191
191
|
|
|
192
192
|
v0.12.1 hardens the initial ROS joint-state snapshot by parsing `ros2 topic echo --once` output as a YAML document stream. This accepts the normal ROS 2 trailing `---` message separator instead of incorrectly classifying an otherwise valid `/joint_states` sample as `joint_state_snapshot_invalid`.
|
|
193
193
|
|
|
194
|
+
v0.12.2 additionally hardens Gazebo model-pose read-back across Harmonic CLI renderings. One shared parser now accepts both pipe-delimited and whitespace-delimited finite XYZ/RPY vectors and is used by initial world verification and dynamic workpiece pose read-back, so task simulation does not depend on a single human-readable `gz model --pose` delimiter style.
|
|
195
|
+
|
|
196
|
+
v0.12.3 hardens MoveIt PlanningScene read-back when MoveIt serializes world collision objects in its own planning/root frame. A different observed frame is never trusted by label alone: DevAgent first proves the observed frame and canonical Twin frame are identity-equivalent through TF, then re-reads the scene and canonicalizes it back to the Twin planning frame before enforcing the exact geometry hash. Non-identity frames and geometry drift remain fail-closed.
|
|
197
|
+
|
|
194
198
|
The packaged reference workcell is **not customer-site geometry**. Arbitrary plant layouts require an imported or user-declared physical Twin with trusted poses, collision geometry, tool/TCP information, and workpiece properties. DevAgent does not invent those site facts from a natural-language prompt.
|
|
195
199
|
|
|
196
200
|
The v0.12 implementation remains evidence-gated: source/CI success does not prove the ROS target campaign has passed on a particular workstation. Use the executable qualification below before treating the task-specific path as qualified on that target.
|
|
@@ -418,7 +422,7 @@ Detailed engineering documentation lives in the repository:
|
|
|
418
422
|
|
|
419
423
|
## Project status
|
|
420
424
|
|
|
421
|
-
**v0.12.
|
|
425
|
+
**v0.12.3 — Beta software / evidence-gated task-specific physical simulation.**
|
|
422
426
|
|
|
423
427
|
The software and release pipeline are production-oriented, but physical readiness is scope-specific and evidence-driven. The UR5e task-specific reference-workcell path must pass the executable v0.12 ROS/Gazebo/MoveIt campaign on the target workstation before that scope is considered simulation-qualified there. Real robot execution remains locked. Functional-safety certification and site qualification are not claimed.
|
|
424
428
|
|
|
@@ -150,6 +150,10 @@ On a successful run, Gazebo / MoveIt remains open by default so the engineer can
|
|
|
150
150
|
|
|
151
151
|
v0.12.1 hardens the initial ROS joint-state snapshot by parsing `ros2 topic echo --once` output as a YAML document stream. This accepts the normal ROS 2 trailing `---` message separator instead of incorrectly classifying an otherwise valid `/joint_states` sample as `joint_state_snapshot_invalid`.
|
|
152
152
|
|
|
153
|
+
v0.12.2 additionally hardens Gazebo model-pose read-back across Harmonic CLI renderings. One shared parser now accepts both pipe-delimited and whitespace-delimited finite XYZ/RPY vectors and is used by initial world verification and dynamic workpiece pose read-back, so task simulation does not depend on a single human-readable `gz model --pose` delimiter style.
|
|
154
|
+
|
|
155
|
+
v0.12.3 hardens MoveIt PlanningScene read-back when MoveIt serializes world collision objects in its own planning/root frame. A different observed frame is never trusted by label alone: DevAgent first proves the observed frame and canonical Twin frame are identity-equivalent through TF, then re-reads the scene and canonicalizes it back to the Twin planning frame before enforcing the exact geometry hash. Non-identity frames and geometry drift remain fail-closed.
|
|
156
|
+
|
|
153
157
|
The packaged reference workcell is **not customer-site geometry**. Arbitrary plant layouts require an imported or user-declared physical Twin with trusted poses, collision geometry, tool/TCP information, and workpiece properties. DevAgent does not invent those site facts from a natural-language prompt.
|
|
154
158
|
|
|
155
159
|
The v0.12 implementation remains evidence-gated: source/CI success does not prove the ROS target campaign has passed on a particular workstation. Use the executable qualification below before treating the task-specific path as qualified on that target.
|
|
@@ -377,7 +381,7 @@ Detailed engineering documentation lives in the repository:
|
|
|
377
381
|
|
|
378
382
|
## Project status
|
|
379
383
|
|
|
380
|
-
**v0.12.
|
|
384
|
+
**v0.12.3 — Beta software / evidence-gated task-specific physical simulation.**
|
|
381
385
|
|
|
382
386
|
The software and release pipeline are production-oriented, but physical readiness is scope-specific and evidence-driven. The UR5e task-specific reference-workcell path must pass the executable v0.12 ROS/Gazebo/MoveIt campaign on the target workstation before that scope is considered simulation-qualified there. Real robot execution remains locked. Functional-safety certification and site qualification are not claimed.
|
|
383
387
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "devagent-physical-engine"
|
|
7
|
-
version = "0.12.
|
|
7
|
+
version = "0.12.3"
|
|
8
8
|
description = "Verification-first agentic engineering, simulation, and evidence runtime for robotics and industrial automation."
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from math import isfinite
|
|
4
|
+
import re
|
|
5
|
+
|
|
6
|
+
from ..simulation_platform import SimulationPlatformError
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
_ANSI_ESCAPE = re.compile(r"\x1b\[[0-?]*[ -/]*[@-~]")
|
|
10
|
+
_BRACKET = re.compile(r"\[([^\[\]\r\n]+)\]")
|
|
11
|
+
_POSE_HEADER = re.compile(r"(?im)^\s*[-*]?\s*Pose\s*\[\s*XYZ(?:\s*\(m\))?\s*\].*$")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _vector3(payload: str) -> tuple[float, float, float] | None:
|
|
15
|
+
"""Parse one Gazebo bracket vector across supported CLI renderings.
|
|
16
|
+
|
|
17
|
+
Gazebo Sim releases have rendered vectors both as ``[x | y | z]`` and
|
|
18
|
+
``[x y z]``. Some downstream packages also emit comma-separated values.
|
|
19
|
+
Accept those presentation differences while still requiring exactly three
|
|
20
|
+
finite numeric values.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
parts = payload.replace("|", " ").replace(",", " ").split()
|
|
24
|
+
if len(parts) != 3:
|
|
25
|
+
return None
|
|
26
|
+
try:
|
|
27
|
+
values = tuple(float(value) for value in parts)
|
|
28
|
+
except ValueError:
|
|
29
|
+
return None
|
|
30
|
+
if any(not isfinite(value) for value in values):
|
|
31
|
+
return None
|
|
32
|
+
return values[0], values[1], values[2]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def parse_gz_model_pose(
|
|
36
|
+
text: str,
|
|
37
|
+
) -> tuple[tuple[float, float, float], tuple[float, float, float]]:
|
|
38
|
+
"""Parse ``gz model -m NAME --pose`` output deterministically.
|
|
39
|
+
|
|
40
|
+
The human-readable Gazebo CLI is not stable in its vector delimiter style.
|
|
41
|
+
Anchor on the model Pose header and parse the first two valid 3-vectors
|
|
42
|
+
beneath it as XYZ metres and RPY radians. ANSI terminal escapes are ignored.
|
|
43
|
+
A legacy plain six-number pose line is accepted as a bounded compatibility
|
|
44
|
+
fallback.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
cleaned = _ANSI_ESCAPE.sub("", text)
|
|
48
|
+
header = _POSE_HEADER.search(cleaned)
|
|
49
|
+
section = cleaned[header.end() :] if header is not None else cleaned
|
|
50
|
+
|
|
51
|
+
vectors: list[tuple[float, float, float]] = []
|
|
52
|
+
for match in _BRACKET.finditer(section):
|
|
53
|
+
vector = _vector3(match.group(1))
|
|
54
|
+
if vector is None:
|
|
55
|
+
continue
|
|
56
|
+
vectors.append(vector)
|
|
57
|
+
if len(vectors) == 2:
|
|
58
|
+
return vectors[0], vectors[1]
|
|
59
|
+
|
|
60
|
+
# Compatibility with older Gazebo model tools that rendered
|
|
61
|
+
# ``x y z roll pitch yaw`` as one line instead of bracket vectors.
|
|
62
|
+
for line in section.splitlines():
|
|
63
|
+
parts = line.replace(",", " ").split()
|
|
64
|
+
if len(parts) != 6:
|
|
65
|
+
continue
|
|
66
|
+
try:
|
|
67
|
+
values = tuple(float(value) for value in parts)
|
|
68
|
+
except ValueError:
|
|
69
|
+
continue
|
|
70
|
+
if any(not isfinite(value) for value in values):
|
|
71
|
+
continue
|
|
72
|
+
return (
|
|
73
|
+
(values[0], values[1], values[2]),
|
|
74
|
+
(values[3], values[4], values[5]),
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
raise SimulationPlatformError("gazebo_model_pose_output_invalid")
|
|
@@ -2,10 +2,10 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from dataclasses import asdict, dataclass
|
|
4
4
|
from math import isfinite
|
|
5
|
-
import re
|
|
6
5
|
|
|
7
6
|
from ..simulation_platform import SimulationPlatformError
|
|
8
7
|
from .commands import RosCommandRunner
|
|
8
|
+
from .gazebo_cli import parse_gz_model_pose
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@dataclass(frozen=True, slots=True)
|
|
@@ -21,11 +21,11 @@ class GazeboPoseUpdateReceipt:
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
def _parse_position(text: str) -> tuple[float, float, float]:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
raise SimulationPlatformError("gazebo_pose_readback_invalid")
|
|
28
|
-
return
|
|
24
|
+
try:
|
|
25
|
+
position, _orientation = parse_gz_model_pose(text)
|
|
26
|
+
except SimulationPlatformError as exc:
|
|
27
|
+
raise SimulationPlatformError("gazebo_pose_readback_invalid") from exc
|
|
28
|
+
return position
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
class GazeboPoseBridge:
|
|
@@ -8,6 +8,7 @@ from typing import Any
|
|
|
8
8
|
from ..simulation_platform import SimulationPlatformError
|
|
9
9
|
from ..twin_materialization import CanonicalTwinMaterialization
|
|
10
10
|
from .commands import RosCommandRunner
|
|
11
|
+
from .gazebo_cli import parse_gz_model_pose
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@dataclass(frozen=True, slots=True)
|
|
@@ -48,13 +49,7 @@ def _parse_model_names(text: str) -> set[str]:
|
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
def _parse_pose(text: str):
|
|
51
|
-
|
|
52
|
-
pattern = re.compile(r"\[\s*([-+0-9.eE]+)\s*\|\s*([-+0-9.eE]+)\s*\|\s*([-+0-9.eE]+)\s*\]")
|
|
53
|
-
for match in pattern.finditer(text):
|
|
54
|
-
triples.append(tuple(float(match.group(index)) for index in range(1, 4)))
|
|
55
|
-
if len(triples) < 2:
|
|
56
|
-
raise SimulationPlatformError("gazebo_model_pose_output_invalid")
|
|
57
|
-
return triples[0], triples[1]
|
|
52
|
+
return parse_gz_model_pose(text)
|
|
58
53
|
|
|
59
54
|
|
|
60
55
|
class GazeboWorldVerifier:
|
|
@@ -2,12 +2,14 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from dataclasses import asdict, dataclass
|
|
4
4
|
import json
|
|
5
|
+
from math import isfinite
|
|
5
6
|
from pathlib import Path
|
|
6
7
|
from typing import Any
|
|
7
8
|
|
|
8
9
|
from ..simulation_platform import SimulationPlatformError
|
|
9
10
|
from ..twin_materialization import CanonicalTwinMaterialization
|
|
10
11
|
from .commands import RosCommandRunner
|
|
12
|
+
from .frame_alignment import FrameAlignmentReceipt, FrameAlignmentVerifier
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
@dataclass(frozen=True, slots=True)
|
|
@@ -21,6 +23,8 @@ class MoveItSceneReceipt:
|
|
|
21
23
|
planning_frame: str
|
|
22
24
|
expected_object_count: int
|
|
23
25
|
observed_object_count: int | None
|
|
26
|
+
observed_planning_frames: tuple[str, ...] = ()
|
|
27
|
+
equivalent_planning_frames: tuple[str, ...] = ()
|
|
24
28
|
|
|
25
29
|
def __post_init__(self) -> None:
|
|
26
30
|
if not self.code.strip():
|
|
@@ -37,11 +41,44 @@ class MoveItSceneReceipt:
|
|
|
37
41
|
raise ValueError("moveit_scene_receipt_object_count_invalid")
|
|
38
42
|
if self.observed_object_count is not None and self.observed_object_count < 0:
|
|
39
43
|
raise ValueError("moveit_scene_receipt_object_count_invalid")
|
|
44
|
+
if any(not value.strip() for value in self.observed_planning_frames):
|
|
45
|
+
raise ValueError("moveit_scene_receipt_observed_frame_invalid")
|
|
46
|
+
if any(not value.strip() for value in self.equivalent_planning_frames):
|
|
47
|
+
raise ValueError("moveit_scene_receipt_equivalent_frame_invalid")
|
|
40
48
|
|
|
41
49
|
def to_dict(self) -> dict[str, Any]:
|
|
42
50
|
return asdict(self)
|
|
43
51
|
|
|
44
52
|
|
|
53
|
+
def _equivalent_frames_from_receipt(
|
|
54
|
+
planning_frame: str,
|
|
55
|
+
frame_alignment: FrameAlignmentReceipt | None,
|
|
56
|
+
) -> tuple[str, ...]:
|
|
57
|
+
"""Return only frames already proven identity-equivalent to the canonical frame."""
|
|
58
|
+
|
|
59
|
+
if frame_alignment is None:
|
|
60
|
+
return ()
|
|
61
|
+
if (
|
|
62
|
+
not frame_alignment.verified
|
|
63
|
+
or not isfinite(frame_alignment.translation_error_m)
|
|
64
|
+
or not isfinite(frame_alignment.rotation_error_rad)
|
|
65
|
+
or frame_alignment.translation_error_m < 0.0
|
|
66
|
+
or frame_alignment.rotation_error_rad < 0.0
|
|
67
|
+
):
|
|
68
|
+
raise SimulationPlatformError("moveit_scene_frame_receipt_invalid")
|
|
69
|
+
|
|
70
|
+
parent = frame_alignment.parent_frame.strip()
|
|
71
|
+
child = frame_alignment.child_frame.strip()
|
|
72
|
+
expected = planning_frame.strip()
|
|
73
|
+
if not parent or not child or not expected:
|
|
74
|
+
raise SimulationPlatformError("moveit_scene_frame_receipt_invalid")
|
|
75
|
+
if child == expected:
|
|
76
|
+
return () if parent == expected else (parent,)
|
|
77
|
+
if parent == expected:
|
|
78
|
+
return () if child == expected else (child,)
|
|
79
|
+
raise SimulationPlatformError("moveit_scene_frame_receipt_unbound")
|
|
80
|
+
|
|
81
|
+
|
|
45
82
|
class MoveItSceneBridge:
|
|
46
83
|
"""Apply canonical Twin collision geometry to MoveIt and read it back."""
|
|
47
84
|
|
|
@@ -58,15 +95,19 @@ class MoveItSceneBridge:
|
|
|
58
95
|
self.work_dir = Path(work_dir).expanduser().resolve()
|
|
59
96
|
self.timeout_s = float(timeout_s)
|
|
60
97
|
|
|
61
|
-
def
|
|
62
|
-
self,
|
|
63
|
-
|
|
64
|
-
|
|
98
|
+
def _run_probe(
|
|
99
|
+
self,
|
|
100
|
+
*,
|
|
101
|
+
materialization: CanonicalTwinMaterialization,
|
|
102
|
+
equivalent_frames: tuple[str, ...],
|
|
103
|
+
) -> tuple[dict[str, Any], bool]:
|
|
104
|
+
payload = materialization.moveit_scene_payload()
|
|
105
|
+
payload["equivalent_planning_frames"] = list(equivalent_frames)
|
|
65
106
|
payload_path = self.work_dir / f"{materialization.fingerprint}.moveit-scene.json"
|
|
66
107
|
temporary = payload_path.with_suffix(payload_path.suffix + ".tmp")
|
|
67
108
|
temporary.write_text(
|
|
68
109
|
json.dumps(
|
|
69
|
-
|
|
110
|
+
payload,
|
|
70
111
|
sort_keys=True,
|
|
71
112
|
separators=(",", ":"),
|
|
72
113
|
allow_nan=False,
|
|
@@ -93,8 +134,73 @@ class MoveItSceneBridge:
|
|
|
93
134
|
raise SimulationPlatformError("moveit_scene_probe_output_invalid") from exc
|
|
94
135
|
if not isinstance(output, dict):
|
|
95
136
|
raise SimulationPlatformError("moveit_scene_probe_output_invalid")
|
|
137
|
+
return output, result.ok
|
|
138
|
+
|
|
139
|
+
def apply_and_verify(
|
|
140
|
+
self,
|
|
141
|
+
materialization: CanonicalTwinMaterialization,
|
|
142
|
+
*,
|
|
143
|
+
frame_alignment: FrameAlignmentReceipt | None = None,
|
|
144
|
+
) -> MoveItSceneReceipt:
|
|
145
|
+
self.work_dir.mkdir(parents=True, exist_ok=True)
|
|
146
|
+
equivalent_frames = _equivalent_frames_from_receipt(
|
|
147
|
+
materialization.planning_frame,
|
|
148
|
+
frame_alignment,
|
|
149
|
+
)
|
|
150
|
+
output, command_ok = self._run_probe(
|
|
151
|
+
materialization=materialization,
|
|
152
|
+
equivalent_frames=equivalent_frames,
|
|
153
|
+
)
|
|
96
154
|
code = str(output.get("code") or "moveit_scene_probe_failed")
|
|
97
|
-
|
|
155
|
+
|
|
156
|
+
# MoveIt serializes world collision objects in its own planning/root frame.
|
|
157
|
+
# If that label differs from the canonical Twin frame, do not trust it by
|
|
158
|
+
# convention. Prove the observed frame is identity-equivalent via TF, then
|
|
159
|
+
# repeat the read-back with that exact frame admitted for canonical hashing.
|
|
160
|
+
if (
|
|
161
|
+
frame_alignment is None
|
|
162
|
+
and not equivalent_frames
|
|
163
|
+
and not bool(output.get("success"))
|
|
164
|
+
and code.startswith("scene_planning_frame_mismatch:")
|
|
165
|
+
):
|
|
166
|
+
observed_frames = tuple(
|
|
167
|
+
sorted(
|
|
168
|
+
{
|
|
169
|
+
str(value).strip()
|
|
170
|
+
for value in output.get("observed_planning_frames") or ()
|
|
171
|
+
if str(value).strip()
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
)
|
|
175
|
+
if len(observed_frames) != 1:
|
|
176
|
+
raise SimulationPlatformError(
|
|
177
|
+
"moveit_scene_observed_frame_ambiguous"
|
|
178
|
+
)
|
|
179
|
+
observed_frame = observed_frames[0]
|
|
180
|
+
receipt = FrameAlignmentVerifier(self.runner).verify_identity(
|
|
181
|
+
parent_frame=observed_frame,
|
|
182
|
+
child_frame=materialization.planning_frame,
|
|
183
|
+
)
|
|
184
|
+
equivalent_frames = _equivalent_frames_from_receipt(
|
|
185
|
+
materialization.planning_frame,
|
|
186
|
+
receipt,
|
|
187
|
+
)
|
|
188
|
+
output, command_ok = self._run_probe(
|
|
189
|
+
materialization=materialization,
|
|
190
|
+
equivalent_frames=equivalent_frames,
|
|
191
|
+
)
|
|
192
|
+
code = str(output.get("code") or "moveit_scene_probe_failed")
|
|
193
|
+
|
|
194
|
+
verified = bool(output.get("success")) and command_ok
|
|
195
|
+
observed_frames = tuple(
|
|
196
|
+
sorted(
|
|
197
|
+
{
|
|
198
|
+
str(value).strip()
|
|
199
|
+
for value in output.get("observed_planning_frames") or ()
|
|
200
|
+
if str(value).strip()
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
)
|
|
98
204
|
receipt = MoveItSceneReceipt(
|
|
99
205
|
verified=verified,
|
|
100
206
|
code=code,
|
|
@@ -113,6 +219,8 @@ class MoveItSceneBridge:
|
|
|
113
219
|
if output.get("observed_object_count") is not None
|
|
114
220
|
else None
|
|
115
221
|
),
|
|
222
|
+
observed_planning_frames=observed_frames,
|
|
223
|
+
equivalent_planning_frames=equivalent_frames,
|
|
116
224
|
)
|
|
117
225
|
if not receipt.verified:
|
|
118
226
|
raise SimulationPlatformError(f"moveit_scene_verification_failed:{receipt.code}")
|
|
@@ -35,6 +35,71 @@ def _canonical_scene(planning_frame: str, objects: list[dict[str, Any]]) -> dict
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
def _verify_observed_scene(
|
|
39
|
+
*,
|
|
40
|
+
planning_frame: str,
|
|
41
|
+
expected_hash: str,
|
|
42
|
+
expected_objects: list[dict[str, Any]],
|
|
43
|
+
observed_objects: list[dict[str, Any]],
|
|
44
|
+
equivalent_planning_frames: tuple[str, ...] = (),
|
|
45
|
+
) -> dict[str, Any]:
|
|
46
|
+
"""Verify read-back without confusing an identity-equivalent frame label for drift.
|
|
47
|
+
|
|
48
|
+
``equivalent_planning_frames`` is not discovered here. It must be supplied by the
|
|
49
|
+
caller from an independently verified identity transform receipt. Geometry is
|
|
50
|
+
always canonicalized back to ``planning_frame`` before hashing.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
planning_frame = planning_frame.strip()
|
|
54
|
+
if not planning_frame:
|
|
55
|
+
raise ValueError("scene_planning_frame_required")
|
|
56
|
+
equivalent = tuple(value.strip() for value in equivalent_planning_frames)
|
|
57
|
+
if any(not value for value in equivalent):
|
|
58
|
+
raise ValueError("scene_equivalent_planning_frame_invalid")
|
|
59
|
+
accepted_frames = {planning_frame, *equivalent}
|
|
60
|
+
expected_ids = {str(item["id"]) for item in expected_objects}
|
|
61
|
+
relevant = [item for item in observed_objects if str(item["id"]) in expected_ids]
|
|
62
|
+
observed_frames = sorted({str(item.get("frame_id") or "").strip() for item in relevant})
|
|
63
|
+
|
|
64
|
+
for item in relevant:
|
|
65
|
+
frame_id = str(item.get("frame_id") or "").strip()
|
|
66
|
+
if frame_id not in accepted_frames:
|
|
67
|
+
return {
|
|
68
|
+
"success": False,
|
|
69
|
+
"code": f"scene_planning_frame_mismatch:{item['id']}:{frame_id or '<empty>'}",
|
|
70
|
+
"observed_object_count": len(relevant),
|
|
71
|
+
"observed_planning_frames": observed_frames,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
canonical_objects = [
|
|
75
|
+
{
|
|
76
|
+
"id": item["id"],
|
|
77
|
+
"geometry_kind": item["geometry_kind"],
|
|
78
|
+
"dimensions_m": item["dimensions_m"],
|
|
79
|
+
"position_m": item["position_m"],
|
|
80
|
+
"quaternion_xyzw": item["quaternion_xyzw"],
|
|
81
|
+
}
|
|
82
|
+
for item in relevant
|
|
83
|
+
]
|
|
84
|
+
observed_scene = _canonical_scene(planning_frame, canonical_objects)
|
|
85
|
+
observed_hash = _hash(observed_scene)
|
|
86
|
+
observed_ids = {str(item["id"]) for item in relevant}
|
|
87
|
+
missing = sorted(expected_ids - observed_ids)
|
|
88
|
+
success = (
|
|
89
|
+
not missing
|
|
90
|
+
and len(relevant) == len(expected_objects)
|
|
91
|
+
and observed_hash == expected_hash
|
|
92
|
+
)
|
|
93
|
+
return {
|
|
94
|
+
"success": success,
|
|
95
|
+
"code": "moveit_scene_readback_verified" if success else "moveit_scene_readback_mismatch",
|
|
96
|
+
"observed_scene_hash": observed_hash,
|
|
97
|
+
"observed_object_count": len(relevant),
|
|
98
|
+
"observed_planning_frames": observed_frames,
|
|
99
|
+
"missing_object_ids": missing,
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
38
103
|
def _qmul(first, second):
|
|
39
104
|
ax, ay, az, aw = first
|
|
40
105
|
bx, by, bz, bw = second
|
|
@@ -78,6 +143,9 @@ def apply_verify(path: Path, timeout_s: float) -> dict[str, Any]:
|
|
|
78
143
|
planning_frame = str(payload["planning_frame"])
|
|
79
144
|
expected_hash = str(payload["scene_hash"])
|
|
80
145
|
expected_objects = list(payload["objects"])
|
|
146
|
+
equivalent_planning_frames = tuple(
|
|
147
|
+
str(value) for value in payload.get("equivalent_planning_frames") or ()
|
|
148
|
+
)
|
|
81
149
|
|
|
82
150
|
import rclpy
|
|
83
151
|
from geometry_msgs.msg import Pose
|
|
@@ -155,13 +223,12 @@ def apply_verify(path: Path, timeout_s: float) -> dict[str, Any]:
|
|
|
155
223
|
for collision in response.scene.world.collision_objects:
|
|
156
224
|
if collision.id not in expected_ids:
|
|
157
225
|
continue
|
|
158
|
-
if collision.
|
|
226
|
+
if len(collision.primitives) != 1 or len(collision.primitive_poses) != 1:
|
|
159
227
|
return {
|
|
160
228
|
"success": False,
|
|
161
|
-
"code": f"
|
|
229
|
+
"code": f"scene_shape_invalid:{collision.id}",
|
|
230
|
+
"observed_planning_frames": [collision.header.frame_id],
|
|
162
231
|
}
|
|
163
|
-
if len(collision.primitives) != 1 or len(collision.primitive_poses) != 1:
|
|
164
|
-
return {"success": False, "code": f"scene_shape_invalid:{collision.id}"}
|
|
165
232
|
primitive = collision.primitives[0]
|
|
166
233
|
primitive_pose = collision.primitive_poses[0]
|
|
167
234
|
position, quaternion = _combine_pose(collision.pose, primitive_pose)
|
|
@@ -175,26 +242,29 @@ def apply_verify(path: Path, timeout_s: float) -> dict[str, Any]:
|
|
|
175
242
|
primitive.dimensions[SolidPrimitive.CYLINDER_HEIGHT],
|
|
176
243
|
]
|
|
177
244
|
else:
|
|
178
|
-
return {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
245
|
+
return {
|
|
246
|
+
"success": False,
|
|
247
|
+
"code": f"scene_shape_unsupported:{collision.id}",
|
|
248
|
+
"observed_planning_frames": [collision.header.frame_id],
|
|
249
|
+
}
|
|
250
|
+
observed.append(
|
|
251
|
+
{
|
|
252
|
+
"id": collision.id,
|
|
253
|
+
"frame_id": collision.header.frame_id,
|
|
254
|
+
"geometry_kind": kind,
|
|
255
|
+
"dimensions_m": dimensions,
|
|
256
|
+
"position_m": list(position),
|
|
257
|
+
"quaternion_xyzw": list(quaternion),
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
return _verify_observed_scene(
|
|
262
|
+
planning_frame=planning_frame,
|
|
263
|
+
expected_hash=expected_hash,
|
|
264
|
+
expected_objects=expected_objects,
|
|
265
|
+
observed_objects=observed,
|
|
266
|
+
equivalent_planning_frames=equivalent_planning_frames,
|
|
267
|
+
)
|
|
198
268
|
finally:
|
|
199
269
|
node.destroy_node()
|
|
200
270
|
rclpy.shutdown()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devagent-physical-engine
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.3
|
|
4
4
|
Summary: Verification-first agentic engineering, simulation, and evidence runtime for robotics and industrial automation.
|
|
5
5
|
Author: Tom Ha
|
|
6
6
|
License: All Rights Reserved
|
|
@@ -191,6 +191,10 @@ On a successful run, Gazebo / MoveIt remains open by default so the engineer can
|
|
|
191
191
|
|
|
192
192
|
v0.12.1 hardens the initial ROS joint-state snapshot by parsing `ros2 topic echo --once` output as a YAML document stream. This accepts the normal ROS 2 trailing `---` message separator instead of incorrectly classifying an otherwise valid `/joint_states` sample as `joint_state_snapshot_invalid`.
|
|
193
193
|
|
|
194
|
+
v0.12.2 additionally hardens Gazebo model-pose read-back across Harmonic CLI renderings. One shared parser now accepts both pipe-delimited and whitespace-delimited finite XYZ/RPY vectors and is used by initial world verification and dynamic workpiece pose read-back, so task simulation does not depend on a single human-readable `gz model --pose` delimiter style.
|
|
195
|
+
|
|
196
|
+
v0.12.3 hardens MoveIt PlanningScene read-back when MoveIt serializes world collision objects in its own planning/root frame. A different observed frame is never trusted by label alone: DevAgent first proves the observed frame and canonical Twin frame are identity-equivalent through TF, then re-reads the scene and canonicalizes it back to the Twin planning frame before enforcing the exact geometry hash. Non-identity frames and geometry drift remain fail-closed.
|
|
197
|
+
|
|
194
198
|
The packaged reference workcell is **not customer-site geometry**. Arbitrary plant layouts require an imported or user-declared physical Twin with trusted poses, collision geometry, tool/TCP information, and workpiece properties. DevAgent does not invent those site facts from a natural-language prompt.
|
|
195
199
|
|
|
196
200
|
The v0.12 implementation remains evidence-gated: source/CI success does not prove the ROS target campaign has passed on a particular workstation. Use the executable qualification below before treating the task-specific path as qualified on that target.
|
|
@@ -418,7 +422,7 @@ Detailed engineering documentation lives in the repository:
|
|
|
418
422
|
|
|
419
423
|
## Project status
|
|
420
424
|
|
|
421
|
-
**v0.12.
|
|
425
|
+
**v0.12.3 — Beta software / evidence-gated task-specific physical simulation.**
|
|
422
426
|
|
|
423
427
|
The software and release pipeline are production-oriented, but physical readiness is scope-specific and evidence-driven. The UR5e task-specific reference-workcell path must pass the executable v0.12 ROS/Gazebo/MoveIt campaign on the target workstation before that scope is considered simulation-qualified there. Real robot execution remains locked. Functional-safety certification and site qualification are not claimed.
|
|
424
428
|
|
|
@@ -78,6 +78,7 @@ src/devagent_physical_engine/ros2/doctor.py
|
|
|
78
78
|
src/devagent_physical_engine/ros2/fk_pose.py
|
|
79
79
|
src/devagent_physical_engine/ros2/fk_probe.py
|
|
80
80
|
src/devagent_physical_engine/ros2/frame_alignment.py
|
|
81
|
+
src/devagent_physical_engine/ros2/gazebo_cli.py
|
|
81
82
|
src/devagent_physical_engine/ros2/gazebo_pose.py
|
|
82
83
|
src/devagent_physical_engine/ros2/gazebo_world.py
|
|
83
84
|
src/devagent_physical_engine/ros2/joint_state_recorder.py
|
|
@@ -112,9 +113,11 @@ tests/test_ai_cli_v07.py
|
|
|
112
113
|
tests/test_continuous_clearance_v011.py
|
|
113
114
|
tests/test_core.py
|
|
114
115
|
tests/test_engineering_request_v07.py
|
|
116
|
+
tests/test_gazebo_cli_v0122.py
|
|
115
117
|
tests/test_interpreter_profiles_v08.py
|
|
116
118
|
tests/test_live_provider_qualification.py
|
|
117
119
|
tests/test_measured_motion_v10.py
|
|
120
|
+
tests/test_moveit_scene_v0123.py
|
|
118
121
|
tests/test_natural_language_agent_v07.py
|
|
119
122
|
tests/test_openai_strict_schema_v0113.py
|
|
120
123
|
tests/test_optimization_v05.py
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import unittest
|
|
4
|
+
|
|
5
|
+
from devagent_physical_engine.ros2.gazebo_cli import parse_gz_model_pose
|
|
6
|
+
from devagent_physical_engine.ros2.gazebo_pose import _parse_position
|
|
7
|
+
from devagent_physical_engine.ros2.gazebo_world import _parse_pose
|
|
8
|
+
from devagent_physical_engine.simulation_platform import SimulationPlatformError
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
PIPE_OUTPUT = """Requesting state for world [default]...
|
|
12
|
+
|
|
13
|
+
Model: [8]
|
|
14
|
+
|
|
15
|
+
- Name: BOX_101
|
|
16
|
+
|
|
17
|
+
- Pose [ XYZ (m) ] [ RPY (rad) ]:
|
|
18
|
+
|
|
19
|
+
[0.550000 | -0.350000 | 0.820000]
|
|
20
|
+
|
|
21
|
+
[0.000000 | 0.000000 | 1.570796]
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
HARMONIC_WHITESPACE_OUTPUT = """Requesting state for world [default]...
|
|
25
|
+
|
|
26
|
+
* Model [8]
|
|
27
|
+
* Name: BOX_101
|
|
28
|
+
* Pose [ XYZ (m) ] [ RPY (rad) ]:
|
|
29
|
+
[0.550000 -0.350000 0.820000]
|
|
30
|
+
[0.000000 -0.000000 1.570796]
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class GazeboCliPoseV0122Tests(unittest.TestCase):
|
|
35
|
+
def test_accepts_documented_pipe_delimited_pose(self):
|
|
36
|
+
position, orientation = parse_gz_model_pose(PIPE_OUTPUT)
|
|
37
|
+
self.assertEqual(position, (0.55, -0.35, 0.82))
|
|
38
|
+
self.assertEqual(orientation, (0.0, 0.0, 1.570796))
|
|
39
|
+
|
|
40
|
+
def test_accepts_harmonic_whitespace_delimited_pose(self):
|
|
41
|
+
position, orientation = parse_gz_model_pose(HARMONIC_WHITESPACE_OUTPUT)
|
|
42
|
+
self.assertEqual(position, (0.55, -0.35, 0.82))
|
|
43
|
+
self.assertEqual(orientation, (0.0, -0.0, 1.570796))
|
|
44
|
+
|
|
45
|
+
def test_world_verifier_parser_uses_harmonic_compatible_parser(self):
|
|
46
|
+
self.assertEqual(
|
|
47
|
+
_parse_pose(HARMONIC_WHITESPACE_OUTPUT),
|
|
48
|
+
((0.55, -0.35, 0.82), (0.0, -0.0, 1.570796)),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
def test_dynamic_workpiece_readback_uses_same_parser(self):
|
|
52
|
+
self.assertEqual(
|
|
53
|
+
_parse_position(HARMONIC_WHITESPACE_OUTPUT),
|
|
54
|
+
(0.55, -0.35, 0.82),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
def test_ansi_terminal_escape_does_not_break_pose(self):
|
|
58
|
+
payload = "\x1b[32m" + HARMONIC_WHITESPACE_OUTPUT + "\x1b[0m"
|
|
59
|
+
self.assertEqual(parse_gz_model_pose(payload)[0], (0.55, -0.35, 0.82))
|
|
60
|
+
|
|
61
|
+
def test_legacy_plain_six_number_pose_is_supported(self):
|
|
62
|
+
self.assertEqual(
|
|
63
|
+
parse_gz_model_pose("0.55 -0.35 0.82 0.0 0.0 1.570796\n"),
|
|
64
|
+
((0.55, -0.35, 0.82), (0.0, 0.0, 1.570796)),
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
def test_incomplete_pose_fails_closed(self):
|
|
68
|
+
with self.assertRaisesRegex(
|
|
69
|
+
SimulationPlatformError,
|
|
70
|
+
"gazebo_model_pose_output_invalid",
|
|
71
|
+
):
|
|
72
|
+
parse_gz_model_pose(
|
|
73
|
+
"- Pose [ XYZ (m) ] [ RPY (rad) ]:\n[0.55 -0.35 0.82]\n"
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
def test_non_finite_pose_fails_closed(self):
|
|
77
|
+
with self.assertRaisesRegex(
|
|
78
|
+
SimulationPlatformError,
|
|
79
|
+
"gazebo_model_pose_output_invalid",
|
|
80
|
+
):
|
|
81
|
+
parse_gz_model_pose(
|
|
82
|
+
"- Pose [ XYZ (m) ] [ RPY (rad) ]:\n"
|
|
83
|
+
"[0.55 -0.35 nan]\n[0.0 0.0 0.0]\n"
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
if __name__ == "__main__":
|
|
88
|
+
unittest.main()
|