embodiment_measure_bodies
Read tilt, height, contacts, and spring forces for named MuJoCo bodies to inspect body state and contact outcomes during simulation.
Instructions
Read tilt, height and contacts of named bodies from the MuJoCo controller (read-only).
Runs the controller's physics measure primitive. bodies are body names from
the loaded model; each returns tilt_rad, tilt_vec, ang_vel, com
(com[2] is height for z-up gravity) and subtree_com. contacts is a list
of {a: [bodies] | a_except: [bodies], b: "world" | [bodies]} sets (exactly one of
a or a_except; a_except means every body except those listed, their
descendants and the world body). Each contact result has touching, points,
bodies (a-side bodies in contact) and normal_force_n (summed contact normal
force, newtons). springs reports per body-spring level, wrench_norm_force
and gravity_comp_force_n; plus sim_time_s, episode_id and terminal.
The control server is found from the introspection descriptor's control_url.
introspection_url overrides it with a loopback control-server base URL (not the
introspection port), since measure runs on the control server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bodies": "<bodies>",
"contacts": "<contacts>"
},
"name": "embodiment_measure_bodies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bodies | Yes | ||
| contacts | Yes | ||
| controller_id | No | mujoco | |
| introspection_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||