Skip to content

One controller app for every small robot - #5

Draft
agus-darmawan wants to merge 9 commits into
mainfrom
feat/one-controller
Draft

agus-darmawan wants to merge 9 commits into
mainfrom
feat/one-controller

Conversation

@agus-darmawan

@agus-darmawan agus-darmawan commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

One app for the small robots and their handhelds, instead of one app per robot (X30Controller's Skydroid and touch sticks merged in).

  • Handheld found by itself from Android's model: Skydroid G12 (its RC SDK), Retroid Pocket (gamepad), any phone (touch sticks, a Bluetooth pad, or the keyboard). A tap on the start screen badge overrides it.
  • Robots: Genisom L1W EDU, Unitree Go2 EDU, DEEP Robotics Lite3 and Lynx S10, each a card with its picture and its own built-in address (editable per robot in the admin settings). One shared token, optionally built in with --dart-define=TELEOP_TOKEN=....
  • Lidar map: coloured by height or distance, afterglow of the last scans, range rings, view cone, point count and rate; drawn from reused flat buffers per colour.
  • Faster: sticks sent the moment they move (≤ 25 ms) and a stop at once, 33 Hz stick reading, lidar decoded straight from int16, bigger UDP buffer, quicker WebRTC answer and retry, 12 fps JPEG fallback.
  • Dummy robot (tool/dummy_robot) to try everything without a robot; test/dummy_live_test.dart drives the app against it. macOS target added.
  • CI and releases fetch Skydroid's SDK so the APK reads the G12's sticks. Version 3.0.0.

Tested: flutter analyze, flutter test, the live test against the dummy, and the release APK on a Retroid Pocket 4.

🤖 Generated with Claude Code

agus-darmawan and others added 9 commits December 2, 2026 20:47
The sticks of a Skydroid handheld through its RC SDK (fetched by tool/skydroid_sdk.sh, not in
the repository), a gamepad, or touch sticks on any phone: the first step to one app for every
small robot and handheld.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Controllers: phone (touch sticks, a pad or the keyboard), Retroid Pocket (gamepad) and Skydroid
G12 (its SDK). Robots: Genisom L1W EDU, Unitree Go2 EDU, Deep Robotics Lite3 and Lynk S10, each
with a default address (changed per robot in the admin settings) and one shared token, also
buildable in with --dart-define=TELEOP_TOKEN. Lidar colour and afterglow settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each card shows its robot (a picture from assets/images/robots, else a drawn quadruped), whether
it answers at its address, its battery and who drives it; one tap connects. Discovery probes
every robot's address, and a robot on the LAN naming its model lights up that card. Version 3.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Lidar points coloured by height or distance (or plain), sized with the zoom; the last scans
  fade out behind the newest, each drawn where the robot stood. Transformed into reused flat
  buffers and drawn per colour: no garbage per scan.
- Range rings and a view cone around the robot, its point count and scan rate in the corner;
  heading up shows more of the way ahead.
- The sticks go out at once when they move (at most every 25 ms, 33 Hz reading) and a stop at
  once, instead of waiting for the next 50 ms tick.
- Lidar decoded straight from its int16s, a bigger UDP receive buffer (also on macOS), WebRTC
  answers sooner and retries sooner, the JPEG fallback at 12 fps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…phone

From Android's manufacturer and model and the handheld Skydroid's SDK recognizes. The start
screen shows what it found; a tap there or the settings pick another by hand, or Auto again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Robotics

Product pictures from the manufacturers (Lite3 and Lynx S10 from deeprobotics.cn, Go2 from
unitree.com, the GENISOM L1-W render), background removed. The S10 is DEEP Robotics' Lynx S10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tool/dummy_robot speaks the teleop protocol v1: a hall with pillars, shelves and crates seen by
a 5-layer lidar and a camera, REMOTE driving, route recording, AUTO patrols with stop points,
inspection, people, battery and the trip meter. It answers discovery as the model it plays
(--robot lite3|l1w|go2|s10), so that card lights up. test/dummy_live_test.dart drives the app
against it. The macOS target probes 127.0.0.1 and drives with the keyboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1 2 3 speed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant