Do a trick
duck_trickTrigger a duck trick from a set: sit, stand, ground pick, kick left/right, or forward roll.
Instructions
Trigger a trick: 'sit', 'stand', 'ground_pick' (touch beak to floor), 'kick_left'/'kick_right' (stages the ball at that foot, then kicks), or 'roulade' (forward roll — NOTE: usually ends with the duck down, since no stand-up policy ships yet; follow with duck_reset). Episodic tricks hand control back to standing automatically after a few seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| rpy_deg | Yes | Trunk orientation [roll, pitch, yaw], degrees | |
| sitting | Yes | ||
| upright | Yes | False once tilted past ~45 deg. There is no self-recovery policy: if the duck falls, use duck_reset. | |
| vel_cmd | Yes | Current sticky velocity intent [vx, vy, wz] | |
| behavior | Yes | Episodic trick currently running, else null | |
| position_m | Yes | Trunk world position [x, y, z], meters | |
| sim_time_s | Yes | Sim clock, seconds. The sim runs in real time; this snapshot is stale on arrival. | |
| ground_pick | Yes | ||
| vel_body_mps | Yes | ||
| yaw_rate_rps | Yes | Yaw rate, rad/s, counterclockwise positive | |
| active_policy | Yes | Which ONNX policy is driving: standing, walking, sit, ground_pick, kick_left/right, roulade | |
| ball_position_m | No | Ball world position [x, y, z], meters (ball scene only) | |
| trunk_height_mm | Yes | Trunk height above floor, mm (~116 standing) |