measure_balance
Measure balance outcomes from the simulator—reset count, episode length, upright fraction, tilt histogram, recoveries, and falls—so you can quantify controller stability over a sampling window.
Instructions
Balance outcome numbers from the simulator: episodes, upright time, tilt, falls.
Samples the controller's GET /v1/state at 20 Hz for up to 25 s (the MCP
transport times out near 60 s; make longer windows with repeated calls and
keep the window_id of each). A drop of the simulator clock is a scene reset;
the clock just before the drop is that episode's length. Tilt is the angle
between the trunk's up axis and world up, from the trunk free joint's
quaternion (pitch_deg and roll_deg are also sampled).
Returns numbers only: reset_count, episode_length_s (ended episodes,
mean/median/max, ongoing), upright_fraction (tilt at or below
upright_deg), a 10-degree tilt histogram, recoveries (tilt above
upright_deg then back below it within one episode), falls (crossings of
fall_deg) and fall_confirmation_latency_s (first crossing of fall_deg
to the reset). free_joint picks the trunk joint when auto-detection fails.
Check _experiment first: a stopped experiment serves one frozen frame.
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": "measure_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fall_deg | No | ||
| duration_s | No | ||
| free_joint | No | ||
| upright_deg | No | ||
| controller_id | No | mujoco | |
| introspection_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||