
RIFT
Real-time Intelligent Fleet Technology
A DREAM Robotics System
RIFT
Windows app: builds/RIFT-Controller.exe opens RIFT's page in a window and starts run.bat if it isn't running. Keep it in builds/. Source: scripts/web_controller.
Related Projects
Overview
Website: https://cursedprograms.github.io/RIFT/
View Overview
RIFT is the centralized command-and-control backbone of the DREAM robotics ecosystem. Built with Python and Flask, it serves as a high-speed telemetry hub that bridges the gap between various hardware platforms—like WHIP, NORA, and KIDA—and the user interface. By utilizing a unified communication protocol, RIFT allows for seamless fleet management and synchronized multi-agent operations.
Core Features
- Fleet Dashboard: Real-time monitoring and control of multiple robots from a single interface.
- Protocol Bridging: Seamlessly translates commands between PC, Android, and diverse microcontroller platforms.
- Autoconnect Hub: Logic-based routing for local and remote instances (localhost:5000 through 5006).
- Telemetry Visualization: Live data streaming from IMU (MPU6050) and Ultrasonic sensors across the fleet.
ESP32/Wi-Fi Network Communications:
This system uses NORA-Robot-v00
as a central hub, while human devices like phones and PCs act as control interfaces. DREAM can also assist with verbal communication between users and robots.
Supported Development & Runtime Environments
- Microcontrollers: ESP32, Arduino IDE
- PC & Mobile Apps: Android Studio, MinGW (Windows/Linux)
- Operating Systems: Raspberry Pi OS, Ubuntu, Windows, Android
RIFT: :5000
DREAM: :5001 (her own site - DREAM on your phone)
DREAM: :5009 (DREAM's dashboard and API, HTTPS)
NORA: :5002
KIDA-00: :5003
KIDA-01: :5004
WHIP: :5005
MILA: :5010
NIKA: :5013
ARIA: :5014 (the drone: RIFT can ask her and open her page, nothing here flies her)
ARM: :5011
Quick start
View How to Run
Environment Setup/Install Dependencies
sudo snap install android-studio --classic
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Run app.py for the Flask fleet dashboard
Runs the fleet registry, mDNS discovery (including browsing for DREAM),
and the RIFT/NORA integration threads (fleet-authority heartbeat, internet
share) all in one Python process — no compiling required.
python app.py
This is a full alternative to the native fleet server below: both speak the
same /robots + /register protocol on port 5000, so run one or the other,
not both, on a given machine.
Compile (native alternative)
🐧 Linux (PC App/App)
network-discovery.cpp is RIFT's native fleet-registry server: it publishes
itself on the LAN via mDNS/Avahi (_rift._tcp), browses for other RIFT
instances, and serves the /robots + /register endpoints that
registration.cpp, PC App/PyGame/registration.py, and Fleet/register.py
all talk to. registration.cpp is the subnet-scanning client that queries
/robots.
./build.sh
This installs the required apt dev packages (libcurl4-openssl-dev,
libavahi-client-dev, nlohmann-json3-dev, libcpp-httplib-dev) if
missing — you'll be asked for your sudo password — then builds both
binaries into PC App/App/bin/.
To start the fleet server once built:
./run_server.sh
Or build manually with the Makefile:
cd "PC App/App"
make
🪟 Windows (MinGW)
g++ registration.cpp -o registration.exe -lcurl
Starting RIFT
run.bat starts the Python hub (app.py): it sets up venv\ and installs requirements.txt the first time (again only when that file changes). That's the one with the conversations and the mission log. run_server.bat starts the native C++ hub instead (and the Go, Rust, Julia and F# hubs have their own run_server_*.bat); they share the same dashboard but only have the fleet registry, so the Conversations and Mission Log sections stay hidden there.
The fleet network: RIFT is the hub
RIFT's own WiFi network, "RIFT", is where every robot lives. A router broadcasts it, and the machine running RIFT
is its hub at 192.168.4.1: it hands out the robots' addresses, shares its internet with them if it has any, and
runs the fleet registry on port 5000. That's the address every robot already registers with, so they find RIFT
without knowing anything else. NORA used to be the hub. She's now a normal robot, and hosts her own "NORA" network
only as a fallback when RIFT isn't around.
internet (WiFi dongle, or another port) ─► hub: RIFT at 192.168.4.1:5000
│ Ethernet
▼
Mercusys MW302R, Access Point mode, WiFi "RIFT" (2.4 GHz, WPA2)
▲ ▲ ▲ ▲ ▲ ▲
NORA MILA WHIP KIDA00 KIDA01 ARM's controller
The hub can be Windows, Kubuntu or a Raspberry Pi 3 (Raspberry Pi OS Bookworm): anything with an Ethernet port.
Your home network stays as it is. The robots can reach out to the internet through the hub, but nothing on your home
network can reach the robots, except RIFT's dashboard.
Set it up
1. The router (Mercusys MW302R, official guide)
- Plug the hub's Ethernet port into the router's WAN port.
- Join the router's WiFi (the name and password on its sticker) and open http://mwlogin.net.
- Change Mode (top right) → Access Point Mode. It reboots.
- WiFi name RIFT, security WPA2-PSK (AES), password
mmvbkbak (the fleet's: it's in every robot's
secrets.h). The ESP robots can't do WPA3.
- Change the router's admin password, and turn WPS off if it's offered.
2. The hub. From the RIFT folder:
| Hub |
Command |
| Kubuntu / Raspberry Pi |
./hub/setup_hub.sh --dry-run to look, then ./hub/setup_hub.sh --service (RIFT also starts at boot) |
| Windows |
in PowerShell as Administrator: .\hub\setup_hub.ps1 -DryRun to look, then .\hub\setup_hub.ps1 |
Both scripts say what they'll change and ask first. They're safe to run again, and --undo / -Undo takes it all back.
- With internet (a WiFi dongle or another port), the hub shares it with the robots.
- Without internet, the robots still get addresses and everything in the fleet works, just offline. On Windows
with no uplink, put the router in its normal Router mode instead, with its own address handing (DHCP) on.
3. The robots join "RIFT" and register with 192.168.4.1:5000. If RIFT isn't there they use NORA's fallback
network, and they rejoin RIFT when it comes back.
- ESP robots (NORA, MILA, WHIP): their
secrets.h next to the sketch has RIFT's password (mmvbkbak),
NORA's fallback password (mmvbkbak, the same on every robot) and the robot's PIN (1234); then flash.
Without a secrets.h the sketch still builds, with secrets.example.h's placeholders that can't join RIFT.
- Pis (KIDA00, KIDA01):
sudo nmcli dev wifi connect RIFT password 'mmvbkbak' and
sudo nmcli dev wifi connect NORA password 'mmvbkbak', then sudo nmcli con modify RIFT connection.autoconnect-priority 20
and sudo nmcli con modify NORA connection.autoconnect-priority 10, so they prefer RIFT.
- PC programs (DREAM, TINA, NINA, ARM's controller): their
RiftHost setting is 127.0.0.1 on the hub
itself, 192.168.4.1 from any other machine.
Setting up the hub with Claude Code
Open Claude Code in the RIFT folder on the hub machine and paste this: