biped-walk — Steer a walking biped — openbash

Lucen Robotics' twelve-joint biped walked by Lucen's own walking policy in MuJoCo, live for up to a minute, steered by the velocity you send: forward, sideways and turning.

biped-walk

biped-walk is a command on the openbash shell, reachable over HTTP, SSH and MCP with one key. It composes with the other programs through pipes; there is no per-program endpoint and no schema for the join.

biped-walk start --kp_scale 1.2 --delay 1

help

biped-walk: steer Lucen Robotics' biped while its own policy walks it in MuJoCo, as JSON.

THE ROBOT AND THE POLICY
  biped_Laika is Lucen Robotics' twelve-joint biped (six motors a leg). The
  walk is Lucen's walk.onnx, trained in simulation and run on the real
  robot, with the control chain from Lucen's open SDK
  (github.com/ICE-CUBA/lucen-sdk, Apache-2.0): the policy at 50 Hz, the
  bridge's speed limit, then PD control of each motor at its own gains and
  torque limit. Nothing is retuned. The simulator is paced to the clock.

STEERING
  `start` gives a `run_id` and an `events_url`. `biped-walk command RUN_ID
  --vx 0.2 --vy 0 --wz 0.3` sets forward and sideways speed in m/s and
  turning in rad/s, up to 0.20, 0.10 and 0.30 (larger values are cut to
  these, the range the policy is used at; one left out is 0). The biped
  walks at that command until the next one. `--reset true` stands it back
  up after a fall. A command takes a second or two to show.

THE ACTUATOR
  A run uses Lucen's reference setting for its own simulator tool,
  tools/sim2sim.py (lucen-sdk README §4): the policy's output times 0.8, a
  delay of 2 control steps (40 ms) between a target and the motor acting on
  it, and up to 0.05 rad of random offset on the starting joint angles.
  `start` may change any of it, with sim2sim's names written with underscores:
    --kp_scale K --kd_scale K --tau_scale K   stiffness, damping and torque
                                              limit times the motors' own
    --power_scale K                           the policy's output times K
    --delay N [--delay_max M]                 N control steps, or each step
                                              drawn from N..M
    --jitter RAD --seed S                     the starting offset and seed
  The policy was trained on stiffness 0.8-1.2, damping 0.7-1.3 and a delay
  of 0-3 steps. Inside that range it stays up, but how closely it follows
  the command still changes: turning at stiffness 0.8 reaches about half of
  what was asked, and at 1.2 nearly all of it
  (hedwigai.com/blog/robot-actuator-sim-eval). `start` answers with the
  actuator the run uses.

YOUR OWN POLICY
  `--policy /tmp/mine.onnx` walks your policy in place of walk.onnx, under
  the same actuator. It must be stamped with Lucen's contract
  (python tools/onnx_manifest.py --stamp mine.onnx --profile PROFILE, from
  lucen-sdk), which Lucen's own check reads before the run starts; a policy
  that fails it ends the run as `failed`, with the reason, and is not
  charged. At most 8 MB.

RETURNS
  `events_url` is a Server-Sent Events stream: batches of `step` (25 a
  second: the time, every link's position and orientation, the command, the
  measured speed, the distance so far, the falls so far), `fell`, and a
  `final` with the totals. `status` gives the `state` (queued, running,
  done, stopped, failed), and once ended `seconds`, `distance_m` and
  `falls`. Also `standing`.

PRICE
  $0.01 a run that walked at least 5 seconds, stopped runs included; a run
  that fails on our side is free. A run is at most 60 seconds. An account
  that has never paid gets three runs free; after that a start is refused
  until $2 of credit is added, and the `credits` tool gives the link.

WATCH IT
  The page at hedwigai.com/try/biped-walk draws the robot from the stream
  and steers it from the keyboard.

Studies:
  start   
      a new run, queued, with its run_id, events_url and the actuator it uses
  command  <run_id>
      the speeds the policy is told from now on; a speed left out is 0
  status   <run_id>
      the run's state, and its seconds, distance and falls once it has ended
  stop     <run_id>
      the run, stopped where it is
  standing
      the balance, the free runs left and the price

JSON to stdout, so it composes: pipe to `jq` to pick a field, or `> /tmp/…` to keep it.
Run a study with no arguments — `biped-walk start` — to see what it takes.

What it answers

biped-walk start — a new run, queued, with its run_id, events_url and the actuator it uses
biped-walk command — the speeds the policy is told from now on; a speed left out is 0
biped-walk status — the run's state, and its seconds, distance and falls once it has ended
biped-walk stop — the run, stopped where it is
biped-walk standing — the balance, the free runs left and the price