robopark 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/bin/robopark.js +17 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# robopark
|
|
2
|
+
|
|
3
|
+
The **RoboPark fleet control CLI** — set up, watch, and drive a room full of
|
|
4
|
+
talking robots from one command. `robopark` is the operator front-end; it rides
|
|
5
|
+
the [`infinicode`](https://www.npmjs.com/package/infinicode) device mesh, which
|
|
6
|
+
it installs as a dependency. You install and think in one name — everything else
|
|
7
|
+
is plumbing.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g robopark
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## The whole setup — two commands
|
|
16
|
+
|
|
17
|
+
Operators think in **scheduler / robot / laptop**; the mesh underneath thinks in
|
|
18
|
+
hub / satellite / peer. `robopark` translates, and each role turns on the right
|
|
19
|
+
defaults automatically.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
# On the on-site hub (LiveKit Server 1) — LAN + Tailscale + dashboard on:
|
|
23
|
+
robopark setup --scheduler --gateway ws://<infinibot-gateway>:18789 --start
|
|
24
|
+
|
|
25
|
+
# On each robot Pi — accept-only, LAN-discovered:
|
|
26
|
+
robopark setup --robot --name robopanda --start
|
|
27
|
+
|
|
28
|
+
# From anywhere — a live table of the whole fleet:
|
|
29
|
+
robopark fleet --watch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Run `robopark setup` with no role for a guided wizard.
|
|
33
|
+
|
|
34
|
+
## Commands
|
|
35
|
+
|
|
36
|
+
| Command | Does |
|
|
37
|
+
|---|---|
|
|
38
|
+
| `robopark setup` | Configure this device's role + site and (with `--start`) launch its node. |
|
|
39
|
+
| `robopark fleet [--watch]` | Live table of every node the mesh can see. |
|
|
40
|
+
| `robopark run <node> <cmd>` | Run a command on one node (use `.` for the local node). |
|
|
41
|
+
| `robopark apply` | Publish this hub's providers / keys / policy to every satellite. |
|
|
42
|
+
| `robopark dashboard [--open]` | Open the web control panel served by the hub. |
|
|
43
|
+
|
|
44
|
+
## How it fits together
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
you ── robopark ──▶ infinicode nodes (the mesh) ──▶ InfiniBot (watch)
|
|
48
|
+
└──▶ web dashboard :47913 (watch / drive)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- **robopark** — the remote control. A CLI, no daemon. Writes config and calls
|
|
52
|
+
each node's HTTP API.
|
|
53
|
+
- **infinicode** — the runtime. `infinicode serve` runs on every device, forms
|
|
54
|
+
the mesh, runs agents, streams telemetry, and serves the dashboard.
|
|
55
|
+
- **InfiniBot** — the cockpit. Each node pushes its status *up* to InfiniBot;
|
|
56
|
+
you watch there (or in the built-in dashboard).
|
|
57
|
+
|
|
58
|
+
`robopark` never talks to InfiniBot directly — it drives infinicode nodes, and
|
|
59
|
+
those surface in InfiniBot.
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT
|
package/bin/robopark.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* robopark — thin operator front-end.
|
|
4
|
+
*
|
|
5
|
+
* This package is a wrapper: the actual CLI lives in `infinicode` (its declared
|
|
6
|
+
* dependency), exposed as the `infinicode/robopark` subpath. Importing it runs
|
|
7
|
+
* the command against this process's argv, so `robopark …` and
|
|
8
|
+
* `infinicode robopark …` are the exact same code. Keeping it a wrapper means
|
|
9
|
+
* operators install and think in one name — `robopark` — while all the mesh
|
|
10
|
+
* machinery ships and versions under infinicode.
|
|
11
|
+
*/
|
|
12
|
+
import('infinicode/robopark').catch((err) => {
|
|
13
|
+
console.error('robopark: could not load the infinicode runtime.');
|
|
14
|
+
console.error(err && err.message ? err.message : err);
|
|
15
|
+
console.error('Try reinstalling: npm install -g robopark');
|
|
16
|
+
process.exit(1);
|
|
17
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "robopark",
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"description": "RoboPark fleet control CLI — set up, watch, and drive a fleet of talking robots. The operator front-end over the infinicode mesh.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"robopark": "./bin/robopark.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/robopark.js",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"infinicode": "^2.4.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"robopark",
|
|
21
|
+
"fleet",
|
|
22
|
+
"robots",
|
|
23
|
+
"livekit",
|
|
24
|
+
"raspberry-pi",
|
|
25
|
+
"cli",
|
|
26
|
+
"infinicode",
|
|
27
|
+
"mesh"
|
|
28
|
+
],
|
|
29
|
+
"author": "Ra Kai'Un",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/chosen-to-build/infinicode"
|
|
34
|
+
}
|
|
35
|
+
}
|