Skip to content
humanoidintelligencePublic

About

[App] hiApp: An App for hi-Series Agentic Robot Software Stacks

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

hiApp: An App for hi-Series Agentic Robot Software Stacks

hiApp home page on a simulated Unitree G1: 3D model, base attitude and joint sliders, head camera

Warning

Status: early draft. The interface below may change.

Safety on real robots. A robot under software control can injure people and damage itself. Try everything in simulation first. On hardware, start read-only, then with the robot hung on a gantry at low gains, an e-stop within reach and nobody inside its reach.

Contents

Introduction

hiApp is a web app for the end users of the hi stack. Pick a robot, see its joints, base, cameras and health, move it with sliders, run its built-in skills, and stop it, all from a browser and without writing code. The first version drives a hiRobot Robot; agents (hiAgent), teleoperation and evaluation come later as modules in the same interface.

Every command goes through hiRobot's whole stack: a command lease, the safety gate, then the driver. hiApp adds no shortcut around them.

Quick start

hiApp needs hiRobot 0.0.9 or later; install it first:

pip install "hirobot[sim,assets] @ git+https://github.com/humanoidintelligence/hiRobot@v0.0.9"
git clone https://github.com/humanoidintelligence/hiApp.git && cd hiApp
pip install -e '.[camera]'
hiapp                                  # opens the robot picker in a browser
hiapp --config unitree_g1_mujoco       # connects to a MuJoCo G1 at start

In sim mode every config with a body model runs in MuJoCo (fetch the models once with hirobot assets fetch --all); a config without one runs on hiRobot's simple toy body, whose cameras show "no frames yet". On a machine without a display, set MUJOCO_GL=egl.

Install hiapp[wbc] (pip install -e '.[camera,wbc]', Python 3.10 or later) to walk whole-body-controlled robots and get the Motion page; it brings in hiWBC 0.0.4.

Using the interface

  1. Pick a robot. Without --config, the start page lists every built-in config; click one and choose Sim (safe to try anything), Real · read-only (watch, nothing moves) or Real · control. The robot name at the top left opens a menu to switch robots or disconnect.
  2. Take control. The Control switch next to the robot name takes the command lease; without it the page only watches. On a real robot it asks first.
  3. Home page.
    • The big area shows one source: the 3D model (drag to orbit, scroll to zoom) or a camera. The thumbnails at the top right are clickable: a click puts that camera or the 3D model on the big area.
    • The card on the left has the base attitude (a floating-base robot) and the joint sliders, scrolling inside the card (step 4).
    • On a robot with a whole-body controller, W/S/A/D/Q/E or the arrow pad at the bottom right walk it, with a speed slider; letting go stands it.
    • Hold keeps the current pose. Reset, in the robot menu, moves the robot back to its initial pose.
  4. Joint sliders. One group per limb (click its name to open it), one row per joint: drag a slider to set a target (the robot follows at 0.5 rad/s at most), click a row to plot that joint in the chart above; the filter box finds a joint by name. Align to current pose sets every target to the measured pose; Zero sends every joint to 0 (within its limits).
  5. Other pages (left bar): Info has the robot's facts, health and link timing; Motion (robots with motion controls) picks the whole-body controller, in simulation; Skills runs the robot's own actions (walking, gestures) with their parameters; Log lists every command the safety checks refused or that another program preempted.
  6. E-stop, at the top right, or the Space key: stops the robot at once. The page turns red and refuses every command until you click Reset.

The status bar at the bottom shows the loop rate and observation delay; click its alert count to open Info. EN / 中 and the theme button switch language and light / dark.

Access

Anyone who can open the page can move the robot, so hiApp asks for an account whenever it can be reached from another machine.

This computer

hiapp --config unitree_g1_mujoco
# hiApp: http://127.0.0.1:8600/

The default bind is 127.0.0.1:8600: only this computer can open it, and no account is needed. --port picks another port.

Local network (a phone or a laptop on the same network)

hiapp --host 0.0.0.0 --config unitree_g1_mujoco
# hiApp: http://127.0.0.1:8600/
# hiApp on the network: http://192.168.1.20:8600/   <- open this on the other device
# hiApp accounts: ~/.hiapp/users.json
# hiApp setup code: 1a2b3c4d  (no accounts yet: register the admin with this code)
  • Listening on any address other than this computer requires an account. The first account registered becomes the admin and needs the setup code printed in the terminal; later accounts wait until the admin approves them on the Users page. Accounts are kept in ~/.hiapp/users.json (--users to change it). A login lasts 30 days and survives restarts.
  • The printed network address is the interface of the default route. With several interfaces (wired, Wi-Fi, VPN) the other device may need the address of another one (ip addr).
  • If the page does not open, check that both devices are on the same subnet, that the Wi-Fi has no client isolation, and that a firewall lets the port through (sudo ufw allow 8600/tcp).
  • Plain HTTP shows passwords to anyone watching the network. Use it on a trusted network only.

Internet (through a tunnel)

A machine behind NAT is not reachable from outside. A tunnel connects out from this machine and forwards HTTPS requests to the local port, with no open port and no sudo. For example a Cloudflare quick tunnel:

# terminal 1: listen on this machine only, and require accounts (--login)
hiapp --login --config unitree_g1_mujoco --no-browser
# terminal 2: prints https://<random-name>.trycloudflare.com
cloudflared tunnel --no-autoupdate --url http://127.0.0.1:8600
  • --login is required: the tunnel reaches the server from 127.0.0.1, which on its own needs no account. The same holds for a reverse proxy (nginx, Caddy) on this machine.
  • The tunnel sends X-Forwarded-Proto: https, so the login cookie is marked Secure. A proxy must forward WebSocket upgrades for /api/stream.
  • A quick tunnel's address changes on every start and has no uptime guarantee. A fixed address needs a Cloudflare account and domain, or another tunnel (Tailscale, frp).

Contact

  • Peng Li: pengli.ds [at] gmail.com

License

Apache-2.0.

About

[App] hiApp: An App for hi-Series Agentic Robot Software Stacks

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages