Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
310 lines (296 loc) · 18.9 KB
/
Copy pathindex.html
File metadata and controls
310 lines (296 loc) · 18.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RIFT — Real-time Intelligent Fleet Technology</title>
<meta name="description" content="RIFT is the fleet hub of the DREAM Robotics ecosystem: a robot registry, mDNS discovery and dashboard, in Python and re-implemented in Go, Rust, F#, Julia, C++, Unity and Android.">
<meta name="color-scheme" content="dark">
<meta property="og:title" content="RIFT — Real-time Intelligent Fleet Technology">
<meta property="og:description" content="The fleet command-and-control hub of the DREAM Robotics ecosystem.">
<meta property="og:type" content="website">
<meta property="og:image" content="images/rift_avatar.jpg">
<link rel="icon" href="site/favicon.ico" sizes="any">
<link rel="apple-touch-icon" href="site/apple-touch-icon.png">
<link rel="stylesheet" href="site/style.css">
<script src="site/site.js" defer></script>
<script src="site/memgraph.js" defer></script>
</head>
<body>
<nav aria-label="Primary">
<div class="wrap">
<a class="brand" href="#top">RIFT</a>
<ul>
<li><a href="#overview">Overview</a></li>
<li><a href="#fleet">Fleet</a></li>
<li><a href="#talk">Talk</a></li>
<li><a href="#hubs">Hubs</a></li>
<li><a href="#run">Run</a></li>
<li><a href="#near">Nearby</a></li>
<li><a href="#screens">Screens</a></li>
<li><a href="https://github.com/CursedPrograms/RIFT">GitHub</a></li>
</ul>
</div>
</nav>
<header class="hero" id="top">
<canvas id="memgraph" data-src="site/memories.json" aria-hidden="true"></canvas>
<div class="wrap">
<div class="eyebrow">A DREAM Robotics System</div>
<h1>RIFT</h1>
<p class="tagline">Real-time Intelligent Fleet Technology</p>
<p class="lede">The command-and-control backbone of the DREAM robotics fleet. One hub registers every robot, finds its peers over mDNS and serves a live dashboard, so WHIP, NORA, KIDA and the rest can be watched and driven from one place.</p>
<div class="cta">
<a class="btn primary" href="https://github.com/CursedPrograms/RIFT">View on GitHub</a>
<a class="btn" href="#run">Run a hub</a>
<a class="btn" href="https://ko-fi.com/cursedentertainment">Support on Ko-fi</a>
</div>
<div class="tags" aria-label="Technologies">
<span class="tag">Python</span>
<span class="tag">C++</span>
<span class="tag">C#</span>
<span class="tag">Kotlin</span>
<span class="tag">F#</span>
<span class="tag">Go</span>
<span class="tag">Rust</span>
<span class="tag">Julia</span>
<span class="tag">MIT License</span>
</div>
<figure class="avatar">
<img src="images/rift_avatar.jpg" alt="RIFT's avatar: a human representation of the robot" width="768" height="768">
<figcaption>RIFT · avatar</figcaption>
</figure>
</div>
</header>
<main>
<section id="overview">
<div class="wrap">
<h2>Overview</h2>
<h3 class="title">One hub for the whole fleet</h3>
<div class="grid cols-3">
<div class="card">
<span class="k">Sky</span>
<h4>ARIA, the drone</h4>
<p>She joins the fleet’s network, shows up with an Open button to her page on :5014, and takes part in conversations. RIFT can ask her, and nothing here can fly her.</p>
</div>
<div class="card">
<span class="k">Monitor</span>
<h4>Fleet dashboard</h4>
<p>Real-time monitoring and control of every robot from a single interface.</p>
</div>
<div class="card">
<span class="k">Bridge</span>
<h4>Protocol bridging</h4>
<p>Translates commands between PC, Android and the robots' microcontrollers.</p>
</div>
<div class="card">
<span class="k">Discover</span>
<h4>Autoconnect</h4>
<p>mDNS publishing and browsing (<code>_rift._tcp</code>), so hubs, robots and DREAM find each other.</p>
</div>
<div class="card">
<span class="k">Stream</span>
<h4>Telemetry</h4>
<p>Live data from the fleet's IMU and ultrasonic sensors.</p>
</div>
<div class="card">
<span class="k">Network</span>
<h4>NORA as the hub</h4>
<p>Robots and controllers join <a href="https://github.com/CursedPrograms/NORA-Robot-v00">NORA</a>'s access point; RIFT keeps her fleet-authority heartbeat going.</p>
</div>
<div class="card">
<span class="k">Any language</span>
<h4>Eight implementations</h4>
<p>Python, Go, Rust, F#, Julia, C++, Unity and Android hubs all speak the same protocol.</p>
</div>
</div>
</div>
</section>
<section id="fleet">
<div class="wrap">
<h2>Fleet</h2>
<h3 class="title">Who lives where</h3>
<p class="muted">Every member of the ecosystem has its own port:</p>
<div class="table-wrap">
<table>
<thead><tr><th>Member</th><th>Port</th><th>What it is</th></tr></thead>
<tbody>
<tr><td>RIFT</td><td class="mono">5000</td><td>This fleet hub</td></tr>
<tr><td>DREAM</td><td class="mono">5001</td><td>The AI companion: her own site, DREAM on your phone</td></tr>
<tr><td>DREAM</td><td class="mono">5009</td><td>DREAM’s dashboard and API (HTTPS)</td></tr>
<tr><td>NORA</td><td class="mono">5002</td><td>ESP32 mecanum robot and WiFi hub</td></tr>
<tr><td>KIDA-00</td><td class="mono">5003</td><td>Raspberry Pi 3 tank</td></tr>
<tr><td>KIDA-01</td><td class="mono">5004</td><td>Raspberry Pi 5 + Hailo tank</td></tr>
<tr><td>WHIP</td><td class="mono">5005</td><td>18-DOF hexapod</td></tr>
<tr><td>MILA</td><td class="mono">5010</td><td>ESP8266 mini tank</td></tr>
<tr><td>ARM</td><td class="mono">5011</td><td>Robot arm</td></tr>
</tbody>
</table>
</div>
</div>
</section>
<section id="talk">
<div class="wrap">
<h2>Talk</h2>
<h3 class="title">The robots chat, and RIFT keeps the diary</h3>
<p class="muted">Every 25–60 s RIFT picks two robots that can talk and has the first say a phrase and the second answer. Every phrase is a <strong>Brainfuck</strong> program that prints its words — hello is <code>++++++++[>+++++++++++++<-]>.+.</code> → <code>hi</code> — and a robot says it by beeping the program on its buzzer, one tone per symbol, in its own voice. <a href="https://cursedprograms.github.io/RIFT/">RIFT</a> runs the conversations and asks each robot to speak with <code>GET /chirp?u=<0-13></code> (phrases 0–6, replies 7–13).</p>
<div class="grid cols-3">
<div class="card">
<h4>Phrasebook</h4>
<p><code>Fleet/brainfuck_talk.py</code> builds the shortest program it can for each phrase and reply, checks them with an interpreter, and writes the same <code>talk_bf.h</code> into every robot’s sketch.</p>
</div>
<div class="card">
<h4>Personalities</h4>
<p>Each robot has its own chattiness and favourite phrases, and a mood that drifts with the time of day and how its chats go.</p>
</div>
<div class="card">
<h4>Mission log</h4>
<p>A diary in mission days: who came online or went quiet, who said what to whom, whose mood changed. Robots can add entries with <code>POST /mission</code>.</p>
</div>
</div>
<div class="grid cols-3">
<div class="card">
<h4>Hello first, goodbye last</h4>
<p>Each pair has a visit: hello first, “how are you” soon after, nothing repeated, goodbye only after a few exchanges — then ten minutes’ rest.</p>
</div>
<div class="card">
<h4>Startup sounds</h4>
<p>KIDA00, KIDA01 and NORA play a sound when they start, so nobody talks to them until they’ve been online 12 s.</p>
</div>
<div class="card">
<h4>Busy is busy</h4>
<p>A robot that answers with 409 — TINA while she’s working — is noted as busy and left alone for a minute, instead of “no answer”.</p>
</div>
</div>
<h3 class="sub">Music together</h3>
<p class="muted">RIFT conducts: <code>POST /music {"action": "play", "track": 100}</code> and every player starts the same song at the same moment. RIFT sets the start 4 s ahead on its own clock; each player sets its clock by RIFT’s (<code>GET /clock</code>), loads the song and starts exactly then, so a slow network doesn’t put them out of step. TINA plays along now; KIDA00, KIDA01 and NORA are next. Tracks are numbered as on NORA’s SD card.</p>
<p class="muted">With another robot that has a mind (DREAM, KIDA-01, TINA), RIFT holds a <strong>real conversation</strong> when nobody is using them: rock paper scissors, then the winner picks words or Brainfuck (<code>peer_talk.py</code>). In Brainfuck the chat opens with hello and only says goodbye at the end.</p>
<p class="muted spaced"><code>GET /talk</code> returns the conversation log and moods, <code>POST /talk</code> starts one now, <code>GET /mission</code> returns the diary. The dashboard shows both, and every robot in its Fleet list has an <strong>Open</strong> button for its own web page.</p>
</div>
</section>
<section id="hubs">
<div class="wrap">
<h2>Hubs</h2>
<h3 class="title">The same hub, your language</h3>
<p class="muted"><code>PC App/Go</code>, <code>Rust</code>, <code>FSharp</code> (.NET 8) and <code>Julia</code> are complete, cross-platform re-implementations of <code>app.py</code>. Each has the registry (<code>/register</code>, <code>/robots</code>, <code>/ping</code>), <code>/peers</code> with mDNS, the WiFi/Bluetooth <code>/mode</code> and NORA heartbeat, the same dashboard, and a <code>--scan</code> subnet scanner.</p>
<div class="table-wrap">
<table>
<thead><tr><th>Language</th><th>Launch</th><th>Needs</th></tr></thead>
<tbody>
<tr><td>Go</td><td><code>run_server_go.bat</code> / <code>./run_server_go.sh</code></td><td><a href="https://go.dev/dl/">Go</a></td></tr>
<tr><td>Rust</td><td><code>run_server_rust.bat</code> / <code>./run_server_rust.sh</code></td><td><a href="https://rustup.rs/">Rust</a></td></tr>
<tr><td>F#</td><td><code>run_server_fsharp.bat</code> / <code>./run_server_fsharp.sh</code></td><td><a href="https://dotnet.microsoft.com/download">.NET 8 SDK</a></td></tr>
<tr><td>Julia</td><td><code>run_server_julia.bat</code> / <code>./run_server_julia.sh</code></td><td><a href="https://julialang.org/downloads/">Julia</a></td></tr>
</tbody>
</table>
</div>
<pre><span class="p">$</span> ./run_server_go.sh <span class="c"># start the hub on :5000</span>
<span class="p">$</span> ./run_server_rust.sh --scan <span class="c"># scan this subnet for hubs and robots</span>
<span class="p">$</span> ./run_server_fsharp.sh --name RIFT2 --port 5010 --no-internet-share</pre>
<p class="muted">Options (all four): <code>--name</code>, <code>--port</code>, <code>--nora-host</code>, <code>--nora-port</code>, <code>--heartbeat-secs</code>, <code>--ttl-secs</code>, <code>--no-heartbeat</code>, <code>--no-mdns</code>, <code>--no-internet-share</code>, <code>--root</code>, <code>--scan</code>.</p>
<h3 class="sub">C++, Unity and Android</h3>
<div class="grid cols-3">
<div class="card">
<span class="k">Desktop</span>
<h4>C++</h4>
<p><code>PC App/App</code>: Windows and Linux, no Avahi, curl or nlohmann needed. Windows links statically, so the exe runs from any shell.</p>
</div>
<div class="card">
<span class="k">Engine</span>
<h4>Unity</h4>
<p><code>Unity App/RIFT/Assets/Rift</code>: a hub that starts on scene load, with an on-screen panel for name, port and NORA settings.</p>
</div>
<div class="card">
<span class="k">Mobile</span>
<h4>Android</h4>
<p><code>Android App/</code>: Kotlin on NanoHTTPD, with a foreground service, activity and Bluetooth link to NORA.</p>
<p><a class="btn primary" href="https://github.com/CursedPrograms/RIFT/raw/main/Android%20App/apk/RIFT-debug-2026-10-30.apk">Download the APK</a></p>
</div>
</div>
<p class="note"><strong>Verified:</strong> every hub passes the same 32-check protocol suite and interoperates with the others over mDNS and heartbeats. Not yet run on real hardware: Linux-only paths, Bluetooth, internet sharing and the Android service.</p>
</div>
</section>
<section id="run">
<div class="wrap">
<h2>Run</h2>
<h3 class="title">Start the reference hub</h3>
<p class="muted"><code>app.py</code> runs the fleet registry, mDNS discovery (including browsing for DREAM), the NORA integration threads, the conversations and the mission log in one Python process, with no compiling. On Windows <code>run.bat</code> does it all: it sets up <code>venv</code> and installs the requirements the first time, then starts <code>app.py</code>.</p>
<pre><span class="p">></span> run.bat</pre>
<p class="muted">Or by hand (Linux / macOS):</p>
<pre><span class="p">$</span> python3 -m venv venv
<span class="p">$</span> source venv/bin/activate
<span class="p">$</span> pip install --upgrade pip
<span class="p">$</span> pip install -r requirements.txt
<span class="p">$</span> python app.py</pre>
<p class="note"><strong>One hub per machine.</strong> Every hub speaks the same <code>/robots</code> + <code>/register</code> protocol on port 5000, so run one or another, not several at once.</p>
<h3 class="sub">Native C++ hub</h3>
<p class="muted"><code>PC App/App</code> is the native fleet-registry server for Windows and Linux. <code>build.sh</code> installs the dev packages it needs (asking for sudo), then builds into <code>PC App/App/bin/</code>.</p>
<pre><span class="p">$</span> ./build.sh
<span class="p">$</span> ./run_server.sh</pre>
</div>
</section>
<section id="near">
<div class="wrap">
<h2>Who's nearby</h2>
<h3 class="title">ESP-NOW + Bluetooth LE: the robots sense each other</h3>
<p class="muted">Every robot sends a small "I'm here" beacon twice a second. The signal strength says roughly how close each one is, and how it changes says whether it's <b>coming closer</b>, <b>steady</b> or <b>leaving</b>. Coarse, for "who's around": the ultrasonic and ToF sensors still do the precise avoiding.</p>
<div class="grid cols-3">
<div class="card"><span class="k">Zones</span><h4>Very close to far</h4><p>Above −45 dBm very close, −60 near, −75 medium, below that far.</p></div>
<div class="card"><span class="k">Talk</span><h4>In Brainfuck</h4><p>Over ESP-NOW each beacon carries a program that prints <code>park</code>, <code>go</code>, <code>wait</code> or <code>hand</code>; the receiver runs it. RIFT decodes them too.</p></div>
<div class="card"><span class="k">Manners</span><h4>Who makes way</h4><p>A parked robot isn't the one moving; a yielding one is making way; a human-driven one gets space; otherwise the alphabet decides, and everyone makes way for MILA.</p></div>
</div>
<p class="muted spaced">RIFT gathers every robot's <code>/near</code> into one picture (<code>GET /near</code>, the dashboard's <b>Who's near whom</b>) and <b>decodes the Brainfuck</b> each robot heard. On a Pi it also beacons over Bluetooth LE as <code>RIFT</code> and hears the robots itself.</p>
</div>
</section>
<section id="screens">
<div class="wrap">
<h2>Screens</h2>
<h3 class="title">The controllers</h3>
<p class="muted">Captured without a robot connected, so live values show their offline state.</p>
<div class="screens">
<figure class="shot">
<img src="images/screenshots/fleet-dashboard.png" alt="RIFT's fleet dashboard with connection mode, fleet and peers" width="1000" height="640" loading="lazy">
<figcaption>Fleet dashboard (served by every hub)</figcaption>
</figure>
</div>
</div>
</section>
<section id="windows">
<div class="wrap">
<h2>Windows app</h2>
<h3 class="title">A native window on RIFT's page</h3>
<p>It opens RIFT's own page in a window, so it always looks the same as the page. Keep it in RIFT's <code>builds</code> folder: if RIFT isn't running, it starts <code>run.bat</code> beside it.</p>
<p><a class="btn primary" href="https://github.com/CursedPrograms/RIFT/raw/main/builds/RIFT-Controller.exe">Download RIFT-Controller.exe</a></p>
</div>
</section>
<section id="related">
<div class="wrap">
<h2>DREAM Robotics</h2>
<h3 class="title">The rest of the family</h3>
<div class="related">
<a href="https://github.com/CursedPrograms/MILA-Robot-v00">MILA-Robot-v00</a>
<a href="https://github.com/CursedPrograms/IDA-Robot-v00">IDA-Robot-v00</a>
<a href="https://github.com/CursedPrograms/KIDA-Robot-v00">KIDA-Robot-v00</a>
<a href="https://github.com/CursedPrograms/KIDA-Robot-v01">KIDA-Robot-v01</a>
<a href="https://github.com/CursedPrograms/NORA-Robot-v00">NORA-Robot-v00</a>
<a href="https://github.com/CursedPrograms/WHIP-Robot-v00">WHIP-Robot-v00</a>
<a href="https://github.com/CursedPrograms/ARM-Robot-v01">ARM-Robot-v01</a>
<a href="https://github.com/CursedPrograms/DREAM">DREAM</a>
<a href="https://github.com/CursedPrograms/RITA">RITA</a>
<a href="https://github.com/CursedPrograms/AURA">AURA</a>
<a href="https://github.com/CursedPrograms/FLORA-Robot-v00">FLORA-Robot-v00</a>
</div>
</div>
</section>
</main>
<footer id="site-footer">© Cursed Entertainment 2026</footer>
<script src="https://cursedprograms.github.io/RIFT/site/footer.js"></script>
<!-- DREAM-ECOSYSTEM:START -->
<section class="eco">
<div class="eco-title">The DREAM Robotics ecosystem</div>
<div><strong>Minds</strong> — <a href="https://cursedprograms.github.io/DREAM/">DREAM</a> companion · <a href="https://cursedprograms.github.io/TINA/">TINA</a> engineer · <a href="https://cursedprograms.github.io/NINA/">NINA</a> caretaker · <a href="https://cursedprograms.github.io/RIFT/">RIFT</a> fleet hub · <a href="https://github.com/CursedPrograms/LYCEA">LYCEA</a> training school</div>
<div><strong>Robots</strong> — <a href="https://cursedprograms.github.io/NORA-Robot-v00/">NORA</a> · <a href="https://cursedprograms.github.io/MILA-Robot-v00/">MILA</a> · <a href="https://cursedprograms.github.io/WHIP-Robot-v00/">WHIP</a> · <a href="https://cursedprograms.github.io/KIDA-Robot-v00/">KIDA-00</a> · <a href="https://cursedprograms.github.io/KIDA-Robot-v01/">KIDA-01</a> · <a href="https://cursedprograms.github.io/IDA-Robot-v00/">IDA</a> · <a href="https://cursedprograms.github.io/ARM-Robot-v01/">ARM</a> · <a href="https://cursedprograms.github.io/NIKA-Robot-v00/">NIKA</a> · <a href="https://cursedprograms.github.io/ARIA-Robot-v00/">ARIA</a> · <a href="https://cursedprograms.github.io/AURA/">AURA</a> weather · <a href="https://cursedprograms.github.io/FLORA-Robot-v00/">FLORA</a> gardener</div>
<div><strong>Remotes</strong> — <a href="https://cursedprograms.github.io/RITA/">RITA</a> handheld remote</div>
</section>
<!-- DREAM-ECOSYSTEM:END -->
</body>
</html>