HUB
Sign inSign up
webui logo

husarion/webui

By husarion

•Updated about 17 hours ago

Mobile-first web panel for Husarion ROS 2 robots: Caddy webserver + persistence image.

Image
0

10K+

husarion/webui repository overview

⁠husarion/webui

The browser-facing half of the Husarion Cockpit: a mobile-first web panel for driving Husarion⁠ ROS 2 robots (Panther, Lynx, ROSbot, custom UGVs) over your local Wi-Fi from any phone, tablet or laptop.

Releases ship one image, husarion/webui:webserver-X.Y.Z: Caddy plus the persistence server (auth, the app, the Manage tab, the /api proxy). The older bridge-* tags you may see on the Tags tab are the legacy foxglove-bridge and ROS service proxy image, which is no longer released.

Transport note. The browser↔ROS transport is husarion/rosbridge⁠, an in-house Rust rosbridge v2 server that replaced foxglove-bridge. The webserver-X.Y.Z image from the cutover on (1.18.x+) expects husarion/rosbridge on the /ws route, so pair it with that image, not a bridge-* tag.

Multi-arch: linux/amd64 + linux/arm64.

⁠Tags

  • husarion/webui:webserver-X.Y.Z: a pinned release (recommended; production robots pin it by digest)
  • husarion/webui:webserver: tracks the most recent release

Each X.Y.Z is one snapshot validated on Husarion hardware. The Tags tab above lists every version.

⁠Quick start

services:
  webserver:
    image: husarion/webui:webserver-X.Y.Z   # pin by digest in production
    network_mode: host
    environment:
      - WEBSERVER_PORT=80
      - WEBSERVER_HTTPS_PORT=443     # HTTPS via Caddy internal CA; needed for camera audio
      - ROSBRIDGE_PORT=8866          # Caddy /ws → husarion_rosbridge
      - PERSISTENCE_PORT=9091
      - ROBOT_MODEL=lynx             # picks /app/profiles/settings-<model>.yaml
    volumes:
      - ./profiles:/app/profiles:ro                       # your robot profiles; the image ships none
      - /var/lib/husarion-webui:/var/lib/husarion-webui   # auth + working-copy YAML
      - /run/husarion-agent:/run/husarion-agent:ro        # if husarion-agent is on the host
    restart: unless-stopped

  # Browser↔ROS transport; replaced the legacy husarion/webui:bridge-* (foxglove) image.
  husarion-rosbridge:
    image: husarion/rosbridge:<version>   # pin by digest in production
    network_mode: host
    ipc: host
    env_file:
      - /home/husarion/config/common/.env
    environment:
      - ROSBRIDGE_BIND=127.0.0.1:8866          # loopback: 0.0.0.0 would bypass Caddy's auth on the LAN
      - ROSBRIDGE_HEALTH_BIND=127.0.0.1:8869   # /healthz /readyz /metrics
    restart: unless-stopped

Open http://<robot-ip> on a phone on the same LAN and sign in with the robot's password (default husarion for dev). For camera microphone audio, open the HTTPS URL (https://<robot-ip>) and accept the self-signed certificate warning once; Caddy's internal CA mints the certificate on demand. Browsers allow AudioWorklet only in secure contexts. Everything else works on either origin.

⁠What you get

  • One-handed (floating joystick) and two-handed (landscape) drive modes
  • An E-Stop card that is always visible (tap to engage or release)
  • A camera tile with a format picker and an audio listen-in toggle, plus an optional IMU-driven artificial-horizon overlay
  • A Manage tab backed by husarion-agent⁠, where you edit the ROS env (namespace, domain ID, RMW), the DDS profile and other manifest-defined fields without SSHing into the robot
  • A per-robot profile (ROBOT_MODEL=panther|lynx|rosbot-xl|…) that sets topic and service paths, gear ceilings, kinematics and gamepad bindings
  • PWA install (Add to Home Screen)
  • Optional physical-gamepad support (USB or Bluetooth, F710 in X-mode by default)

⁠Configuration

ServiceVarDefaultNotes
webserverWEBSERVER_PORT80Caddy HTTP listen port
webserverWEBSERVER_HTTPS_PORT443Caddy HTTPS listen port (internal CA, the origin camera audio needs)
webserverROSBRIDGE_PORT8866husarion_rosbridge port (Caddy /ws target)
webserverPERSISTENCE_PORT9091persistence-server port (proxied)
webserverROBOT_MODELunsetPicks /app/profiles/settings-<model>.yaml, which you mount. Unset, the entrypoint reads SETTINGS_YAML or /app/settings.yaml (the image ships neither).
webserverHUSARION_AGENT_SOCKET/run/husarion-agent/agent.sockPath to the agent's Unix socket inside the container
webserverHUSARION_AGENT_MANAGE_TTL_SEC300Step-up cookie TTL for /api/agent/*
husarion_rosbridgeROSBRIDGE_BIND / ROSBRIDGE_HEALTH_BINDset to 127.0.0.1:8866 / 127.0.0.1:8869WebSocket bind + health side-server (/healthz / /readyz / /metrics); keep them on loopback

Per-robot defaults (gears, gamepad bindings, topic overrides, camera config) live in the profiles/settings-<model>.yaml your deployment mounts. Customers adjust them in the app's Settings flow, and the persistence server writes the result to a working-copy YAML in /var/lib/husarion-webui/.

⁠About

Built and maintained by Husarion⁠: robotics research and commercial UGV platforms.

Production robots get the Cockpit from their robot OS image, which pins this image by digest. The public release index at https://github.com/husarion/husarion-cockpit-releases⁠ carries the husarion-agent binaries.

License: proprietary. © Husarion S.A., all rights reserved.

Tag summary

Content type

Image

Digest

sha256:77043ef85…

Size

42.8 MB

Last updated

about 17 hours ago

docker pull husarion/webui:webserver