Skip to content

Backport joint-state query and release Sim Control Policy 1.0.0 - #12

Merged
mrgh97 merged 2 commits into
stable/1.xfrom
codex/release-forge1
Nov 18, 2026
Merged

mrgh97 merged 2 commits into
stable/1.xfrom
codex/release-forge1

Conversation

@mrgh97

@mrgh97 mrgh97 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Backport #8 and its Ruff fixes to Forge 1, keeping the Forge 1 ToolMessage transport. Keep Dora 0.4.1. Update Forge Msgs to 1.3.1 within the 1.x line so the lock can use the audited Pillow 13.0.0. Prepare stable/1.x to publish v1.0.0.

…k the pose

The endpoint only offered `get_robot_info` (static descriptor) and `reset`. A
caller that aborts a motion, or that wants to verify where the arm actually is,
had no way to read the measured joint state -- the simulator publishes
`JointState` on `mujoco/proprio_state`, but nothing in this node subscribed to
it, so failures were only diagnosable by inferring from the next motion.

* new `joint_state` dora input caches the newest `JointState` (`state.py`,
  `JointStateCache`) with its arrival timestamp;
* new `sim.control/get_joint_state` **query** operation returns `name`,
  `position`, `velocity`, `effort` and `age_ms`;
* the query fails with `NO_FRESH_ROBOT_STATE` when no sample arrived or the
  newest is older than `joint_state_timeout_ms` (new config key, default 200 ms,
  matching the 50 Hz publish rate), so a stale pose is never reported as current;
* `TOOL_CONTRACTS.md` / `README.md` document the new operation and dora port.

Tests: cache freshness (fresh, stale, empty), the query through the endpoint,
the same query through the dora binding, the `joint_state` input path, and
config parsing. 74 tests pass for the package.
@mrgh97
mrgh97 merged commit edfb4f9 into stable/1.x Nov 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant