embodiment_get_physics_state
Retrieve ground-truth physics state—joint positions, velocities, and free-body poses—from an embodiment controller. Auto-discovers the introspection URL, or accepts an explicit one.
Instructions
GET ground-truth physics state from an embodiment controller.
Works with any controller that exposes GET /v1/state on its
introspection server (e.g. MuJoCo, xARM when introspection is enabled).
When introspection_url is omitted, the URL is auto-discovered via the
descriptor that feagi-desktop writes at controller spawn time. Pass an
explicit URL to bypass discovery.
MuJoCo scalar hinge and slide joints are in joints (one qpos and
one qvel). Free joints, including the floating root, are in
free_joints: position_m is [x, y, z], quaternion_wxyz is
[w, x, y, z], linear_velocity_m_s and angular_velocity_rad_s
are world-frame. Ball joints are in ball_joints with
quaternion_wxyz and angular_velocity_rad_s. Units are meters and
radians, the raw MuJoCo state. embodiment_set_joint_state still
accepts only scalar joints.
_experiment says whether the Studio experiment is running. When its
state is stopped, the controller still answers with the last frame
before the stop: do not read a constant time as a frozen simulator.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "embodiment_get_physics_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | ||
| controller_id | No | mujoco | |
| introspection_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||