Lumi robot software on the Jetson Thor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
# 00. Start here
|
||||
|
||||
The path from zero to working on the real Lumi: what the robot is, what to install, how to power it on and connect, the first slow motions, and where each part is documented. Passwords are not in these docs; ask the project owner.
|
||||
|
||||
---
|
||||
|
||||
## 0. The robot and its control channels
|
||||
|
||||
Lumi is a JAKA mobile manipulator: mobile base, lift, waist, 2-joint head, 6-joint arm with a gripper, two RGB-D cameras and a microphone array ([01_HARDWARE.md](01_HARDWARE.md)).
|
||||
|
||||
| Channel | Controls | Address |
|
||||
|---|---|---|
|
||||
| Body HTTP API | lift, waist, head yaw, head pitch | `http://192.168.10.90:5000/api/extaxis/...` |
|
||||
| Arm controller | 6-joint arm, tool I/O (gripper) | `192.168.10.90` (JAKA SDK `jkrc`, or JSON commands on TCP port 10001) |
|
||||
| AGV TCP API | base driving, navigation, people detection | `192.168.10.10:31001` |
|
||||
| USB 3.0 (to the onboard computer) | head and torso cameras, microphone array | — |
|
||||
|
||||
---
|
||||
|
||||
## 1. Read first
|
||||
|
||||
1. [11_SAFETY.md](11_SAFETY.md): stop devices and operating rules.
|
||||
2. [01_HARDWARE.md](01_HARDWARE.md): what is on the robot.
|
||||
3. [02_NETWORK_AND_ACCESS.md](02_NETWORK_AND_ACCESS.md): addresses and how to connect.
|
||||
|
||||
---
|
||||
|
||||
## 2. Prepare your computer
|
||||
|
||||
| Need | macOS (Apple Silicon) | Ubuntu 22.04 / Jetson |
|
||||
|---|---|---|
|
||||
| Python 3.10+ with `requests`, `numpy`, `opencv-python`, `pyserial`, `pyaudio` | `pip install requests numpy opencv-python pyserial pyaudio` (pyaudio needs `brew install portaudio`) | `pip install ...`, `sudo apt install portaudio19-dev` |
|
||||
| JAKA SDK `jkrc` (arm) | no macOS build: use Docker Desktop with an `arm64v8/python:3.10` container and the `aarch64-linux-gnu` files ([04_ARM.md](04_ARM.md)) | native: `x86_64-linux-gnu` or `aarch64-linux-gnu` files + `LD_LIBRARY_PATH` |
|
||||
| Orbbec camera tools | OrbbecViewer macOS arm64 build | OrbbecSDK `.deb` (amd64 / arm64) + pyorbbecsdk ([06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md)) |
|
||||
| Browser | Chrome | Chrome |
|
||||
| JAKA App 1.7.2 (optional) | iPad / Android tablet / Windows PC | Windows PC / tablet |
|
||||
|
||||
Download the SDK:
|
||||
|
||||
```bash
|
||||
curl -L -o jaka_sdk.zip "https://www.jaka.com/prod-api/common/download/resource?resource=%2Fprofile%2Fupload%2F2025%2F04%2F25%2F20250425134342A024.zip"
|
||||
unzip jaka_sdk.zip && tar -xf "SDK V2.2.7.7z" # macOS tar (bsdtar) reads .7z; on Linux use 7z x
|
||||
ls "SDK V2.2.7/Linux/python3/" # aarch64-linux-gnu, x86_64-linux-gnu, i686-linux-gnu
|
||||
```
|
||||
|
||||
Keep the SDK binaries out of git (they are large).
|
||||
|
||||
---
|
||||
|
||||
## 3. Power on and off
|
||||
|
||||
1. Robot on a flat floor, free space around, E-stop on the column released, manual charging cable unplugged.
|
||||
2. **Base:** main switch underneath (next to the rear right caster) to **I**. Hold the power button: two short beeps → release after the third, long beep. LED flashes green, then **white** = ready.
|
||||
3. Wait about **5 minutes** for the controller and the onboard computer to start.
|
||||
4. **Arm:** in Cobo π (`https://192.168.10.90`) or the JAKA App: **Power** → ring light blue → **Enable** → green.
|
||||
5. **Body:** open `http://192.168.10.90:5000` → Reset → Enable (or through the API, [03_BODY_LIFT_WAIST_HEAD.md](03_BODY_LIFT_WAIST_HEAD.md)).
|
||||
|
||||
Power off in reverse: body Disable → arm Disable → arm Power off → hold the base button (seven short beeps, release on the eighth) → main switch to O if the robot is stored for more than 30 days.
|
||||
|
||||
---
|
||||
|
||||
## 4. Connect
|
||||
|
||||
1. Join the robot Wi-Fi `Lumi<serial>` **or** plug a cable into the base's RJ45 port.
|
||||
2. Your IP must be `192.168.10.x`. If it is `10.5.5.x`, set a static address such as `192.168.10.150/24`, gateway `192.168.10.9` ([02 §2](02_NETWORK_AND_ACCESS.md#fix-a-1055x-address)).
|
||||
3. Check:
|
||||
|
||||
```bash
|
||||
ping -c 2 192.168.10.90
|
||||
ping -c 2 192.168.10.10
|
||||
curl -s http://192.168.10.90:5000/api/extaxis/status
|
||||
```
|
||||
|
||||
4. Web pages: `https://192.168.10.90` (Cobo π, log in as Administrator), `http://192.168.10.90:5000` (body), `http://192.168.10.10:9001` (AGV).
|
||||
|
||||
---
|
||||
|
||||
## 4a. The onboard computer
|
||||
|
||||
The cameras and the microphone array are USB devices: they work only on the computer plugged into the base's USB 3.0 port. On Lumi this is the onboard **Jetson AGX Thor** ([08_NVIDIA_THOR.md](08_NVIDIA_THOR.md)), which runs the robot software. Body, arm and base are network devices and can be reached from any computer on the robot network.
|
||||
|
||||
```
|
||||
Laptop ──Wi-Fi "Lumi<serial>"──> robot network 192.168.10.x
|
||||
│ ├─ 192.168.10.90 arm + body controller (MiniCab)
|
||||
│ ├─ 192.168.10.10 AGV base computer
|
||||
└──SSH──> onboard computer (Thor) ─┘
|
||||
└─USB 3.0─> head camera, torso camera, microphone array
|
||||
```
|
||||
|
||||
Neither `192.168.10.90` (arm controller) nor `192.168.10.10` (AGV navigation PC) runs user code; the onboard computer does.
|
||||
|
||||
1. Find the onboard computer's IP: router page `http://192.168.10.79` → connected devices, or `nmap -sn 192.168.10.0/24`.
|
||||
2. `ssh <user>@<ip>`.
|
||||
3. Check the USB devices: `lsusb | grep -i -E "2bc5|orbbec"` (two Gemini 2 L) and `arecord -l` (AIUI-USB-MC).
|
||||
4. Edit code remotely (VS Code Remote-SSH), or keep it in git and pull / rsync it there.
|
||||
5. Camera images on a laptop: OrbbecViewer over X11 forwarding (`ssh -X`), or frames published over the network (ROS 2 `OrbbecSDK_ROS2`, or an HTTP / MJPEG server).
|
||||
|
||||
The software that runs on the onboard computer is described in [../README.md](../README.md).
|
||||
|
||||
---
|
||||
|
||||
## 5. Read-only checks
|
||||
|
||||
| Part | Check | Doc |
|
||||
|---|---|---|
|
||||
| Arm | Cobo π: controller version, arm model (`MiniCobo2`), joint limits, joint speed limits, mounting, payload | [04_ARM.md](04_ARM.md) |
|
||||
| Arm SDK | `login()` (or `login(1)`), `get_sdk_version()`, `get_robot_status_simple()`, `get_joint_position()` | [04_ARM.md](04_ARM.md) |
|
||||
| Body | `GET /sysinfo`, `GET /status` | [03 §2](03_BODY_LIFT_WAIST_HEAD.md#2-http-api) |
|
||||
| Base | web monitor: map, position, battery, E-stops; API `robot_status`, `get_power_status`, `software/get_version`, `markers/query_brief` | [05_AGV_BASE.md](05_AGV_BASE.md) |
|
||||
| Cameras | `lsusb` / OrbbecViewer: two Gemini 2 L, serial numbers, head / torso | [06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md) |
|
||||
| Microphone | `AIUI-USB-MC` in the audio device list; record 5 s | [07_VOICE_AND_AUDIO.md](07_VOICE_AND_AUDIO.md) |
|
||||
|
||||
---
|
||||
|
||||
## 6. First motions (slow)
|
||||
|
||||
1. **Body** ([03 §5](03_BODY_LIFT_WAIST_HEAD.md#5-bring-up-sequence)): enable, `moveto` with `vel=10`: head pitch 0→20→0, head yaw ±30, waist ±20, lift 0→50→0.
|
||||
2. **Arm** ([04_ARM.md](04_ARM.md)): collision level 1; each joint +5° and back at 0.2 rad/s; then the factory pose `[0, 120, -120, 0, -90, 0]°`.
|
||||
3. **Base** ([05_AGV_BASE.md](05_AGV_BASE.md)): open area, `joy_control` 0.1 m/s for 2 s at 10 Hz, 0.3 rad/s turn; soft E-stop.
|
||||
|
||||
---
|
||||
|
||||
## 7. Development areas
|
||||
|
||||
| Area | Approach | Docs |
|
||||
|---|---|---|
|
||||
| Arm trajectories | `joint_move` sequences → `servo_j` streaming (8 ms) where the controller supports servo mode → MoveIt 2 through the vendor ROS servers | [04_ARM.md](04_ARM.md), [09_ROS2_TELEOP_AND_SIM.md](09_ROS2_TELEOP_AND_SIM.md) |
|
||||
| Base | `joy_control` at 10 Hz (v, w) → markers + `/api/move` navigation | [05_AGV_BASE.md](05_AGV_BASE.md) |
|
||||
| Cameras / vision | pyorbbecsdk colour + depth, intrinsics, hand-eye calibration | [06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md) |
|
||||
| Sound direction | mic array direction output → head / waist turn; AGV `human_detection` as a second source | [07_VOICE_AND_AUDIO.md](07_VOICE_AND_AUDIO.md) |
|
||||
| Onboard computer | Jetson AGX Thor setup, Docker, voice services | [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md) |
|
||||
| Gripper | tool I/O signals, gripper control | [10_GRIPPER.md](10_GRIPPER.md) |
|
||||
| Tunable values | speeds, distances, thresholds with file and line | [TUNING.md](TUNING.md) |
|
||||
|
||||
---
|
||||
|
||||
## 8. Coordinate frames and units
|
||||
|
||||
| Interface | Units | Frame |
|
||||
|---|---|---|
|
||||
| Body HTTP API | mm, degrees | joint space |
|
||||
| Arm SDK joints | rad | SDK joint space = URDF `l_a1…l_a6` |
|
||||
| Arm SDK Cartesian | mm, rad (RX, RY, RZ) | arm base / user frame; TCP = active tool (default flange centre). Cobo π shows degrees and a "World" frame that includes the mounting angle |
|
||||
| AGV `joy_control` | m/s, rad/s | base: + forward, + left turn |
|
||||
| AGV poses, markers | m, rad | map frame made during mapping |
|
||||
| AGV `human_detection` | m | robot: x ahead, right-handed (y left) |
|
||||
| Camera depth | mm (after `depth_scale`) | camera optical frame |
|
||||
| URDF | m, rad | robot front = −y of `base_link`; arm base on the waist link at (−0.104, 0, 0.069) |
|
||||
|
||||
---
|
||||
|
||||
## 9. Documentation map
|
||||
|
||||
| Doc | Content |
|
||||
|---|---|
|
||||
| [README.md](README.md) | index |
|
||||
| [01_HARDWARE.md](01_HARDWARE.md) | specs of every part, connectors, lights, model files |
|
||||
| [02_NETWORK_AND_ACCESS.md](02_NETWORK_AND_ACCESS.md) | network map, addresses, static IP, apps and tools |
|
||||
| [03_BODY_LIFT_WAIST_HEAD.md](03_BODY_LIFT_WAIST_HEAD.md) | body web page, HTTP API, Cobo π external axes, ROS node |
|
||||
| [04_ARM.md](04_ARM.md) | Cobo π, controller versions, Python SDK, joint space, trajectories, settings, tool I/O |
|
||||
| [05_AGV_BASE.md](05_AGV_BASE.md) | web monitor (mapping, markers, correction) and TCP API |
|
||||
| [06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md) | Orbbec tools, Python, intrinsics, hand-eye calibration |
|
||||
| [07_VOICE_AND_AUDIO.md](07_VOICE_AND_AUDIO.md) | mic array, recording, sound direction |
|
||||
| [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md) | Jetson Thor setup, Docker, voice services |
|
||||
| [09_ROS2_TELEOP_AND_SIM.md](09_ROS2_TELEOP_AND_SIM.md) | ROS 2 / MoveIt / Isaac Sim, VR teleop, ACT |
|
||||
| [10_GRIPPER.md](10_GRIPPER.md) | gripper hardware, signals, control |
|
||||
| [11_SAFETY.md](11_SAFETY.md) | stop devices and rules |
|
||||
| [12_SOURCES.md](12_SOURCES.md) | sources and download links |
|
||||
| [TUNING.md](TUNING.md) | tunable values |
|
||||
@@ -0,0 +1,239 @@
|
||||
# 01. Hardware
|
||||
|
||||
What the JAKA Lumi is made of, with its specifications from the vendor material ([12_SOURCES.md](12_SOURCES.md)). Where two vendor sources disagree, both values are given.
|
||||
|
||||
---
|
||||
|
||||
## 1. The robot at a glance
|
||||
|
||||
Lumi is a wheeled mobile manipulator ("embodied AI platform"): an AGV base, a lifting column, a waist joint, a 2-joint head, a 6-joint arm on the side of the column, two RGB-D cameras and a microphone array.
|
||||
|
||||
| Part | What it is | Controlled through | Detail doc |
|
||||
|---|---|---|---|
|
||||
| Mobile base (AGV) | Differential-drive base with 2D lidar SLAM ("WATER" platform) | TCP commands to `192.168.10.10:31001`; web UI `:9001` | [05_AGV_BASE.md](05_AGV_BASE.md) |
|
||||
| Lift, waist, head (4 joints) | Lifting column, waist turn, head yaw, head pitch | HTTP `192.168.10.90:5000/api/extaxis/...`; also external axes in Cobo π | [03_BODY_LIFT_WAIST_HEAD.md](03_BODY_LIFT_WAIST_HEAD.md) |
|
||||
| Arm (6 joints) | JAKA Mini 2 ("MiniCobo2") with a MiniCab controller inside the base | JAKA SDK `jkrc`; Cobo π web UI `https://192.168.10.90`; JAKA App | [04_ARM.md](04_ARM.md) |
|
||||
| Head and torso cameras | Orbbec Gemini 2 L RGB-D (+ IMU) | USB 3.0 to the host computer | [06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md) |
|
||||
| Base camera, lidar, ultrasonics, IMU, bumper | Built into the AGV, used by its navigation | AGV API | [05_AGV_BASE.md](05_AGV_BASE.md) |
|
||||
| Voice module | iFlytek AIUI XF-USB-MC, 6-mic ring array | USB audio to the host computer | [07_VOICE_AND_AUDIO.md](07_VOICE_AND_AUDIO.md) |
|
||||
| Main AI computer | Jetson AGX Thor (vendor options: Orin NX / AGX Orin / AGX Thor) | Ethernet / Wi-Fi to the robot network; USB 3.0 to the base | [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md) |
|
||||
| Gripper | Zimmer GEP2013IO-05-B electric parallel gripper on the arm flange | Arm tool I/O (digital outputs, analog input) | [10_GRIPPER.md](10_GRIPPER.md) |
|
||||
|
||||
Camera positions: **1** head (front of the head), **2** torso (under the handle on the column), **3** base front (the AGV's own camera).
|
||||
|
||||
### Whole robot
|
||||
|
||||
| Item | Value | Source |
|
||||
|---|---|---|
|
||||
| Size (W × D × H) | 510 × 510 × 1460–1860 mm (height changes with the lift) | Lumi manual 5.1.1, brochure |
|
||||
| Weight | 95.6 kg | Brochure |
|
||||
| Degrees of freedom | 12 = lift 1 + waist 1 + head 2 + arm 6 + 2 drive wheels | Lumi manual 5.1.1 |
|
||||
| Power | 800 W (manual) / 1500 W (brochure) | |
|
||||
| Arm and controller supply | 48 V DC; base battery 24 V | Lumi manual, AGV spec |
|
||||
| Arm payload | 2 kg | Lumi manual, brochure, web doc 3.3.5 |
|
||||
| Lift range | 0–400 mm (hardware); 0–300 mm (body API doc) | see [03](03_BODY_LIFT_WAIST_HEAD.md#joint-ranges) |
|
||||
| Waist | ±160° (hardware); ±140° (body API doc) | |
|
||||
| Head yaw (neck) | ±180° | |
|
||||
| Head pitch | −5…+35° | |
|
||||
| End-effector options (vendor) | 3-finger or 5-finger dexterous hands, electric grippers, soft grippers | Brochure |
|
||||
| Simulation support (vendor claim) | "natively compatible with MuJoCo and NVIDIA Isaac Sim" | Brochure |
|
||||
|
||||
---
|
||||
|
||||
## 2. Arm: JAKA Mini 2
|
||||
|
||||
From the Lumi manual 5.1.2, Mini hardware manual 3.3 and web doc 3.3.5.
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Model | JAKA Mini 2; Cobo π shows it as `MiniCobo2`. (MiniCobo, named in the vendor teleop list, is the 1 kg / 24 V sibling.) |
|
||||
| Payload | 2 kg |
|
||||
| Weight | 9.9 kg |
|
||||
| Reach | 580 mm |
|
||||
| Repeatability | ±0.1 mm |
|
||||
| Max tool speed | 1 m/s |
|
||||
| Rated power | 180 W |
|
||||
| Supply | 48 V DC; under-voltage protection at ≤ 30 V |
|
||||
| Communication | TCP/IP, Modbus TCP, Modbus RTU, PROFINET, EtherNet/IP |
|
||||
| Tool I/O | 2 DI, 2 DO, 2 AI, 24 V supply, M8 8-pin connector (pinout in [04_ARM.md](04_ARM.md#8-tool-io-connector-m8-8-pin-tio-v3)) |
|
||||
| Base diameter | 124 mm |
|
||||
| IP rating | IP40 |
|
||||
| Mounting | Any angle; on Lumi it hangs on the side of the column (on the waist link) |
|
||||
| Max load on the arm base | Fx/Fy 120 N, Fz 140 N, Mx/My 100 Nm, Mz 90 Nm (not all at once) |
|
||||
| Max flange torque | 14 Nm |
|
||||
| Flange | ISO 9409-1, pitch circle 50 mm, 4 × M6 (15.3 Nm, screws grade ≥ 12.9), 1 × Ø6 H7 locating pin hole rotated 45° clockwise from +Xm |
|
||||
| Flange buttons | FREE (hand-guiding / drag), POINT (record a point in the app) |
|
||||
| Ring light at the arm base | blue = powered not enabled, green = enabled, red = fault / protective stop, yellow = drag mode, yellow fast flashing = paused / single step |
|
||||
|
||||
| Joint | Range | URDF joint | URDF limit (rad) |
|
||||
|---|---|---|---|
|
||||
| J1 | ±360° | `l_a1` | ±6.2831 |
|
||||
| J2 | ±125° | `l_a2` | ±2.1816 |
|
||||
| J3 | ±130° | `l_a3` | ±2.2689 |
|
||||
| J4 | ±360° | `l_a4` | ±6.2831 |
|
||||
| J5 | ±120° | `l_a5` | ±2.0943 |
|
||||
| J6 | ±360° | `l_a6` | ±6.2831 |
|
||||
|
||||
### Arm controller: MiniCab
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Location | Inside the AGV base |
|
||||
| Size / weight | 180 × 46.6 × 128 mm, 1.1 kg |
|
||||
| Supply | 48 V DC (Mini 2) |
|
||||
| I/O | 7 configurable channels (NPN, triggered by 0 V) |
|
||||
| Network | Wi-Fi (DHCP only) and two LAN ports: LAN1 fixed at `10.5.5.x`, LAN2 configurable (cannot be set to `10.5.5.x`) |
|
||||
| Wi-Fi reset | Hold the button next to the antenna for > 10 s (gateway goes back to factory settings) |
|
||||
| Brake voltage | Must be set in the app when an external power supply is used (robot powered off and disabled) |
|
||||
| Controller software | 1.7.1-46-X64-minicab (vendor teleoperation docs); controller 3.2 with Cobo π on newer robots. See [04_ARM.md](04_ARM.md#2-controller-versions-17-vs-32) |
|
||||
| Absolute limits | logic/power supply −0.3…40 V absolute; recommended 40–56 V (48 V typical); average current 3.75 A, peak 12.5 A |
|
||||
| Typical power | off 1 W, on 12 W, with arm power up to 30 W |
|
||||
|
||||
### Safety system (arm)
|
||||
|
||||
EN ISO 10218-1, ISO 13849-1 PL d Cat. 3, 27 safety functions in 8 groups: emergency stop, protective stop, motion state, manual mode, speed monitoring, torque and power limits, collision protection, position monitoring. Stop categories: Cat. 0 (power cut), Cat. 1 (controlled stop, then power off; E-stop button), Cat. 2 (stops on path, stays enabled; safety functions). Details in [11_SAFETY.md](11_SAFETY.md) and [04_ARM.md](04_ARM.md).
|
||||
|
||||
---
|
||||
|
||||
## 3. Mobile base (AGV)
|
||||
|
||||
From the AGV spec sheet, Lumi manual 5.1.4 and the chassis manual.
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Size | 510 × 510 × 280 mm |
|
||||
| Weight | 50 kg |
|
||||
| Payload | 60 kg rated, 80 kg max on flat floor |
|
||||
| Drive | Differential, 2 × 160 W hub servo motors |
|
||||
| Wheels | 2 drive, 4 casters, 1 auxiliary; swing-arm active suspension |
|
||||
| Turning radius | 307 mm |
|
||||
| Ground clearance | 25 mm |
|
||||
| Speed | 0.6 m/s default, 1.2 m/s max (API joystick command limited to ±0.5 m/s, ±1.0 rad/s) |
|
||||
| Repeatability | ±5 cm |
|
||||
| Obstacles | Step 15 mm, slope 8°, gap 30 mm; needs a 700 mm wide passage |
|
||||
| Battery | 24 V (21–29.4 V), 45 Ah Li-ion; about 10 h with ≤ 50 kg load (spec sheet: 45 h idle, 25 h empty driving, 13 h with 60 kg) |
|
||||
| Battery life | 1000 full cycles to ≥ 75 % |
|
||||
| Charging dock | 100–240 V AC in, 29.4 V 6 A out |
|
||||
| Computer | Intel J1900 quad core, Linux (navigation only; not for user code) |
|
||||
| Mapping | 50 000 m² per map, 80 000 m² max operating area |
|
||||
| Upper-body recommendations (chassis manual) | total height ≤ 110 cm, centre of mass ≤ 50 cm above ground for full climbing ability; mount through 9 × M5 holes, max 10 mm screw depth |
|
||||
|
||||
### Sensors in the base
|
||||
|
||||
| Sensor | Specification |
|
||||
|---|---|
|
||||
| 2D lidar | 0.02–10 m, 240°, ±20 mm, 10 mm resolution, 30 Hz, IP65 |
|
||||
| 3D camera (front, looks forward/up) | 0.35–2 m, FoV H 58.4° × V 45.5° |
|
||||
| Ultrasonic | 5 units, 0.03–0.55 m, ≈ 3 cm accuracy, < 15° cone |
|
||||
| IMU | 6-axis |
|
||||
| Infrared | 1 m, ±2–6° |
|
||||
| Bumper | triggers at 5–7 mm travel, > 20 N |
|
||||
|
||||
### Connectors on the back of the base
|
||||
|
||||
From the Lumi manual 6.5, the quick manual, web doc 3.2 and the chassis ports docx.
|
||||
|
||||
| Connector | Purpose |
|
||||
|---|---|
|
||||
| USB 3.0 (1) | **Head camera, torso camera and voice module.** Plug the host computer in here |
|
||||
| Gigabit Ethernet (RJ45, "upper computer") | Host computer. Fixed `192.168.10.x` network (robot at `192.168.10.90`) |
|
||||
| USB 3.0 (2) | MiniCab control cabinet inside the base |
|
||||
| External RJ45 | Extra network port |
|
||||
| Charging contacts | Contact charging on the dock (LED breathes while charging) |
|
||||
| 48 V manual charging socket | Behind a magnetic cover on the right side; remove the cable before driving (tasks fail while it is plugged) |
|
||||
| 48 V and 24 V aviation sockets | Upper-body power |
|
||||
| Main power switch | Underneath, next to the rear right caster. Off from the factory; "pull" it on at first start |
|
||||
| Contact power switch | Hidden underneath |
|
||||
| E-stop | Built into the chassis; another red E-stop button is on the column |
|
||||
|
||||
### Lights and buttons
|
||||
|
||||
| Base LED strip | Meaning |
|
||||
|---|---|
|
||||
| Green flashing | Power on, computer booting |
|
||||
| White steady | Booted, normal |
|
||||
| White / blue-white breathing | Charging (also while off and charging) |
|
||||
| White / blue-white flashing | E-stop pressed |
|
||||
|
||||
| Charging dock light | Meaning |
|
||||
|---|---|
|
||||
| Green | Dock powered, not charging, or charging with battery ≥ 90 % |
|
||||
| Red | Charging, battery < 90 % |
|
||||
|
||||
Power button: hold → two short beeps (LED purple) → release after the third, long beep (LED flashes green while booting). Off: hold → seven short beeps → release on the eighth, long beep.
|
||||
|
||||
**E-stop (red button on the column):** cuts arm power and stops the lift column; the base becomes free to push by hand. After releasing the E-stop the base cannot be pushed any more. (Web doc 3.3.3.4.)
|
||||
|
||||
---
|
||||
|
||||
## 4. Cameras
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Model | Orbbec Gemini 2 L (head and torso), USB VID:PID `2bc5:0673` |
|
||||
| Depth range | 0.02–10 m (brochure: 0.2–10 m) |
|
||||
| Depth FoV | H 91° / V 66° / D 101° ± 3° |
|
||||
| Depth resolution | 1280 × 800 @ 30 fps, 640 × 400 @ 60 fps |
|
||||
| Colour FoV | H 94° / V 68° / D 104° ± 3° |
|
||||
| Colour resolution | 1280 × 800 @ 30 fps, 1280 × 720 @ 60 fps |
|
||||
| Other streams | IR, IMU (accelerometer + gyroscope, ~200 Hz) |
|
||||
| Interface | USB 3.0 (required; USB 2.0 is not enough) |
|
||||
|
||||
Calibrated intrinsics, mount poses and software: [06_CAMERAS_AND_VISION.md](06_CAMERAS_AND_VISION.md).
|
||||
|
||||
---
|
||||
|
||||
## 5. Voice module
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Model | iFlytek AIUI XF-USB-MC (shows up as the audio device `AIUI-USB-MC`) |
|
||||
| Microphones | 6-mic ring array in the head |
|
||||
| SNR | > 70 dB |
|
||||
| Wake-up / recognition distance | 3–5 m (more with an external mic) |
|
||||
| Sound localisation | 4 mics 180°, 6 mics 360°, ±15° |
|
||||
| OS support | Windows, Linux, Android |
|
||||
|
||||
Use: [07_VOICE_AND_AUDIO.md](07_VOICE_AND_AUDIO.md).
|
||||
|
||||
---
|
||||
|
||||
## 6. Main AI computer options
|
||||
|
||||
JAKA's recommendation (web doc 3.0):
|
||||
|
||||
| | No extra controller | Jetson Orin NX | Jetson AGX Orin | Jetson AGX Thor |
|
||||
|---|---|---|---|---|
|
||||
| Class | — | light, 70 TOPS | high, 275 TOPS | flagship, 2070 TOPS |
|
||||
| Use when | No vision or voice; control body, arm, base only; wireless remote control | Body control only, or ≤ 2 × 1080p @ 15 fps light AI | Vision and voice needed, LLM ≤ 7B or VLA ≤ 13B, 4–8 × 1080p @ 30 fps | Large multimodal models (≥ 30B VLA, ACT, LLM + vision), 8K, multi-robot |
|
||||
| Typical tasks | Trajectory teaching, body + base control, AGV transport, simple palletising | Same | Vision-guided assembly, barcode + OCR, voice picking, online quality check | Voice interaction, ACT 30 Hz end-to-end, complex semantic segmentation, LLM trajectory generation |
|
||||
| Measured (vendor) | — | YOLOv5n 640×480 25 FPS; Whisper-Tiny 0.8× real time | YOLOv8x 640×640 8 ch 30 FPS; Whisper-Small 1.2× RT; LLaMA-7B INT4 18 tok/s | ACT 512×512 2 cameras 30 Hz; LLaMA-30B INT4 28 tok/s; 8K AV1 60 FPS |
|
||||
| CPU | — | 6/8-core Cortex-A78AE | 12-core Cortex-A78AE 2.2 GHz | 72-core Arm v9 (Grace-Next) 2.6 GHz |
|
||||
| GPU | — | 1024-core Ampere | 2048-core Ampere 1.3 GHz | Blackwell 1.57 GHz |
|
||||
| Memory | — | 8 / 16 GB LPDDR5 | 32 / 64 GB LPDDR5 | up to 128 GB |
|
||||
| Power | — | 10–25 W | 15–60 W | 30–120 W |
|
||||
|
||||
Lumi uses a **Jetson AGX Thor**: [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md).
|
||||
|
||||
The vendor's education kit lists: JAKA Mini2 arm, lift + voice module, **DH-PGEA-50** gripper with 3D-printed fingers, lidar base, 3D camera, optional 16" monitor, **Jetson AGX Orin** main controller.
|
||||
|
||||
---
|
||||
|
||||
## 7. Kinematic model files
|
||||
|
||||
| File | Where |
|
||||
|---|---|
|
||||
| URDF | JAKA_Lumi `feat_ros` branch: `jaka_lumi_ros/src/jaka_lumi_description/urdf/jaka_lumi.urdf` |
|
||||
| URDF with cameras, lidar and casters | JAKA_Lumi `main`: `02. .../JAKA-Lumi-sensors-v3/urdf/JAKA-Lumi-sensors-v3.urdf` |
|
||||
| USD for Isaac Sim | `feat_ros`: `jaka_lumi_description/urdf/jaka_lumi/*.usd` |
|
||||
| MoveIt 2 config | `feat_ros`: `jaka_lumi_moveit_config/` |
|
||||
| STEP model (65 MB) and 2D drawing | JAKA_Lumi `main`: `02. .../Lumi Models [模型说明]/` |
|
||||
|
||||
Sensor mount poses from the sensors URDF (in `base_link`, whose front is −y):
|
||||
|
||||
| Link | Parent | xyz (m) | rpy (rad) |
|
||||
|---|---|---|---|
|
||||
| `Camera3_Link` (head camera) | `link_4` | (−0.0552, −0.0665, −0.001) | (−1.5708, −1.5708, 0) |
|
||||
| `Camera2_Link` (torso camera) | `link_2` | (0.1257, 0.011, 0.0287) | (0, 0, 0) |
|
||||
| `Camera1_Link` (base camera) | `base_link` | (0.003, −0.191, −0.120) | (−0.663, 0, 3.1416) |
|
||||
| `Radar_Link` (lidar) | `base_link` | (0, −0.126, −0.085) | (0, 0, 0) |
|
||||
@@ -0,0 +1,133 @@
|
||||
# 02. Network and access
|
||||
|
||||
How to get a computer onto the Lumi network, which addresses and ports exist, and which web pages and apps to use. Passwords are not in these docs; ask the project owner.
|
||||
|
||||
---
|
||||
|
||||
## 1. Network map
|
||||
|
||||
```
|
||||
Lumi internal network 192.168.10.0/24
|
||||
┌──────────────────────────────────────────────────────────────────────────┐
|
||||
│ 192.168.10.90 robot controller (MiniCab): │
|
||||
│ - arm SDK (jkrc), JSON commands on :10001 │
|
||||
│ - Cobo π web UI https://192.168.10.90 │
|
||||
│ - body API + web UI http://192.168.10.90:5000 │
|
||||
│ 192.168.10.10 AGV base computer: │
|
||||
│ - AGV TCP API 192.168.10.10:31001 │
|
||||
│ - monitor / mapping UI http://192.168.10.10:9001 │
|
||||
│ - map builder http://192.168.10.10:8809 │
|
||||
│ 192.168.10.79 internal Wi-Fi router (Cudy WR1200E, access point) │
|
||||
│ 192.168.10.9 gateway (as shown on the router page) │
|
||||
└──────────────────────────────────────────────────────────────────────────┘
|
||||
▲ Wi-Fi "Lumi<serial>" (2.4 GHz and -5G) ▲ RJ45 on the back of the base
|
||||
│ │
|
||||
laptop / Jetson Thor (192.168.10.x) ─────────────────┘
|
||||
+ USB 3.0 cable to the base for the head/torso cameras and the microphone array
|
||||
```
|
||||
|
||||
| Service | Address | Login | Notes |
|
||||
|---|---|---|---|
|
||||
| Arm SDK (`jkrc`) | `192.168.10.90` | — | Used by every vendor demo and the ROS arm server |
|
||||
| Arm JSON command port | `192.168.10.90:10001` | — | TCP, JSON commands without the SDK ([04_ARM.md](04_ARM.md)) |
|
||||
| Cobo π (arm web app) | `https://192.168.10.90` (also `http://`) | Administrator | Accept the self-signed certificate. Settings, manual jog, external axes, programs |
|
||||
| Body (lift/waist/head) web UI | `http://192.168.10.90:5000` | none | ExtAxis page: Enable / Disable / Reset / Stop, joint table, chart, Upgrade page |
|
||||
| Body HTTP API | `http://192.168.10.90:5000/api/extaxis/...` | none | [03_BODY_LIFT_WAIST_HEAD.md](03_BODY_LIFT_WAIST_HEAD.md) |
|
||||
| AGV TCP API | `192.168.10.10:31001` | none | [05_AGV_BASE.md](05_AGV_BASE.md) |
|
||||
| AGV monitor and mapping | `http://192.168.10.10:9001` | none | Chrome recommended. Map builder pops up on port 8809 |
|
||||
| Robot Wi-Fi router admin | `http://192.168.10.79` | password | Cudy WR1200E in access-point mode |
|
||||
| MiniCab LAN1 (fixed) | `10.5.5.x` (controller at `10.5.5.100` in old docs) | — | Old LumiAPI doc and the VR-teleop defaults use `10.5.5.100` |
|
||||
| AGV chassis Wi-Fi (alternative) | SSID `admin_xxxxxx` | password | From the chassis manual; Lumi uses its own router instead |
|
||||
| VR teleop receiver (vendor) | PC port 8018 (docs) / 9852 (launch file) | — | [09_ROS2_TELEOP_AND_SIM.md](09_ROS2_TELEOP_AND_SIM.md) |
|
||||
|
||||
Ports summary: `5000` body HTTP, `443/80` Cobo π, `10001` arm JSON commands, `31001` AGV TCP, `9001` AGV web, `8809` AGV map builder, `22` SSH on the Jetson, `8000`/`8080`/`5173` voice-assistant services on the Jetson ([08](08_NVIDIA_THOR.md)).
|
||||
|
||||
---
|
||||
|
||||
## 2. Connect a computer
|
||||
|
||||
### Option A: Wi-Fi
|
||||
|
||||
1. Read the serial on the robot's name plate.
|
||||
2. Join the Wi-Fi `Lumi<serial>` (a 2.4 GHz and a `-5G` network) with the factory-default password.
|
||||
3. Check your IP address. It must be `192.168.10.x`. If it is `10.5.5.x`, follow "Fix a 10.5.5.x address" below.
|
||||
4. Test: `ping 192.168.10.90` and `ping 192.168.10.10`, then open `http://192.168.10.90:5000` in a browser.
|
||||
|
||||
### Option B: cable
|
||||
|
||||
1. Connect your computer to the gigabit RJ45 port on the back of the base.
|
||||
2. If no address is given by DHCP, set a static address (below), for example `192.168.10.150/24`.
|
||||
3. Test as above.
|
||||
|
||||
For cameras and the microphone, also plug a USB 3.0 cable from the computer into the base's USB 3.0 port (the one for "head/torso cameras and voice module").
|
||||
|
||||
### Fix a 10.5.5.x address
|
||||
|
||||
When the laptop receives `10.5.5.xxx` (gateway `10.5.5.1`) from the robot Wi-Fi, the robot services do not answer. Set the address by hand:
|
||||
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| IP address | a free `192.168.10.x`, e.g. `192.168.10.150` (avoid .9, .10, .79, .90 and addresses already in use) |
|
||||
| Subnet mask | `255.255.255.0` |
|
||||
| Gateway | `192.168.10.9` (gateway shown on the robot router) |
|
||||
| DNS | `192.168.10.9` or leave empty |
|
||||
|
||||
**Windows 10/11:** Settings → Network & Internet → Wi-Fi (or Ethernet) → the connection → IP assignment → Edit → Manual → IPv4 on → enter the values → Save. Or: Control Panel → Network and Sharing Center → Change adapter settings → right-click the adapter → Properties → Internet Protocol Version 4 → Use the following IP address.
|
||||
|
||||
**macOS:** System Settings → Wi-Fi (or Ethernet) → Details… next to the network → TCP/IP → Configure IPv4: *Manually* → enter IP, mask, router → OK.
|
||||
|
||||
**Ubuntu:** Settings → Network → gear icon → IPv4 → Manual → address, netmask, gateway → Apply; or `nmcli con mod "<name>" ipv4.method manual ipv4.addresses 192.168.10.150/24 ipv4.gateway 192.168.10.9 && nmcli con up "<name>"`.
|
||||
|
||||
Before choosing an address, check it is free: `ping 192.168.10.150` should not answer.
|
||||
|
||||
### Keep internet while on the robot network
|
||||
|
||||
Use the cable for the robot and Wi-Fi for the internet (for cloud APIs). On Linux:
|
||||
|
||||
```bash
|
||||
# 192.168.10.* over the wired port, everything else over Wi-Fi
|
||||
sudo ip route replace 192.168.10.0/24 via 192.168.10.1 dev <wired-iface> metric 50
|
||||
sudo ip route replace default via <wifi-gateway> dev <wifi-iface> metric 100
|
||||
sudo ip route del default via 192.168.10.1 dev <wired-iface> 2>/dev/null
|
||||
```
|
||||
|
||||
On macOS: System Settings → Network → "…" → Set Service Order, put Wi-Fi above Ethernet; macOS still reaches `192.168.10.x` through the cable because it is on that subnet.
|
||||
|
||||
---
|
||||
|
||||
## 3. Apps and tools
|
||||
|
||||
| Tool | What for | Where to get it | Platform |
|
||||
|---|---|---|---|
|
||||
| Browser (Chrome) | Cobo π, body web UI, AGV web UI | — | any |
|
||||
| JAKA App (Zu App) v1.7.2 | Arm setup, safety, payload, programs (older UI) | https://www.jaka.com/download (iOS: App Store "JAKA App"; Android; Windows) | Windows / Android / iOS |
|
||||
| Cobo π | Newer arm UI; served by the controller (≥ 1.7.1) or installed (Windows PC / Android) | Browser to the robot IP, or installer from JAKA | any browser |
|
||||
| JAKA SDK v2.2.7 | Python / C++ arm control | [zip](https://www.jaka.com/prod-api/common/download/resource?resource=%2Fprofile%2Fupload%2F2025%2F04%2F25%2F20250425134342A024.zip); also inside the JAKA_Lumi repo | Linux x86_64 / aarch64, Windows (no macOS) |
|
||||
| OrbbecViewer / Orbbec SDK v1.10.8 | Check and tune the cameras | https://github.com/orbbec/OrbbecSDK/releases (Windows exe, Linux amd64/arm64 deb, macOS arm64 viewer zip) | all |
|
||||
| pyorbbecsdk | Python camera access | https://github.com/orbbec/pyorbbecsdk | Linux, Windows (macOS: verify) |
|
||||
| SSH client (Terminal, MobaXterm on Windows) | Log into the Jetson Thor | — | any |
|
||||
| VS Code / Cursor + Docker extension | Develop inside the Jetson containers | — | any |
|
||||
| PICO Developer Center | Install the VR teleop app | https://developer-cn.picoxr.com/resources/#pdc | Windows / macOS |
|
||||
|
||||
JAKA App tablet requirements (JAKA App manual): Android 10–13, Snapdragon 835-class; disable battery saving for the app so the robot does not disconnect when the screen locks.
|
||||
|
||||
Cobo π browser requirements: Windows 10 64-bit + Chrome ≥ 110, or Android 13 tablet; Cobo π service package needs controller ≥ 1.7.1 (otherwise upload it through the Zu App: Settings → Version upgrade).
|
||||
|
||||
---
|
||||
|
||||
## 4. Checklist: is everything reachable?
|
||||
|
||||
```bash
|
||||
ping -c 2 192.168.10.90 # robot controller
|
||||
ping -c 2 192.168.10.10 # AGV computer
|
||||
curl -s http://192.168.10.90:5000/api/extaxis/status # body joints JSON
|
||||
curl -s http://192.168.10.90:5000/api/extaxis/sysinfo # body firmware info
|
||||
python3 - <<'EOF'
|
||||
import socket, json
|
||||
s = socket.create_connection(("192.168.10.10", 31001), timeout=3)
|
||||
s.sendall(b"/api/robot_status")
|
||||
print(json.loads(s.recv(65536)))
|
||||
EOF
|
||||
```
|
||||
|
||||
Open in the browser: `https://192.168.10.90` (Cobo π), `http://192.168.10.90:5000` (body), `http://192.168.10.10:9001` (AGV).
|
||||
@@ -0,0 +1,182 @@
|
||||
# 03. Body: lift, waist, head
|
||||
|
||||
The four "external axes" (lifting column, waist, head yaw, head pitch). There are three ways to drive them: the web page, the HTTP API, and the external-axis panel in Cobo π. ROS 2 nodes wrap the HTTP API.
|
||||
|
||||
Units everywhere: **mm** for the lift, **degrees** for the others.
|
||||
|
||||
---
|
||||
|
||||
## Joint ranges
|
||||
|
||||
| Index | Joint | HTTP API range (Lumi SDK doc) | Hardware (Lumi manual, brochure) | URDF |
|
||||
|---|---|---|---|---|
|
||||
| 0 / joint 1 | Lift | 0–300 mm | 0–400 mm | `l_1` 0–0.4 m |
|
||||
| 1 / joint 2 | Waist rotation | −140…+140° | ±160° | `l_2` ±2.7925 rad |
|
||||
| 2 / joint 3 | Head yaw (neck) | −180…+180° | ±180° | `l_3` ±3.1415 rad |
|
||||
| 3 / joint 4 | Head pitch | −5…+35° | −5…35° | `l_4` −0.0872…0.6108 rad |
|
||||
|
||||
The vendor web UI can show the lift above 300 mm (355 mm in a vendor screenshot), so some firmware accepts more; use 0–300 mm. The vendor demo config limits the lift to 0–200 mm.
|
||||
|
||||
**Lift limit on this robot: 0–105 mm.** The head camera's cable is too short for a higher lift. One constant sets it: `robot/head.py` `LIFT_MAX_MM` (the `moveto()` clamp, `tasks/fetch.py` `LIFT_RANGE` / `LIFT_TRIES` and the dashboard jog follow it).
|
||||
|
||||
Head yaw: the dashboard uses the full ±180°; the assistant's head tracking stays within `head.YAW_LIMIT` (±60°). The head pitch sign is not documented by the vendor.
|
||||
|
||||
---
|
||||
|
||||
## 1. Web page
|
||||
|
||||
Open `http://192.168.10.90:5000` → **ExtAxis**.
|
||||
|
||||
| Button | Chinese label in vendor docs | Action |
|
||||
|---|---|---|
|
||||
| Enable | 上使能 | Enable all 4 joints |
|
||||
| Disable | 下使能 | Disable |
|
||||
| Reset | 复位 | Clear joint errors |
|
||||
| Stop | 急停 | Emergency stop of the axes |
|
||||
|
||||
Below: the **Joint State** table (Joint, Enable, Error, Error Code, Position, Velocity, Torque) and a **Joint State Chart**. Side menu: HOME, ExtAxis, Upgrade (firmware upload). When the arm side reports an external-axis error, the reset is still done on this page (web doc 3.3.5).
|
||||
|
||||
---
|
||||
|
||||
## 2. HTTP API
|
||||
|
||||
Base URL: `http://192.168.10.90:5000/api/extaxis` (old documents: `http://10.5.5.100:5000/...`). JSON bodies, `Content-Type: application/json`.
|
||||
|
||||
| Method | Path | Body | Purpose |
|
||||
|---|---|---|---|
|
||||
| GET | `/sysinfo` | — | Version and serial number |
|
||||
| POST | `/reset` | `{}` | Clear joint errors |
|
||||
| POST | `/enable` | `{"enable": 1}` / `{"enable": 0}` | Enable / disable all 4 joints |
|
||||
| POST | `/moveto` | `{"pos": [lift_mm, waist_deg, head_yaw_deg, head_pitch_deg], "vel": 100, "acc": 100}` | Move all 4 joints. **Blocks** until the motion ends or fails |
|
||||
| POST | `/stop` | `{}` | Stop the current motion (used by the vendor ROS node; not in the written doc) |
|
||||
| GET | `/status` | — | Array of 4 joint objects |
|
||||
|
||||
`moveto` fields:
|
||||
|
||||
| Field | Meaning | Range |
|
||||
|---|---|---|
|
||||
| `pos` | Target `[lift, waist, head yaw, head pitch]` | Out-of-range values return an error |
|
||||
| `vel` | Speed ratio (%) | 0.1–100, clamped |
|
||||
| `acc` | Acceleration ratio (%) | 1–100, clamped |
|
||||
|
||||
Rules: enable first; every call sends all four values, so read `/status` and keep the joints you don't want to move at their current value.
|
||||
|
||||
Behaviour of the axes:
|
||||
|
||||
- After a power cycle of the controller all four joints are disabled (`"enable": false`) and every `moveto` times out until they are enabled. `robot/head.py` `moveto()` enables them first when any is off.
|
||||
- At its bottom stop the head pitch reads −5.003° (the lift can read −0.003 mm), just outside the API range; a `moveto` that sends such a value back is rejected. `moveto()` clamps every value into the API ranges.
|
||||
- The torso camera sits on the same link as the arm base, so the camera-to-arm calibration holds at any lift.
|
||||
|
||||
`/status` returns one object per joint: `id`, `pos` (mm or deg), `vel`, `toq` (torque), `enable`, `error`, `ecode`.
|
||||
|
||||
Responses (web doc 3.3.4):
|
||||
|
||||
```json
|
||||
{"message": "Axis enabled successfully", "status": 0}
|
||||
{"message": "Axis move successfully", "status": 0}
|
||||
```
|
||||
|
||||
`status` 0 = success; the vendor code treats `-1` as failure.
|
||||
|
||||
### curl
|
||||
|
||||
macOS / Linux:
|
||||
|
||||
```bash
|
||||
curl -s http://192.168.10.90:5000/api/extaxis/sysinfo
|
||||
curl -s -X POST http://192.168.10.90:5000/api/extaxis/reset -H "Content-Type: application/json" -d '{}'
|
||||
curl -s -X POST http://192.168.10.90:5000/api/extaxis/enable -H "Content-Type: application/json" -d '{"enable": 1}'
|
||||
curl -s http://192.168.10.90:5000/api/extaxis/status
|
||||
curl -s -X POST http://192.168.10.90:5000/api/extaxis/moveto -H "Content-Type: application/json" \
|
||||
-d '{"pos": [5, 0, 0, 0], "vel": 20, "acc": 20}'
|
||||
curl -s -X POST http://192.168.10.90:5000/api/extaxis/enable -H "Content-Type: application/json" -d '{"enable": 0}'
|
||||
```
|
||||
|
||||
Windows `cmd` (as in the vendor screenshot; `^` continues the line, inner quotes escaped):
|
||||
|
||||
```
|
||||
curl -X POST http://192.168.10.90:5000/api/extaxis/moveto ^
|
||||
-H "Content-Type: application/json" ^
|
||||
-d "{\"pos\": [5, 0, 0, 0], \"vel\": 100, \"acc\": 100}"
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
```python
|
||||
import requests
|
||||
|
||||
BODY = "http://192.168.10.90:5000/api/extaxis"
|
||||
|
||||
def body_status():
|
||||
joints = requests.get(f"{BODY}/status", timeout=2).json()
|
||||
return [j["pos"] for j in joints] # [lift mm, waist, head yaw, head pitch]
|
||||
|
||||
def body_enable(retries=5):
|
||||
"""Vendor pattern: reset, enable, check, repeat."""
|
||||
for _ in range(retries):
|
||||
requests.post(f"{BODY}/reset", json={}, timeout=2)
|
||||
requests.post(f"{BODY}/enable", json={"enable": 1}, timeout=2)
|
||||
if all(j["enable"] for j in requests.get(f"{BODY}/status", timeout=2).json()):
|
||||
return True
|
||||
return False
|
||||
|
||||
def body_moveto(lift=None, waist=None, head_yaw=None, head_pitch=None, vel=20, acc=20):
|
||||
current = body_status()
|
||||
target = [v if v is not None else c for v, c in zip((lift, waist, head_yaw, head_pitch), current)]
|
||||
r = requests.post(f"{BODY}/moveto", json={"pos": target, "vel": vel, "acc": acc}, timeout=120)
|
||||
r.raise_for_status() # returns when the move is finished
|
||||
return r.json()
|
||||
|
||||
def body_stop():
|
||||
requests.post(f"{BODY}/stop", json={}, timeout=2)
|
||||
```
|
||||
|
||||
Notes from the vendor code:
|
||||
|
||||
- Enabling can need retries (`jaka_integrated.py` tries 5 times).
|
||||
- `moveto` blocks for the whole motion, so give it a long HTTP timeout. A vendor comment says it "often gets no response": treat a timeout as "unknown", then read `/status`.
|
||||
- The vendor ROS node considers a move done when the lift is within 1 mm and the other joints within 1° of the target.
|
||||
|
||||
### Speeds
|
||||
|
||||
Not documented by the vendor. At `vel` 20 a 75 mm lift move takes about 5–9 s.
|
||||
|
||||
---
|
||||
|
||||
## 3. Cobo π external axes
|
||||
|
||||
On controllers with Cobo π the body joints are also registered as external axes of the arm controller:
|
||||
|
||||
1. `https://192.168.10.90` → log in.
|
||||
2. **Settings (设置) → Hardware & communication → External axis settings (外部轴设置)**: four axes of type "positioner" (变位机): 汇川升降 (Inovance lift), 腰 (waist), 脖子 (neck = head yaw), 头 (head = pitch), each with an enable switch.
|
||||
3. **Manual (手动) → External axis jog (外部轴调节)**: choose the axis, see the current position, type a target and press "Move to target" (移动至目标点), or hold − / +. Speed slider at the bottom.
|
||||
|
||||
The newer JAKA SDK (2.3.x, in the LumiCode branch `robohub`) has `ext_power_on`, `ext_enable_on`, `ext_jog_to(axis, pos, vel, acc)` for these axes; the vendor body node used axis 1 = head left/right, 2 = head up/down, 3 = waist left/right, 4 = waist up/down (lift) with ±10 / ±3 clamps. This path is optional; the HTTP API is the documented one.
|
||||
|
||||
---
|
||||
|
||||
## 4. ROS 2
|
||||
|
||||
From the JAKA_Lumi `feat_ros` branch (`jaka_lumi_ros`, ROS 2 Humble, C++ with libcurl, IP hard-coded to 192.168.10.90):
|
||||
|
||||
**`jaka_lumi_body_node`** (`ros2 launch jaka_lumi_body_node lumi_body_node.launch.py`)
|
||||
|
||||
| Interface | Type | Notes |
|
||||
|---|---|---|
|
||||
| `/joint_states` | topic `sensor_msgs/JointState` | `l_1` in metres, others in radians (converted from the API's mm/deg) |
|
||||
| `/lumi_body/enable` | `std_srvs/SetBool` | |
|
||||
| `/lumi_body/move` | `jaka_lumi_body_node/MoveService`: `float64[4] target` (mm, deg, deg, deg) → `bool success` | |
|
||||
| `/lumi_body/stop` | `std_srvs/Empty` | calls `/api/extaxis/stop` |
|
||||
| `/lumi_body/reset` | `std_srvs/Empty` | |
|
||||
| `/lumi_body/read_status` | `ReadStatusService` → `float64[4] position` | |
|
||||
|
||||
**`jaka_lumi_body_server`**: `FollowJointTrajectory` action server for MoveIt 2 (it also publishes the root of the TF tree, so start it before the arm server). See [09_ROS2_TELEOP_AND_SIM.md](09_ROS2_TELEOP_AND_SIM.md).
|
||||
|
||||
---
|
||||
|
||||
## 5. Bring-up sequence
|
||||
|
||||
1. Read only: `GET /sysinfo`, `GET /status` (firmware version, positions).
|
||||
2. `reset`, `enable`, then `status` until all `enable` are true.
|
||||
3. Slow moves with `vel=10`: head pitch 0 → 20 → 0; head yaw 0 → 30 → −30 → 0; waist 0 → 20 → −20 → 0; lift 0 → 50 → 0.
|
||||
4. `enable 0` at the end.
|
||||
+336
@@ -0,0 +1,336 @@
|
||||
# 04. Arm: JAKA Mini 2
|
||||
|
||||
How to control the 6-joint arm: the web/app UIs, the Python SDK (`jkrc`), the JSON command port, units, joint space, trajectories, safety settings and the tool connector. Hardware specs are in [01_HARDWARE.md](01_HARDWARE.md#2-arm-jaka-mini-2).
|
||||
|
||||
---
|
||||
|
||||
## 1. Ways to control the arm
|
||||
|
||||
| Tool | Use it for | How |
|
||||
|---|---|---|
|
||||
| **Cobo π** (web) | Power on/off, enable, jog, joint/TCP values, safety settings, external axes, programs | Browser → `https://192.168.10.90` → English → select robot → Administrator login |
|
||||
| **JAKA App 1.7.2** (Zu App) | Same, older UI; required for some settings on 1.7 controllers | https://www.jaka.com/download, join the robot Wi-Fi, connect |
|
||||
| **Python SDK `jkrc`** | Moves, trajectories, state | Section 3 |
|
||||
| **JSON command port** (TCP 10001) | Moves, kinematics, tool I/O without the SDK (used by `robot/arm.py`, `robot/gripper.py`) | Section 10 |
|
||||
| **ROS 2** (`jaka_lumi_minicobo_arm_server`) | MoveIt 2 trajectories | [09_ROS2_TELEOP_AND_SIM.md](09_ROS2_TELEOP_AND_SIM.md) |
|
||||
|
||||
Cobo π top bar: Home (首页), Programming (编程), Manual (手动), I/O panel, Settings (设置), Apps (应用); "Real robot" (真机) / simulation switch; checksum; **Power** (电源) and **Enable** (使能) switches on the right; 3PE indicator. The Manual page shows the 3D model, TCP X/Y/Z (mm) and RX/RY/RZ (deg) in the chosen frame ("World frame", "flange centre"), joint dials J1…J6 with a step selector and speed %.
|
||||
|
||||
### Power-on order
|
||||
|
||||
1. Base main switch on, base power button (see [00_START_HERE.md](00_START_HERE.md)). The robot controller and the arm need about **5 minutes** to be ready after power-on.
|
||||
2. In Cobo π or the App: **Power** on → ring light blue → **Enable** → ring light green.
|
||||
3. Power off in the reverse order: disable → power off. Never cut cabinet power while the arm is powered or enabled; wait 5–10 s after the cabinet shuts down before cutting power.
|
||||
|
||||
---
|
||||
|
||||
## 2. Controller versions: 1.7 vs 3.2
|
||||
|
||||
Differences that change how code must be written (JAKA web doc 3.3.5.3):
|
||||
|
||||
| | Controller 1.7 (e.g. 1.7.1-46-X64-minicab) | Controller 3.2 |
|
||||
|---|---|---|
|
||||
| SDK login | `login()` | `login(1)` (gRPC) |
|
||||
| Tool TIO RS485 communication | supported | not yet |
|
||||
| Servo mode (`servo_j`, `servo_p`) | supported | not yet |
|
||||
| VR teleoperation (vendor) | supported | not supported |
|
||||
| Cobo π | from 1.7.1 | yes |
|
||||
| SDK v2.2.7 | needs controller ≥ 1_7_2_28 | — |
|
||||
|
||||
The controller version is shown in Cobo π (About / settings) or the JAKA App (About). Vendor code uses both logins (`login(1)` in the BMW demo, `login_in(ip, true)` in the ROS arm server, `login()` in the pick demo): try `login()` first, then `login(1)`.
|
||||
|
||||
SDK compatibility (SDK 2.2.7 release notes): SDK 2.2.7 for controllers **1_7_2_28 and newer**; for 1_7_0_x and 1_5_x use SDK 2.1.11 or older.
|
||||
|
||||
---
|
||||
|
||||
## 3. Python SDK (`jkrc`)
|
||||
|
||||
### Get it
|
||||
|
||||
| Source | Contents |
|
||||
|---|---|
|
||||
| JAKA SDK v2.2.7 zip ([download](https://www.jaka.com/prod-api/common/download/resource?resource=%2Fprofile%2Fupload%2F2025%2F04%2F25%2F20250425134342A024.zip), 63 MB, contains `SDK V2.2.7.7z`) | `Linux/python3/{x86_64,aarch64,i686}-linux-gnu/{jkrc.so,libjakaAPI.so}`, Windows `jkrc.pyd`, C/C++ headers (`JAKAZuRobot.h` documents every function), release notes |
|
||||
| JAKA_Lumi repo `main` | `JAKA_Lumi_Demo_Case/compose/JAKA_SDK_LINUX_X86`, `JAKA_SDK_LINUX_ARM`, `JAKA_SDK_WINDOWS` |
|
||||
| jaka-robot-demos `dev/jamie` | `LUMI_DEMO-v1/JAKA_SDK_LINUX/jkrc.pyi` (type stubs with Python signatures) |
|
||||
| JAKA_Lumi `LumiCode` | `Lumi_Training/JAKASDK/JAKA PythonSDK.pdf` (Python SDK manual v2.1.9, Chinese, 74 pages) |
|
||||
|
||||
**No macOS build.** On an Apple Silicon Mac run it in an arm64 Linux container and use the `aarch64-linux-gnu` files:
|
||||
|
||||
```bash
|
||||
# on the Mac (Docker Desktop), from this repo
|
||||
docker run -it --rm --network host -v "$PWD":/work -w /work arm64v8/python:3.10 bash
|
||||
# inside the container
|
||||
export LD_LIBRARY_PATH=/work/jaka_sdk/aarch64:$LD_LIBRARY_PATH # folder with jkrc.so + libjakaAPI.so
|
||||
python3 -c "import sys; sys.path.insert(0,'/work/jaka_sdk/aarch64'); import jkrc; print(jkrc)"
|
||||
```
|
||||
|
||||
(Docker Desktop's `--network host` needs Docker Desktop 4.34+ with host networking enabled; otherwise the container still reaches `192.168.10.90` through NAT, which is enough for the SDK client.) On aarch64 and x86-64 Linux it runs natively:
|
||||
|
||||
```bash
|
||||
export LD_LIBRARY_PATH=/path/to/JAKA_SDK_LINUX:$LD_LIBRARY_PATH
|
||||
python3 -c "import jkrc"
|
||||
```
|
||||
|
||||
### Return values and units
|
||||
|
||||
Every call returns a tuple; `ret[0] == 0` is success, data is in `ret[1]`.
|
||||
|
||||
| Quantity | Unit |
|
||||
|---|---|
|
||||
| Joint angles | **rad** |
|
||||
| Joint speed / acceleration | rad/s, rad/s² |
|
||||
| Cartesian position | **mm** |
|
||||
| Cartesian orientation | rad (RX, RY, RZ). Cobo π displays degrees |
|
||||
| Linear speed / acceleration | mm/s, mm/s² |
|
||||
| Payload | kg, centroid mm |
|
||||
| Servo period | `step_num × 8 ms` |
|
||||
|
||||
`move_mode`: `0` ABS, `1` INCR, `2` CONTINUE. `coord_type`: `0` base/user, `1` joint, `2` tool.
|
||||
|
||||
### Signatures (from `jkrc.pyi` and the Python manual)
|
||||
|
||||
```python
|
||||
robot = jkrc.RC("192.168.10.90")
|
||||
robot.login() # 1.7 controller; on 3.2 use robot.login(1) (stub name: log_in(use_grpc=0))
|
||||
robot.logout()
|
||||
robot.power_on(); robot.power_off(); robot.shut_down()
|
||||
robot.enable_robot(); robot.disable_robot()
|
||||
|
||||
robot.joint_move(joint_pos, move_mode, is_block, speed) # rad, rad/s
|
||||
robot.joint_move_extend(joint_pos, move_mode, is_block, speed, acc, tol)
|
||||
robot.linear_move(end_pos, move_mode, is_block, speed) # [x,y,z mm, rx,ry,rz rad], mm/s
|
||||
robot.linear_move_extend(end_pos, move_mode, is_block, speed, acc, tol)
|
||||
robot.linear_move_extend_ori(end_pos, move_mode, is_block, speed, acc, tol, ori_vel=pi, ori_acc=4*pi)
|
||||
robot.circular_move(end_pos, mid_pos, move_mode, is_block, speed, acc, tol)
|
||||
robot.jog(aj_num, move_mode, coord_type, jog_vel, pos_cmd=0); robot.jog_stop(jnum)
|
||||
robot.motion_abort()
|
||||
|
||||
robot.servo_move_enable(True/False); robot.is_in_servomove()
|
||||
robot.servo_j(joint_pos, move_mode, step_num) # period = step_num * 8 ms
|
||||
robot.servo_p(end_pos, move_mode, step_num)
|
||||
robot.servo_move_use_none_filter()
|
||||
robot.servo_move_use_joint_LPF(cutoff_hz)
|
||||
robot.servo_move_use_joint_NLF(max_vr, max_ar, max_jr)
|
||||
robot.servo_move_use_carte_NLF(max_vp, max_ap, max_jp, max_vr, max_ar, max_jr)
|
||||
robot.edg_init(en, edg_stat_ip); robot.edg_servo_j(...); robot.edg_servo_p(...)
|
||||
|
||||
robot.get_joint_position() # (0, (j1..j6)) rad, commanded
|
||||
robot.get_actual_joint_position()
|
||||
robot.get_tcp_position() # (0, (x,y,z mm, rx,ry,rz rad))
|
||||
robot.get_actual_tcp_position()
|
||||
robot.get_robot_status() # (0, list) see below
|
||||
robot.kine_forward(joint_pos); robot.kine_inverse(ref_joint_pos, cartesian_pose)
|
||||
|
||||
robot.get_digital_input(type, index); robot.set_digital_output(type, index, value)
|
||||
robot.get_analog_input(type, index); robot.set_analog_output(type, index, value)
|
||||
robot.get_tool_id(); robot.set_tool_id(id); robot.set_tool_data(id, tcp, name)
|
||||
robot.set_payload(...); robot.set_collision_level(level); robot.collision_recover(); robot.clear_error()
|
||||
robot.drag_mode_enable(bool); robot.is_in_drag_mode()
|
||||
robot.program_load(name); robot.program_run(); robot.program_pause(); robot.program_resume(); robot.program_abort()
|
||||
robot.get_sdk_version(); robot.get_last_error(); robot.set_error_handler(func)
|
||||
```
|
||||
|
||||
### `get_robot_status()` list (Python manual 4.4.1)
|
||||
|
||||
| Index | Field | Index | Field |
|
||||
|---|---|---|---|
|
||||
| 0 | errcode (0 = OK) | 13 | ain (cabinet analog in) |
|
||||
| 1 | inpos (motion reached) | 14 | tio_dout |
|
||||
| 2 | powered_on | 15 | tio_din |
|
||||
| 3 | enabled | 16 | tio_ain |
|
||||
| 4 | rapidrate | 17 | extio |
|
||||
| 5 | protective_stop (collision) | **18** | **cart_position** (TCP pose) |
|
||||
| 6 | drag_status | **19** | **joint_position** |
|
||||
| 7 | on_soft_limit | 20 | robot_monitor_data (temperatures, voltages, currents per joint) |
|
||||
| 8 | current_user_id | 21 | torq_sensor_monitor_data |
|
||||
| 9 | current_tool_id | 22 | is_socket_connect |
|
||||
| 10 | dout (cabinet) | 23 | emergency_stop |
|
||||
| 11 | din (cabinet) | 24 | tio_key (`[0]` FREE, `[1]` POINT, `[2]` light button) |
|
||||
| 12 | aout (cabinet) | | |
|
||||
|
||||
Status data refreshes every 4 ms by default.
|
||||
|
||||
### Minimal session
|
||||
|
||||
```python
|
||||
import math, jkrc
|
||||
|
||||
robot = jkrc.RC("192.168.10.90")
|
||||
ret = robot.login()
|
||||
if ret[0] != 0:
|
||||
ret = robot.login(1) # controller 3.2
|
||||
assert ret[0] == 0, ret
|
||||
robot.power_on() # ~8 s
|
||||
robot.enable_robot() # ~4 s
|
||||
robot.set_collision_level(1) # 25 N, most sensitive
|
||||
robot.set_network_exception_handle(100, 2) # abort motion if the SDK link drops for 100 ms
|
||||
|
||||
print("joints (deg):", [round(math.degrees(a), 2) for a in robot.get_joint_position()[1]])
|
||||
print("tcp:", robot.get_tcp_position()[1])
|
||||
|
||||
# one joint, +5 degrees, slowly, relative move
|
||||
robot.joint_move([0, 0, 0, 0, 0, math.radians(5)], 1, True, 0.2)
|
||||
|
||||
robot.disable_robot()
|
||||
robot.power_off()
|
||||
robot.logout()
|
||||
```
|
||||
|
||||
Speeds are in rad/s (convert from deg/s with `deg / 180 * pi`); start at 0.2–0.5 rad/s.
|
||||
|
||||
---
|
||||
|
||||
## 4. Joint space: URDF = SDK (high confidence)
|
||||
|
||||
URDF joint angles and SDK joint angles are the same numbers:
|
||||
|
||||
- The vendor's ROS arm server (`feat_ros/jaka_lumi_minicobo_arm_server`) sends MoveIt trajectories for `l_a1…l_a6` to `servo_j` unchanged and publishes `get_joint_position()` as `l_a1…l_a6` unchanged.
|
||||
- Forward kinematics of the official URDF (`jaka_lumi.urdf`, identical in JAKA_Lumi `feat_ros`) matches the controller's flange distance from the arm base within about 1 mm. Cobo π's "World" frame includes the mounting angle, so its xyz components are not directly comparable with the URDF base frame.
|
||||
|
||||
Before sending URDF-computed angles (MoveIt or own IK) to the robot, run the per-joint direction check in section 9.
|
||||
|
||||
Known poses (degrees, SDK = URDF joint space):
|
||||
|
||||
| Pose | J1…J6 | Source |
|
||||
|---|---|---|
|
||||
| Factory initial position ("手臂出厂初始位置") | `[0, 120, -120, 0, -90, 0]` | BMW demo |
|
||||
| Pick demo home / pick / place | `[0, 110, -100, 0, -80, -50]`, `[0, 110, -100, 0, 0, -50]`, `[0, 110, -100, 0, -10, -50]` | JAKA_Lumi `feat_demo/body_head/2_moveto.py` |
|
||||
| Teleop "E demo vertical" default | `[18.24, -80.54, -49.54, -16.99, -78.43, 0]` (rad `[0.3183, -1.4058, -0.8646, -0.2966, -1.3689, 0]`) | LumiCode `teleoperation_control_lumi.py` |
|
||||
| Vision demo start pose | rad `[1.780, -0.532, -1.075, -0.554, -1.192, 1.244]` | LUMI_DEMO-v1 config |
|
||||
| MoveIt SRDF `pose_1` | `[0, 0, -90, 0, -90, 0]` | `jaka_lumi.srdf` |
|
||||
|
||||
---
|
||||
|
||||
## 5. Trajectories
|
||||
|
||||
| Method | When | Notes |
|
||||
|---|---|---|
|
||||
| `joint_move` (blocking) | Point-to-point, safest | Controller plans the profile. `set_motion_planner(0)` T-curve (speed first) or `1` S-curve (smooth first) |
|
||||
| `linear_move` | Straight TCP line (approach/retreat) | Avoid near wrist singularities; prefer joint moves when orientation changes a lot |
|
||||
| `circular_move` | Arcs | |
|
||||
| `servo_j` streaming | Own trajectories (sampled at 8 ms × n), tracking, MoveIt | Needs servo mode (controller 1.7; **3.2 not yet**). Send the next point immediately; set a filter first |
|
||||
| ROS 2 `FollowJointTrajectory` | Plan in MoveIt, execute on the robot | Arm server: servo_j with `step_num = dt / 0.008`, filter `servo_move_use_joint_LPF(0.5)` |
|
||||
|
||||
Servo-mode recipe (as in the vendor ROS server and teleop):
|
||||
|
||||
```python
|
||||
robot.servo_move_enable(False)
|
||||
robot.servo_move_use_joint_LPF(0.5) # or servo_move_use_joint_NLF(60, 60, 60) as in teleop
|
||||
robot.servo_move_enable(True)
|
||||
for q in trajectory_rad: # one point every 8 ms * step_num
|
||||
robot.servo_j(q, 0, 1) # absolute, 8 ms
|
||||
robot.servo_move_enable(False)
|
||||
```
|
||||
|
||||
Teleop also uses Cartesian servo: `servo_move_use_carte_NLF(500, 250, 250, 500, 250, 250)` and `servo_p(pose, 0, step_num)`.
|
||||
|
||||
---
|
||||
|
||||
## 6. Function reference (C++ header, SDK 2.2.7)
|
||||
|
||||
Names are the same in Python.
|
||||
|
||||
| Group | Functions |
|
||||
|---|---|
|
||||
| Connection, power | `login_in`/`login`, `login_out`/`logout`, `power_on`, `power_off`, `shut_down`, `enable_robot`, `disable_robot`, `get_sdk_version`, `get_controller_ip`, `set_network_exception_handle(ms, 0 keep / 1 pause / 2 abort)`, `set_debug_mode`, `set_SDK_filepath`, `set_errorcode_file_path`, `get_last_error` |
|
||||
| State | `get_robot_status`, `get_robot_status_simple` (errcode, errmsg, powered_on, enabled), `get_robot_state` (estoped, poweredOn, servoEnabled), `get_joint_position`, `get_actual_joint_position`, `get_tcp_position`, `get_actual_tcp_position`, `get_motion_status`, `is_in_pos`, `is_in_estop`, `is_on_limit`, `is_in_collision`, `get_dh_param`, `get_installation_angle`, `set_installation_angle(x, z)` |
|
||||
| Motion | `joint_move(pos, mode, block, speed, acc=3.5, tol=0)`, `linear_move(pos, mode, block, speed, accel=500, tol=0, ori_vel=3.14, ori_acc=12.56)`, `circular_move`, `jog`, `jog_stop`, `motion_abort`, `set_rapidrate(0..1)`, `set_motion_planner(-1/0/1)`, `kine_forward`, `kine_inverse` (nearest to the reference joints, error −4 if none), rotation conversions |
|
||||
| Servo | `servo_move_enable`, `is_in_servomove`, `servo_j`, `servo_p`, filters (`none`, `joint_LPF`, `joint_NLF`, `carte_NLF`, `joint_MMF`, `speed_foresight`), EDG (`edg_init`, `edg_servo_j`, `edg_servo_p`, `edg_get_stat`) |
|
||||
| Frames, tool, payload | `set_tool_data`, `set_tool_id`, `get_tool_data`, `get_tool_id`, `set_user_frame_data`, `set_user_frame_id`, `set_payload(mass kg, centroid mm)`, `get_payload` |
|
||||
| Safety, drag | `set_collision_level` (0 off, 1 25 N, 2 50 N, 3 75 N, 4 100 N, 5 125 N), `collision_recover`, `clear_error`, `drag_mode_enable`, `is_in_drag_mode`, `set_motion_limit_warning_range` |
|
||||
| I/O | `set_digital_output(type, index, value)`, `get_digital_input`, analog in/out, multi-channel variants; types `0` cabinet, `1` tool, `2` extend, `3` relay, `4` Modbus slave, `5` PROFINET, `6` EtherNet/IP |
|
||||
| Tool RS485 (grippers) | `set_tio_vout_param(enable, 0=24V/1=12V)`, `set_tio_pin_mode`, `set_rs485_chn_comm`, `set_rs485_chn_mode`, `send_tio_rs_command`, `add_tio_rs_signal`, `get_rs485_signal_info` |
|
||||
| Other | trajectory recording, controller programs, user variables, FTP, force-torque sensor and force control |
|
||||
|
||||
### Error codes
|
||||
|
||||
| Code | Meaning | Code | Meaning |
|
||||
|---|---|---|---|
|
||||
| 0 | success | −16 | FK error |
|
||||
| 2 | call error / not supported by controller | −20 | protective stop |
|
||||
| −1 | invalid handle (not logged in) | −21 | emergency stop |
|
||||
| −3 | connection failed | −22 | on soft limit |
|
||||
| −4 | no IK solution | −40 / −41 / −42 | linear / joint / arc move error |
|
||||
| −5 | E-stop pressed | −50 | blocking wait timeout |
|
||||
| −6 | not powered | −51…−56 | power on/off, enable/disable, user frame, tool timeouts |
|
||||
| −7 | not enabled | −57 / −58 | EDG init failed / EDG running |
|
||||
| −8 | not in servo mode | −60 / −61 | IO / operation timeout |
|
||||
| −9 | must disable first | −9997 / −9998 / −9999 | not implemented / deprecated / obsolete |
|
||||
| −10 | program running | | |
|
||||
| −12 | motion abnormal | | |
|
||||
|
||||
Full list: https://www.jaka.com/docs/en/guide/errinfo.html
|
||||
|
||||
---
|
||||
|
||||
## 7. Settings in Cobo π / JAKA App
|
||||
|
||||
- **Mounting** (Settings → Operation → Mounting): the arm is mounted on the side of the column (Mounting Orientation Y 90°; do not change it). The 3D model in the UI must match the real arm before moving. The "World" frame shown in the UI includes this mounting angle.
|
||||
- **Payload** (Settings → Operation → Payload): mass and centre of mass of whatever is on the flange. Wrong values cause false collisions or drift in drag mode. Gripper payload: [10_GRIPPER.md §4](10_GRIPPER.md#4-payload-and-tcp).
|
||||
- **TCP** (Settings → Operation → TCP, 15 slots): default tool = flange centre (+Z out of the flange, −Y toward the TIO connector).
|
||||
- **Collision**: force / momentum / TCP speed / power limits; rebound 0–3°. While a program runs, ~1° joint deviation stops the robot, ~3.6° stops and disables it.
|
||||
- **Joint limits** (Safety → Joint Limit): soft limits and speed limit per joint, within the factory range.
|
||||
- **Safety zones are NOT active in SDK control mode** (only while a UI program runs). Control code must check its own workspace.
|
||||
- **Real / Simulation** switch: hardware-in-the-loop simulation on the real controller (arm must be off and disabled to switch). Useful for dry runs.
|
||||
- **Freedrive limit**: TCP speed in drag mode 50–1500 mm/s.
|
||||
- **Initial orientation**: user-defined safe pose (Home button).
|
||||
- **Brake voltage**: required with an external power supply (MiniCab).
|
||||
- **Monitoring** page: per-joint current, voltage, temperature, torque as % of alarm thresholds.
|
||||
- **Stored programs** (`.jks`) run from wherever the arm stands: start one only from a known pose with a checked route.
|
||||
|
||||
---
|
||||
|
||||
## 8. Tool I/O connector (M8, 8-pin, TIO V3)
|
||||
|
||||
| Pin | Signal | Wire | Notes |
|
||||
|---|---|---|---|
|
||||
| 1 | +24 V | red | 24 V / 12 V selectable or off; 1 A continuous, 2 A peak |
|
||||
| 2 | DI1 | blue | NPN / PNP |
|
||||
| 3 | DI2 | green | NPN / PNP |
|
||||
| 4 | DO1 / RS485-1 A+ | yellow | NPN / PNP / push-pull, ≤ 1 A |
|
||||
| 5 | DO2 / RS485-1 B− | pink | NPN / PNP / push-pull, ≤ 1 A |
|
||||
| 6 | AIN1 / RS485-2 A+ | brown | 0–10 V (reads 0–4096; idle ≈ 400–800) |
|
||||
| 7 | AIN2 / RS485-2 B− | white | 0–10 V |
|
||||
| 8 | GND | gray | |
|
||||
|
||||
RS485 channel 1 (on the DO pins, high speed): Modbus RTU grippers, JAKA torque sensor; baud up to 230400, 8/9 data bits, 1/2 stop bits, odd/even/none parity. Channel 2 (on the AI pins): low speed. Gripper wiring and signals: [10_GRIPPER.md](10_GRIPPER.md).
|
||||
|
||||
---
|
||||
|
||||
## 9. First-session arm tests
|
||||
|
||||
Commissioning checks before running own motions:
|
||||
|
||||
1. Cobo π: note controller version, arm model, joint limits and joint speed limits, mounting, payload.
|
||||
2. SDK: `login` (or `login(1)`), `get_sdk_version`, `get_robot_status_simple`, `get_joint_position`, `get_dh_param` (compare with the URDF).
|
||||
3. Collision level 1, payload = no tool.
|
||||
4. For each joint: `joint_move` INCR +5° at 0.2 rad/s, read `get_joint_position`, check that the joint turned in the positive direction of its URDF axis (and as Cobo π's 3D view shows); move back −5°.
|
||||
5. Go to the factory pose `[0, 120, -120, 0, -90, 0]°` slowly; compare the arm shape with Cobo π's 3D view and with the URDF at the same angles (e.g. in RViz: `ros2 launch jaka_lumi_description lumi_description.launch.py`).
|
||||
6. Only then run own poses and short trajectories; servo mode only if the controller supports it.
|
||||
|
||||
---
|
||||
|
||||
## 10. JSON command port (TCP 10001)
|
||||
|
||||
Protocol: [JAKA TCP/IP protocol 1.7.2](https://www.jaka.com/docs/legacy172/en/guide/1.7.2/tcpip.html). Commands are JSON objects with `cmdName`.
|
||||
|
||||
| Command / topic | Behaviour |
|
||||
|---|---|
|
||||
| `get_data` | Full state, including `actual_position` = [x, y, z mm, rx, ry, rz deg] of the flange in the arm base frame (fixed X-Y-Z roll-pitch-yaw, R = Rz·Ry·Rx) and tool I/O (`tio_dout`, `tio_din`, `tio_ain`). Some replies arrive without the state or tool I/O fields, or as the reply to another command: poll again |
|
||||
| `kine_forward`, `kine_inverse` | `jointPosition` deg, `cartPosition` mm / deg; `kine_inverse` answers `errorCode` −4 when there is no solution. `kine_inverse` may answer with 7 joint values (use the first 6); `kine_forward` may answer without `cartPosition` (ask again) |
|
||||
| `joint_move` | `relFlag`, `jointPosition`, `speed`, `accel` (°/s², vendor: keep below 720), `tol`, `executing_line_id`, `end_cond`. No jerk or smoothing field |
|
||||
| `moveL` | `relFlag` 0, `cartPosition`, `speed` mm/s, `accel`, `tol` |
|
||||
| `set_motion_planner` | `type` −1 (planner off), 0 (T-planning, trapezoid), 1 (S-planning, smooth start and stop). A controller setting |
|
||||
| `get_motion_state` | `queue`, `active_queue`, `queue_full`, `inpos`, `motion_line`, ... |
|
||||
| `stop_program` | Stops a running `joint_move` / `moveL` and empties the motion queue. The controller may also stop the arm and close the connection without a reply |
|
||||
| `motion_abort`, `get_motion_status`, `is_in_pos` | Not available on this port ("function call failed") |
|
||||
|
||||
**Motion queue.** `joint_move` and `moveL` answer at once; the controller runs each motion after the previous one has ended. `tol` is "the transition radius between motion paths", default 0 (mm in the `moveL` example). Moves queued back to back shake the whole robot at each via-point and reversal: send one move at a time and wait for it to settle.
|
||||
|
||||
**Speed.** Large joint moves run well below the commanded speed (for example J1 60° at 25–40 °/s takes 7–8 s); short moves (about 20°) run at about the commanded speed.
|
||||
|
||||
**Wrapped joints.** J1 / J4 / J6 can stand a full turn away from a stored value; `robot/motion.py` picks target ± 360° nearest to the current angle.
|
||||
|
||||
**Wrist.** Near J5 ≈ 0 a straight move can turn J4 and J6 about 110° against each other in small steps; `motion.move_linear(path_checked=True)` lets such a move through when the caller has checked the line in 20 steps.
|
||||
|
||||
Taught poses are in `data/arm_poses.json`.
|
||||
@@ -0,0 +1,302 @@
|
||||
# 05. Mobile base (AGV)
|
||||
|
||||
The base drives and navigates on its own (lidar SLAM). It is used two ways: the **web monitor** for mapping, markers and manual driving, and the **TCP API** from code. Specs are in [01_HARDWARE.md](01_HARDWARE.md#3-mobile-base-agv).
|
||||
|
||||
---
|
||||
|
||||
## 1. Power
|
||||
|
||||
1. First start: switch the main power switch underneath (next to the rear right caster) to **I** ("pull" it on).
|
||||
2. Hold the power button on the base: two short beeps, purple LED, release after the third, long beep; green flashing while booting; **white** when ready.
|
||||
3. Off: hold the button, seven short beeps, release on the eighth, long beep. Or "shutdown" in the web monitor, or `/api/shutdown`.
|
||||
4. Main switch to **O** if the robot stands for more than 30 days.
|
||||
|
||||
While the base is off but charging, its Wi-Fi may be visible, but nothing answers until it is switched on.
|
||||
|
||||
---
|
||||
|
||||
## 2. Web monitor (`http://192.168.10.10:9001`)
|
||||
|
||||
Use Chrome.
|
||||
|
||||
**Status bar (top left):** map name / floor, battery %, soft E-stop and hard E-stop state, move state (`idle`, `running`, ...), target marker, chassis serial number, software version.
|
||||
|
||||
**Top menu:** floor selector, track (keep the robot centred), laser, ultrasonic, infrared, 4g, **position correction**, **add marker** (at current position / at a chosen location), add line (no-go line), add zone, add route (beta), **control** (drive with the keyboard), measure, global path, particle cloud, log, other, **soft E-stop**.
|
||||
|
||||
**Bottom menu:** network, restart software, power off and restart, shutdown, update & diagnose, **map management**, configuration, sensor status, test tools, elevator tools, map tools, deployment-detection, robot-3d.
|
||||
|
||||
### 2.1 Prepare the area (web doc 3.4.1)
|
||||
|
||||
- Close the area with hard boards; avoid reflective material; boards must be at lidar height (inside the scan range).
|
||||
- Make it a closed polygon (a rectangle is best).
|
||||
|
||||
### 2.2 Create a map
|
||||
|
||||
1. Bottom menu → **map management** → tab **Map Creating**.
|
||||
2. Enter **Map Name** (e.g. `office_0301`) and **floor** (e.g. `1`) → **Create Map**.
|
||||
3. Choose the map size: **small map** (< 3600 m²), **middle map** (3600–10 000 m²), **big map** (> 10 000 m²). Tabs "v1 scanning / v2 scanning" are at the top.
|
||||
4. The map builder opens (port 8809). Drive the base by hand with the keyboard: **i** forward, **k** back, **j** turn left, **l** turn right. Keep about 0.5 m from the walls, steady speed (≤ 0.5 m/s; slider at the top), turn 360° in each corner to help feature matching. ("start" on the right runs an automatic scan; manual driving is recommended.)
|
||||
5. Watch "optimizing progress"; press **Save** when done. A page `192.168.10.10:8809/map-build/map.html?hotelid=<map>&floor=1&map_type=v2` opens (buttons "continue scan" / "rescan"); close it.
|
||||
|
||||
### 2.3 Use the map
|
||||
|
||||
1. Map management → **Switch Map** → choose the map name and floor → **Apply** (the page `192.168.10.10:9001/robot-map-config.html`).
|
||||
2. Close map management and check the new map on the main page.
|
||||
|
||||
### 2.4 Position correction (relocalise)
|
||||
|
||||
When the robot icon on the map is not where the robot really is (for example after switching maps, after pushing it while off, or after starting away from the dock):
|
||||
|
||||
1. Top menu → **position correction**.
|
||||
2. Click at the robot's real position on the map and drag in the direction it faces.
|
||||
3. A dialog appears. Black lines = walls from the map; red = what the lidar sees now; purple = the copy you are moving.
|
||||
4. Move the purple copy onto the black lines with the buttons or keys: **i** up, **k** down, **j** left, **l** right, **u** rotate clockwise, **o** rotate counter-clockwise. Then **OK**.
|
||||
|
||||
It is enough to be within about 20 cm and 5°; the base refines the rest. If the robot is on its dock and a dock marker exists, it snaps to the dock marker automatically.
|
||||
|
||||
### 2.5 Add markers (named goals)
|
||||
|
||||
1. Drive to the place: top menu **control** on, keys **i / k / j / l**, then **control** off.
|
||||
2. Top menu **add marker → insert marker at current position** (or "at specified location": click and drag for the heading).
|
||||
3. In **edit marker**: **Marker type** and **Marker name** (≤ 50 characters), optional icon → **Save**.
|
||||
|
||||
Marker types:
|
||||
|
||||
| Type | Name | Attributes | Use |
|
||||
|---|---|---|---|
|
||||
| 0 | Normal point | — | Go to this pose, nothing else |
|
||||
| 3 | Lift outside | lift module number | Wait for and call the lift here |
|
||||
| 4 | Lift inside | lift module number | Position inside the lift (same relative position on every floor) |
|
||||
| 7 | Gate / door | ID, distance, one-way | Gate or automatic door control point; arrow at 90° to the passage |
|
||||
| 8 | Lift waiting point | lift number | Needed with several lifts and robots |
|
||||
| 11 | Charging dock | dock number, charging-pile type | Where the dock really stands; number from the dock's label |
|
||||
| 20 | Narrow-area waiting point | — | Wait outside a narrow area |
|
||||
| 76 | Slow-down point | ratio, distance, one-way | Slow down near slopes or thresholds (default ±50 cm) |
|
||||
|
||||
Example dock marker: type `11` → the name is filled in automatically (`charge_point_1F_<dock number>`), num = dock number, "common charging pile" → Save. Markers on the map are shown as `name[type][num]`. Every name must be unique (also across floors).
|
||||
|
||||
### 2.6 Drive and navigate from the web page
|
||||
|
||||
- **control** mode: keys **i j k l**, or click a point on the map to drive there.
|
||||
- Navigation test: right-click a target on the map; the base plans a green path and drives.
|
||||
- One marker: show it ("display point") and send the move. Several markers: **test tools** → choose markers, repeat count → run.
|
||||
|
||||
---
|
||||
|
||||
## 3. TCP API
|
||||
|
||||
### Protocol
|
||||
|
||||
- TCP client to **`192.168.10.10:31001`** (or the base's LAN IP when it joined another Wi-Fi via the API). Socket, not serial.
|
||||
- Commands are URL-like strings; replies are JSON.
|
||||
- Add `uuid=<anything>` to a command and the reply carries it back.
|
||||
- Reply `type`: `response` (to your command), `callback` (data you subscribed to), `notification` (events pushed to all clients).
|
||||
- Reply `status`: `OK`, `INVALID_REQUEST`, `REQUEST_DENIED`, `UNKNOWN_ERROR`, `GOAL_CAN_NOT_BE_REACHED`; reason in `error_message`.
|
||||
|
||||
```python
|
||||
import json, socket, uuid
|
||||
|
||||
AGV = ("192.168.10.10", 31001)
|
||||
|
||||
def agv(command, timeout=5.0):
|
||||
"""Send one command, return its response (skips callbacks/notifications on the same socket)."""
|
||||
tag = uuid.uuid4().hex
|
||||
command += ("&" if "?" in command else "?") + f"uuid={tag}"
|
||||
buf = ""
|
||||
with socket.create_connection(AGV, timeout=timeout) as sock:
|
||||
sock.sendall(command.encode())
|
||||
dec = json.JSONDecoder()
|
||||
while True:
|
||||
buf += sock.recv(65536).decode()
|
||||
while buf.strip():
|
||||
try:
|
||||
msg, end = dec.raw_decode(buf.lstrip())
|
||||
except json.JSONDecodeError:
|
||||
break # partial message, read more
|
||||
buf = buf.lstrip()[end:]
|
||||
if msg.get("type") == "response" and msg.get("uuid") == tag:
|
||||
return msg
|
||||
|
||||
print(agv("/api/robot_status"))
|
||||
```
|
||||
|
||||
### Direct velocity control: `/api/joy_control`
|
||||
|
||||
```
|
||||
/api/joy_control?linear_velocity=0.2&angular_velocity=0.5
|
||||
```
|
||||
|
||||
| Parameter | Unit | Range | Sign |
|
||||
|---|---|---|---|
|
||||
| `linear_velocity` | m/s | −0.5…0.5 (clamped) | + forward |
|
||||
| `angular_velocity` | rad/s | −1.0…1.0 (clamped) | + turn left (counter-clockwise) |
|
||||
|
||||
- **One command lasts 0.5 s**, then the base stops. Send at > 2 Hz (10 Hz recommended) for continuous motion.
|
||||
- Overrides navigation (`/api/move`).
|
||||
- Vendor keyboard example: every 0.1 s, v = 0.5 m/s, w = 0.3 rad/s.
|
||||
|
||||
```python
|
||||
import time
|
||||
def drive(v, w, seconds, rate=10):
|
||||
t_end = time.time() + seconds
|
||||
while time.time() < t_end:
|
||||
agv(f"/api/joy_control?angular_velocity={w}&linear_velocity={v}")
|
||||
time.sleep(1 / rate)
|
||||
```
|
||||
|
||||
### Navigation
|
||||
|
||||
| Command | Parameters | Notes |
|
||||
|---|---|---|
|
||||
| `/api/move?marker=NAME` | `marker`, or `location=x,y,theta` (map frame, m, rad); optional `max_continuous_retries` (30), `distance_tolerance` (m), `theta_tolerance` (unit: degrees in the official manual, radians in a translation; not confirmed), `angle_offset` (rad, −3.14…3.14), `yaw_goal_reverse_allowed` (1/0), `occupied_tolerance` (m) | Plans a path and avoids obstacles. Returns `task_id`. Rejected while another move is `running` |
|
||||
| `/api/move?markers=m1,m2,m3&count=-1&distance_tolerance=1.0` | ≥ 2 markers, count (−1 forever; default 1), tolerance ≥ 0.5 m (default 0.5), `max_continuous_retries` (default 5) | Patrol; a failed point is skipped and the patrol continues; stop it with `/api/move/cancel` |
|
||||
| `/api/move/cancel` | — | Stop the task and stay (the manual: stops on the spot and waits for the next move). The manual v1.8.8 has no pause / resume command and no footprint, padding or inflation parameter on `/api/move` or `/api/set_params` (only `max_speed_linear`, `max_speed_angular`; `occupied_tolerance` is how near an occupied goal it may stop) |
|
||||
| `/api/get_planned_path` | — | Points of the current global path |
|
||||
| `/api/make_plan?start_x=..&start_y=..&start_floor=..&goal_x=..&goal_y=..&goal_floor=..` | | Path length between two points |
|
||||
|
||||
Wait for a move to finish (vendor pattern): poll `/api/robot_status` every 0.1–0.5 s until `results.move_status == "succeeded"` (or `failed` / `canceled`).
|
||||
|
||||
### State
|
||||
|
||||
| Command | Returns |
|
||||
|---|---|
|
||||
| `/api/robot_status` | `move_target`, `move_status` (`idle` / `running` / `succeeded` / `failed` / `canceled`), `running_status` (e.g. `leave_charging_pile`, `dock_to_charging_pile`, lift states), `move_retry_times`, `charge_state`, `soft_estop_state`, `hard_estop_state`, `estop_state`, `power_percent`, `current_pose {x, y, theta}` (m, rad), `current_floor`, `chargepile_id`, `error_code`. Poll at 1–2 Hz |
|
||||
| `/api/robot_info` | `product_id` |
|
||||
| `/api/get_power_status` | `battery_capacity` %, `battery_current` (A, + charging), `battery_voltage`, `charge_voltage`, `charger_connected_notice`, `head_current` |
|
||||
| `/api/diagnosis/get_result` | Self-test: sensor board, motor boards, radio, power, depth camera, laser, IMU, CAN, internet |
|
||||
| `/api/software/get_version` | Software version (`check_for_update`, `update`, `restart` also exist) |
|
||||
|
||||
### Real-time streams: `/api/request_data?topic=...&frequency=Hz`
|
||||
|
||||
| Topic | Default | Data |
|
||||
|---|---|---|
|
||||
| `robot_status` | 2 Hz | as `/api/robot_status` |
|
||||
| `human_detection` | 1 Hz | `"legtrack N": {"position": {x, y}, "velocity": {x, y}}` in the robot frame (x ahead, right-handed, so y left). **Needs the leg-tracking module configured and enabled** |
|
||||
| `robot_velocity` | 1 Hz | `linear` (m/s, + forward), `angular` (rad/s, + left) |
|
||||
|
||||
Keep the socket open to receive the callbacks.
|
||||
|
||||
### Markers
|
||||
|
||||
| Command | Notes |
|
||||
|---|---|
|
||||
| `/api/markers/insert?name=N&type=0&num=1` | At the current pose. Custom types > 1000 |
|
||||
| `/api/markers/insert_by_pose?name=N&x=..&y=..&theta=..&floor=..` | At given coordinates |
|
||||
| `/api/markers/query_list`, `/api/markers/query_brief`, `/api/markers/count` | List |
|
||||
| `/api/markers/delete?name=N` | Delete |
|
||||
| `/api/position_adjust?marker=N`, `/api/position_adjust_by_pose?x=..&y=..&theta=..` | Relocalise (only after drift) |
|
||||
|
||||
### Settings and other
|
||||
|
||||
| Command | Notes |
|
||||
|---|---|
|
||||
| `/api/set_params?max_speed_linear=0.3&max_speed_angular=0.5` | 0.1–1.0 m/s, 0.5–3.5 rad/s; reset at restart; always answers `OK`, confirm with `/api/get_params` |
|
||||
| `/api/estop?flag=true` / `false` | Software E-stop (motors free, base can be pushed). Separate from the hardware E-stop; neither releases the other; reset to false at restart |
|
||||
| `/api/map/list`, `/api/map/get_current_map` (resolution, width, height, origin), `/api/map/set_current_map?map_name=..&floor=..`, `/api/map/list_info` | Maps (setting a map restarts the base service) |
|
||||
| `/api/map/accessible_point_query?x=..&y=..`, `/api/map/distance_probe?x=..&y=..` | Nearest reachable point; distance to obstacles |
|
||||
| `/api/LED/set_color?r=..&g=..&b=..` (0–100), `/api/LED/set_luminance?value=..` | Base LED strip |
|
||||
| `/api/shutdown?reboot=false&delay=0` | Off after 10 s |
|
||||
| `/api/wifi/list`, `/api/wifi/connect`, `/api/wifi/get_active_connection`, `/api/wifi/info`, `/api/wifi/detail_list` | Base Wi-Fi |
|
||||
| `/api/lift_status` | Only while riding a lift |
|
||||
|
||||
**Notifications** (pushed; do not use for flow control): full code list in [3.2](#32-further-details-from-the-agv-api-manual).
|
||||
|
||||
|
||||
### 3.1 Differences on this base
|
||||
|
||||
Base software 0.10.351.1D is newer than the API manual: `task_id` comes inside `results`, and `robot_status` has extra fields (`chassis_lift_state`, `collision_state`, `hall_state`, `hand_charge`, `hard_estop_abolish_state`, `is_paused`, `extraData`, `outTaskId`, `target_floor`, `task_id`, `ts`).
|
||||
|
||||
### 3.2 Further details from the AGV API manual
|
||||
|
||||
Source: `AGV API手册.pdf` (69 pages, Chinese; document v1.8.8 of 2022-03-18, in the JAKA_Lumi repo). Some fields differ on this base (3.1).
|
||||
|
||||
**Protocol notes**
|
||||
|
||||
- Replies are JSON; fields at the same level have no fixed order, parse them with a JSON parser.
|
||||
- Socket is recommended; a serial link is also possible but can corrupt data.
|
||||
- Old address format: since v1.4.0 the `http://192.168.10.10:8808` prefix was dropped from the commands, and the manual says the original format "can still be used", i.e. `http://192.168.10.10:8808/api/robot_status` over HTTP. Not confirmed on this base.
|
||||
- `error_code` in `robot_status`: hexadecimal string of 8 bytes; anything other than `"00000000"` means a fault.
|
||||
|
||||
**`running_status` values** (`move_status` in brackets): `idle` (idle/succeeded/failed/canceled), `leave_charging_pile`, `dock_to_charging_pile`, `leave_container`, `dock_to_container`, `leave_cabin`, `dock_to_cabin`, `goto_lift`, `wait_lift_unlock`, `wait_lift_outside`, `enter_lift`, `avoid_lift`, `take_lift`, `exit_lift`, `back_to_lift` (all running), `running` (any other running state). Do not cancel a move during `enter_lift`, `avoid_lift`, `take_lift`, `exit_lift`.
|
||||
|
||||
**`/api/robot_info`** → `{"results": {"product_id": "WATER-xxxx-xxxxx"}}` (base serial; software ≥ 0.6.3.3).
|
||||
|
||||
**Markers**
|
||||
|
||||
| Command | Parameters | Reply |
|
||||
|---|---|---|
|
||||
| `/api/markers/insert` | `name` (no special characters), `type` (int, default 0), `num` (int, default 1) | marker at the current pose and floor. Examples: `?name=205_room`, `?name=charge_dock_2&type=11` |
|
||||
| `/api/markers/insert_by_pose` | `name` (an existing name is updated), `x`, `y` (map, float), `theta` (float, −π…π), `floor` (int ≠ 0, default current floor), `type` (default 0), `num` (default 1) | `?name=205_room&x=-0.1&y=1.0&theta=0.0&floor=2&type=0` |
|
||||
| `/api/markers/query_list` | `floor` (optional; all floors otherwise) | `results` = `{name: {"floor", "pose": {"orientation": {x, y, z, w}, "position": {x, y, z}}, "key": type, "marker_name"}}`; `null` if there are no markers. This base also returns `avatar` (icon) |
|
||||
| `/api/markers/count` | — | `{"results": {"count": 10}}` |
|
||||
| `/api/markers/query_brief` | — | `{"results": {"meeting_room": "0-1", ...}}` = `"type-floor"` per name |
|
||||
| `/api/markers/delete` | `name` | `OK`; unknown name → `status: "INVALID_REQUEST"`, `error_message: "Marker Not Found"` |
|
||||
|
||||
Marker types usable through the API: `0` normal, `1` front desk, `3` lift outside, `4` lift inside, `7` gate, `11` charging dock; other types should be created in the web monitor. Custom types must be > 1000.
|
||||
|
||||
Quaternion → `theta` (from the manual):
|
||||
|
||||
```python
|
||||
import math
|
||||
def quat_to_theta(z, w):
|
||||
theta = 2 * math.atan2(z, w)
|
||||
if math.pi < theta <= 2 * math.pi:
|
||||
theta -= 2 * math.pi
|
||||
elif -2 * math.pi <= theta < -math.pi:
|
||||
theta += 2 * math.pi
|
||||
return theta
|
||||
```
|
||||
|
||||
**Wi-Fi of the base**
|
||||
|
||||
| Command | Parameters | Reply |
|
||||
|---|---|---|
|
||||
| `/api/wifi/list` | — | `{"SSID1": 50, ...}` (SSID → signal strength) |
|
||||
| `/api/wifi/connect` | `SSID`, `password` (optional if connected before) | joins / switches the environment Wi-Fi |
|
||||
| `/api/wifi/get_active_connection` | — | current SSID, `""` if none |
|
||||
| `/api/wifi/info` | — | `{"IPaddr": "...", "HWaddr": "..."}` (IP from the environment Wi-Fi) |
|
||||
| `/api/wifi/detail_list` | — | per SSID: `SSID`, `SIGNAL`, `ACTIVE`, `FREQ` (e.g. "2462 MHz"), `SECURITY` (e.g. "WPA2", empty = open) |
|
||||
|
||||
After joining another Wi-Fi, the API is also reachable at that IP (port 31001).
|
||||
|
||||
**Other replies**
|
||||
|
||||
- `/api/software/get_version` → `{"results": "x.x.x"}`.
|
||||
- `/api/map/set_current_map?map_name=<name>&floor=<n>` (`hotel_id` is the deprecated name of `map_name`); the base service restarts, so a reply may not arrive.
|
||||
|
||||
**Notifications (`"type": "notification"`)**: fields `code` (stable ID), `description` (English), `level` (`info` / `warning` / `error`), `data` (extra info, e.g. `{"target": "room_205"}`; task-end notifications carry the distance driven). Poll `robot_status` for decisions; notifications can be lost.
|
||||
|
||||
| Group | Codes |
|
||||
|---|---|
|
||||
| Move task | `01001` started, `01002` finished, `01003` failed, `01004` canceled, `01005` retried, `01006` robot may be trapped (help needed), `01007` no available path (then `01003`) |
|
||||
| Charging dock | `01010` leaving dock, `01011` left, `01012` failed to leave, `01013` leave retry; `01020` docking started, `01021` docked, `01022` docking failed, `01023` docking data invalid, `01024` no docking feature found, `01025` no power signal, `01026` no infrared signal, `01027` docking timeout |
|
||||
| Container / cabin | `01028` wrong cabin ID, `01029` lateral mode failed, `01050–01053` leave container, `01060–01062` dock to container, `01070–01073` leave cabin, `01080–01082` dock to cabin |
|
||||
| Gate / door, narrow area | `01030` door control started, `01031` finished, `01032` door control timeout (released); `01033` waiting for a narrow area, `01034` narrow area free |
|
||||
| Patrol | `01101` started, `01102` finished, `01103` failed (last point failed), `01104` canceled |
|
||||
| Path / traffic | `01200` traffic busy, `01201` trapped in an unknown (grey) area, `01202` trapped near an obstacle, `01203` global planning failed (about every 5 s while stuck), `01204` local planning failed, `01210` no-entry sign detected, zero velocity |
|
||||
| Lift | `04000–04002` go to lift, `04010–04013` call lift (`04013` > 3 min), `04020–04023` ride (`04023` > 3 min), `04030–04033` enter (`04033` not enough space, next lift), `04040–04041` avoid lift, `04050–04052` exit, `04060–04062` back to lift, `04070–04071` wait for unlock |
|
||||
| State | `02000` power off, `02001` charging on, `02002` charging off, `02003` E-stop on, `02004` E-stop off, `02005` attitude correction triggered (robot may have been moved), `02006` software shutting down, `02010` robot may be lost (`probability`; can be a false alarm) |
|
||||
| Abnormal | `03001` foreign object in the lidar slot |
|
||||
|
||||
---
|
||||
|
||||
## 4. Environment rules (chassis manual)
|
||||
|
||||
- Indoors, flat floor, no drops over 1.5 cm, thresholds under 1.8 cm, slopes within 8°.
|
||||
- Lidar blind spots: obstacles lower than about 23 cm (8 cm with a downward camera on the upper body), reflective, black or transparent objects, objects under 2 cm.
|
||||
- Map drift: carpets over 0.5 cm, wet floors, large empty halls, often-moved furniture, fast driving over bumps, pushing the base while on, starting away from the dock.
|
||||
- Draw no-go lines around areas the robot must not enter (0.5 m from danger), slow-down zones at slopes, drop zones at stairs.
|
||||
- Dock against a wall, 0.5 m free each side, ≥ 1.5 m between docks, fixed in place.
|
||||
|
||||
---
|
||||
|
||||
## 5. First-session base tests
|
||||
|
||||
Commissioning checks:
|
||||
|
||||
1. Web monitor: map loaded? position correct? battery? E-stops off?
|
||||
2. API read-only: `robot_status`, `get_power_status`, `software/get_version`, `map/get_current_map`, `markers/query_brief`, `diagnosis/get_result`.
|
||||
3. In a clear area: `joy_control` 0.1 m/s for 2 s at 10 Hz, then 0.3 rad/s for 2 s. Compare `robot_velocity` and `current_pose`.
|
||||
4. Try the soft E-stop on and off.
|
||||
5. Subscribe to `human_detection`, walk around the robot, log positions (shows whether leg tracking is enabled).
|
||||
6. Create a marker, `/api/move?marker=...`, poll until `succeeded`.
|
||||
@@ -0,0 +1,253 @@
|
||||
# 06. Cameras and vision
|
||||
|
||||
Two Orbbec Gemini 2 L RGB-D cameras (head and torso) connect to the Jetson Thor over USB 3.0. The base camera belongs to the AGV and is used only by its navigation. Camera specifications: [01_HARDWARE.md](01_HARDWARE.md).
|
||||
|
||||
| # | Camera | Mounted on | Moves with |
|
||||
|---|---|---|---|
|
||||
| 1 | Head camera (Gemini 2 L) | head, `link_4` | head yaw and pitch, waist, lift |
|
||||
| 2 | Torso camera (Gemini 2 L) | under the handle on the column, `link_2` | waist, lift (same link as the arm base) |
|
||||
| 3 | Base camera (AGV 3D sensor) | base front | the base; not accessible |
|
||||
|
||||
Roles: the head camera watches people while Lumi stands; the torso camera watches the path while driving and is used for objects, picking and calibration. Either camera stands in for the other while it gives no detections (`assistant/lumi.py` `Vision.pick`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Connect and check
|
||||
|
||||
1. USB 3.0 cable from the computer to the base's USB 3.0 port for "head/torso cameras and voice module". USB 3.0 is required: depth runs only on a 5000M link. Check with `cat /sys/bus/usb/devices/*/speed` (5000 for both cameras).
|
||||
2. Linux: `lsusb` shows each camera as `2bc5:0673 Orbbec 3D Technology International, Inc Orbbec(R) Gemini 2 L(TM)`.
|
||||
3. udev rule (once): `SUBSYSTEM=="usb", ATTR{idVendor}=="2bc5", MODE="0666"` in `/etc/udev/rules.d/99-orbbec.rules`.
|
||||
4. In a VM (VMware): accept "Connect to virtual machine" for each "Orbbec Gemini 2 L" device; plug in before starting the VM or container.
|
||||
5. In Docker: pass `--device=/dev/bus/usb:/dev/bus/usb` (and `--privileged` or the udev rules), as in the vendor compose files.
|
||||
|
||||
### OrbbecViewer
|
||||
|
||||
1. Download from https://github.com/orbbec/OrbbecSDK/releases (v1.10.8 in the vendor doc):
|
||||
- Windows: `OrbbecSDK_v1.10.8_win64.exe` (SDK + viewer) or `OrbbecViewer_v1.10.8_..._win_x64_release.zip`
|
||||
- Ubuntu x64: `OrbbecSDK_v1.10.8_amd64.deb`
|
||||
- Jetson / ARM64: `OrbbecSDK_v1.10.8_arm64.deb`
|
||||
- macOS (Apple Silicon): `OrbbecViewer_v1.10.8_..._macos_arm64_release.zip`
|
||||
- Install guide: https://github.com/orbbec/OrbbecSDK/blob/main/doc/tutorial/English/Installation_guidance.md ; viewer manual: `OrbbecSDK/doc/OrbbecViewer/English/OrbbecViewer.md`
|
||||
2. The device list shows "Orbbec Gemini 2 L SN:<serial> USB3.0".
|
||||
3. Streams: Color, Depth, IR, IMU (about 199 fps), point cloud.
|
||||
4. Each camera's serial number is also printed next to the QR label on the camera; cover one lens to tell head from torso.
|
||||
|
||||
The camera service (§3) must be stopped before any other program opens the cameras.
|
||||
|
||||
---
|
||||
|
||||
## 2. Python (pyorbbecsdk)
|
||||
|
||||
Lumi uses `pyorbbecsdk2` from pip (in `.venv`). Source and examples: https://github.com/orbbec/pyorbbecsdk. Built from source on Linux:
|
||||
|
||||
```bash
|
||||
sudo bash ./scripts/install_udev_rules.sh
|
||||
sudo udevadm control --reload-rules && sudo udevadm trigger
|
||||
export PYTHONPATH=$PYTHONPATH:$(pwd)/install/lib/
|
||||
python3 examples/depth_viewer.py # test
|
||||
```
|
||||
|
||||
Read colour + depth from a camera chosen by serial:
|
||||
|
||||
```python
|
||||
import numpy as np
|
||||
from pyorbbecsdk import Context, Pipeline, Config, OBSensorType, OBAlignMode, OBFormat
|
||||
|
||||
def open_camera(serial=None):
|
||||
devices = Context().query_devices()
|
||||
for i in range(devices.get_count()):
|
||||
dev = devices.get_device_by_index(i)
|
||||
if serial is None or dev.get_device_info().get_serial_number() == serial:
|
||||
return Pipeline(dev)
|
||||
raise RuntimeError(f"camera {serial} not found")
|
||||
|
||||
pipe = open_camera("<serial>")
|
||||
cfg = Config()
|
||||
cfg.enable_stream(pipe.get_stream_profile_list(OBSensorType.COLOR_SENSOR).get_default_video_stream_profile())
|
||||
cfg.enable_stream(pipe.get_stream_profile_list(OBSensorType.DEPTH_SENSOR).get_default_video_stream_profile())
|
||||
cfg.set_align_mode(OBAlignMode.SW_MODE) # depth aligned to colour (HW_MODE also possible on Gemini 2 L)
|
||||
pipe.enable_frame_sync()
|
||||
pipe.start(cfg)
|
||||
frames = pipe.wait_for_frames(1000)
|
||||
depth = frames.get_depth_frame()
|
||||
if depth.get_format() == OBFormat.Y16:
|
||||
h, w = depth.get_height(), depth.get_width()
|
||||
depth_mm = np.frombuffer(depth.get_data(), np.uint16).reshape(h, w) * depth.get_depth_scale()
|
||||
color = frames.get_color_frame() # convert with frame_to_bgr_image() from the Orbbec examples (utils.py)
|
||||
pipe.stop()
|
||||
```
|
||||
|
||||
Vendor wrappers: `orbbecCamera.py` (`Camera(serial_number=...)`, `getColorImage()`, `getColorDepthData()` with depth clipped to 20–10 000 mm and a temporal filter), `multi_camera_manager.py` (several cameras by serial), `cam_diagnose_devices.py` / `diagnose_devices.py` (USB diagnostics). All in jaka-robot-demos `dev/jamie` (LUMI_DEMO-v1 and v3) and JAKA_Lumi `main` (`LUMI_DEMO_BMW/LumiAgent/OrbbecSDK/`).
|
||||
|
||||
Linux V4L2: the cameras also appear as `/dev/video*` (the NanoOWL demo uses `--camera 4 --resolution 1280x800`).
|
||||
|
||||
### ROS 2
|
||||
|
||||
`OrbbecSDK_ROS2` (JAKA_Lumi branch `LumiCode`, `Lumi_Teleoperation/src/OrbbecSDK_ROS2`, SDK 1.10.16 libraries for x64 / arm64): `gemini2L.launch.py`, `multi_camera.launch.py`, and the vendor's `multi_gemini2L_synced_sn_template.launch.py` (put each camera's serial in it, then `colcon build`). Config: `config/gemini2L_params.yaml`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Camera service (`vision/camview.py`)
|
||||
|
||||
The camera service is the only program that opens the Orbbec cameras; everything else reads its output. Two programs opening the cameras at once make the SDK reset the devices.
|
||||
|
||||
```bash
|
||||
.venv/bin/python vision/camview.py --serve # started by api/server.py at boot
|
||||
.venv/bin/python vision/camview.py --stop # free the cameras; stays off until --serve or --start
|
||||
.venv/bin/python vision/camview.py --start
|
||||
```
|
||||
|
||||
Output in `/dev/shm`, per camera (`<cam>` = `head` or `torso`):
|
||||
|
||||
| File | Content |
|
||||
|---|---|
|
||||
| `lumi_raw_<cam>.jpg` | full-size colour frame (1280 × 720), every frame |
|
||||
| `lumi_intr_<cam>.json` | colour intrinsics of the running mode (`camview.intrinsics(name)`) |
|
||||
| `lumi_det_<cam>.json` | detections of every frame: people with boxes, frame size, head yaw; torso also objects measured by `vision/objects.py` |
|
||||
| `lumi_cam_<cam>.jpg` / `.json` | picture with boxes and people, for the dashboard |
|
||||
| `lumi_focus_<cam>.json` | written by clients: the person drawn as focus |
|
||||
|
||||
Programs that need people use `RemoteDetector` (same `read()` as `person.PersonDetector`). With no reader, detection drops to 1 frame per second.
|
||||
|
||||
Operation:
|
||||
|
||||
- After `--stop` / `--start` the torso camera may be missing for a few seconds while it re-enumerates (`camera 'torso' not found`): wait and start again.
|
||||
- A camera opened on a USB 2 link stays colour-only. After cable work, check the link speed (5000) and restart the service to get depth.
|
||||
|
||||
Detector: YOLOv8s on the GPU (TensorRT engine `models/yolov8s.engine`), 4–13 ms per frame; CPU fallback YOLOv8n (OpenCV DNN), about 50 ms. The engine is bound to the TensorRT version and GPU it was built on; `person.load_net()` falls back to the CPU and prints why. Building the models: [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md#7-models-and-local-files).
|
||||
|
||||
---
|
||||
|
||||
## 4. Intrinsics and extrinsics
|
||||
|
||||
### Vendor calibrations
|
||||
|
||||
Gemini 2 L colour at 1280 × 720, from the vendor's calibrations of their own robots:
|
||||
|
||||
| Camera / file | fx | fy | cx | cy | Distortion k1 k2 p1 p2 k3 |
|
||||
|---|---|---|---|---|---|
|
||||
| Torso ("hand") camera, `CalibParams-lumi-hand.json` | 609.91 | 609.62 | 638.99 | 365.77 | −0.00962, −0.04825, 0.00200, 0.00015, 0.07460 |
|
||||
| Head camera, `CalibParams-head0717.json` | 610.45 | 610.56 | 638.65 | 389.06 | −0.02081, 0.01850, 0.00138, 0.00023, −0.00596 |
|
||||
|
||||
These give a horizontal FoV of about 92.7° and a vertical FoV of about **61°** at 1280 × 720 (spec: H 94° / V 68° at 1280 × 800).
|
||||
|
||||
The same files contain the camera → arm-base transform (eye-to-hand):
|
||||
|
||||
| File | Translation (mm) |
|
||||
|---|---|
|
||||
| torso `CalibParams-lumi-hand.json` | (5.8, 217.8, −33.4) |
|
||||
| head `CalibParams-head0717.json` | (81.9, 96.3, 345.8), valid only at the head pose used for that calibration |
|
||||
|
||||
The torso camera and the arm both sit on the waist link, so the torso calibration holds at any waist or lift position. The head camera moves relative to the arm (head yaw / pitch), so its transform needs the head joints in the chain.
|
||||
|
||||
Mount poses from the sensors URDF: [01_HARDWARE.md](01_HARDWARE.md).
|
||||
|
||||
### This robot
|
||||
|
||||
| | Torso camera | Head camera |
|
||||
|---|---|---|
|
||||
| Colour intrinsics, 1280 × 720 (factory, from `/dev/shm/lumi_intr_<cam>.json`) | fx 608.3, fy 608.4, cx 636.9, cy 363.2 | fx 607.0, fy 607.2, cx 639.1, cy 365.6 |
|
||||
| Camera → arm base | `data/camera_extrinsics.json` | `data/camera_extrinsics_head.json` (with the body pose it holds for) |
|
||||
| Hand-eye accuracy (median) | 3.3 mm | 6.0 mm (max 14.2 mm) |
|
||||
|
||||
Head camera transform (`vision/head_cam.py`):
|
||||
|
||||
- Reference body pose: lift 0, waist −20.3°, head yaw 0°, pitch −5°. Camera at (−114.1, 68.7, 402.6) mm in the arm base frame.
|
||||
- Head axes in the arm base frame: yaw axis through (−83.1, −26.5, −142.1) mm, direction (−0.017, −0.014, 1.000); pitch axis through (33.2, 6.4, 355.7) mm, direction (0.995, 0.099, −0.005).
|
||||
- Valid range: yaw −30…0°, pitch −5…+4° (model within 11 mm / 1.4°). Outside it the model is extrapolated.
|
||||
- `python vision/head_cam.py measure yaw|pitch` measures an axis (the arm holds the marker still while the head turns); `fit` computes both axes into `data/camera_extrinsics_head.json`.
|
||||
|
||||
### Calibration tool (`vision/calib.py`)
|
||||
|
||||
Eye-to-hand with an ArUco marker on the gripper. Pose angles follow `get_data` `actual_position`: fixed X-Y-Z roll-pitch-yaw, R = Rz·Ry·Rx (`calib.rpy_matrix()`, `flange_pose()`). OpenCV 5.0 on the Thor has no `cv2.calibrateHandEye`; `calib.py` has its own AX = XB solver with least-squares refinement.
|
||||
|
||||
| Command | Does |
|
||||
|---|---|
|
||||
| `calib.py collect` | the arm is moved by hand; each still pose with the marker in view is saved (Lumi says "Saved, N") |
|
||||
| `calib.py solve` | computes the camera → arm-base transform |
|
||||
| `calib.py check` | live difference in mm between camera and arm |
|
||||
| `calib.py clear` | deletes the samples |
|
||||
|
||||
`--camera head` works on the head camera (samples in `data/calib_samples_head/`); the torso samples are in `data/calib_samples/`.
|
||||
|
||||
### Pixel → 3D → arm base
|
||||
|
||||
```
|
||||
x_n = (u - cx) / fx, y_n = (v - cy) / fy
|
||||
P_camera = depth_mm * [x_n, y_n, 1]
|
||||
P_base = R_camera_to_base @ P_camera + T_camera_to_base
|
||||
```
|
||||
|
||||
If the depth at a pixel is 0, the vendor code (`utilfs/tools.py`, `generatorNearPoints`) searches nearby pixels.
|
||||
|
||||
---
|
||||
|
||||
## 5. Vendor hand-eye calibration
|
||||
|
||||
Files: `AutoCalibProccess.py`, `utilfs/handToEyeCalibration.py`, `visualValidCalib.py`, docs `AutoCalibProccess_使用说明.md`, `标定.md`.
|
||||
|
||||
- Eye-to-hand: the camera is fixed (torso), the chessboard is held by the arm.
|
||||
- Board: **8 × 11 inner corners, 10 mm squares** (`boardRowNums`, `boardCowNums`, `boardLength` in `conf/userCmdControl.json`).
|
||||
- `python AutoCalibProccess.py`: **k** saves an image + the arm TCP pose (kept only when corners are found); collect 15–20 poses with different positions and angles; **p** computes, **q** quits.
|
||||
- Inside: `cv2.calibrateCamera` → `cv2.solvePnP` per image → `cv2.calibrateHandEye`; quality = position RMS error.
|
||||
- Output: `conf/{project}_CalibParams.json` (+ images and `{project}_robotTcpPos.txt`).
|
||||
- Check: `python visualValidCalib.py`, click a pixel, it prints the point in the arm base frame.
|
||||
|
||||
---
|
||||
|
||||
## 6. Vendor vision demos
|
||||
|
||||
All in https://github.com/JAKARobotics/jaka-robot-demos/tree/dev/jamie (copies in JAKA_Lumi `main` / `feat_ros`).
|
||||
|
||||
| Demo | What it does | Platform | Detector |
|
||||
|---|---|---|---|
|
||||
| LUMI_DEMO-v1 | Fixed-station pick: detect object + target, pick, place | x86_64 PC | Alibaba Qwen-VL (DashScope API) |
|
||||
| LUMI_DEMO-v2 | Multi-station: AGV marker per station, body + arm home per station, pick/place | x86_64 PC | Qwen-VL |
|
||||
| LUMI_DEMO-v3 | Voice wake-up ("lumi") + NanoOWL zero-shot detection + QR scan + AGV + arm (medicine picking) | Jetson Orin (ARM64), Docker | NanoOWL (OWL-ViT, TensorRT) / Qwen-VL |
|
||||
| BMW vending demo | Voice agent sells drinks: fixed joint-space picks | Linux PC | — |
|
||||
|
||||
### v1 / v2 setup
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt # opencv-python, numpy, matplotlib, dashscope, ...
|
||||
export DASHSCOPE_API_KEY="..." # https://dashscope.console.aliyun.com/apiKey
|
||||
export LD_LIBRARY_PATH=/path/to/JAKA_SDK_LINUX:$LD_LIBRARY_PATH
|
||||
python AutoCalibProccess.py # once, or reuse the provided torso calibration
|
||||
python visualDetect_ali.py # v1 (add --auto, --camera-sn SN, --list-cameras in v2)
|
||||
python multi_station_demo.py # v2
|
||||
```
|
||||
|
||||
`conf/userCmdControl.json` (v1): `cameraParams` (align SW, sync, image path), `objects.moveObjects` (e.g. "yellow doll") and `objects.putObject` ("box"), `robotParams.basePose` (start joints, rad), `relativeUpMotionHeight` (mm), offsets X/Y/Z/Zput (mm), `calibrateParams` (robot IP, board), `genNearPointParams`. v2 adds `operationMode` (`both` / `grasp_only` / `put_only` / `grasp_priority`), `systemConfig` (robot, AGV, body URLs), `extAxisLimits`, `stations` (name, AGV marker, arm home, body home, mode).
|
||||
|
||||
Vendor prompt to the VLM (translated): "Please box the N kinds of objects A and B in the image." Reply: JSON list of `{"label": ..., "bbox_2d": [x1, y1, x2, y2]}`. Then: box centre → depth → `pixel_to_world` → IK → pick.
|
||||
|
||||
### v3 (Jetson, Docker)
|
||||
|
||||
- Compose: image `lumi-demo-owl:v5audio`, `runtime: nvidia`, `network_mode: host`, `privileged: true`, devices `/dev/snd`, `/dev/bus/usb` (v3 compose also `/dev/video*`, `/dev/media*`, udev rules), volume `./lumi_nanoowl:/opt/nanoowl`, `DISPLAY` for GUI.
|
||||
- Run: `./docker-compose-linux-aarch64 up --no-recreate -d`, then inside: `export LD_LIBRARY_PATH=/opt/nanoowl/JAKA_SDK_ARM:$LD_LIBRARY_PATH`, `python3 start_voice_wakeup_system.py --mode full` (or `owl`, `test`).
|
||||
- Detector: `python3 lumi_demo_owl.py /opt/nanoowl/data/owl_image_encoder_patch32.engine --camera-sn <SN...>` (web UI on port 7860), or `lumi_demo_ali.py --camera-sn <SN>`.
|
||||
- `FileExistsError: /root/.cache/clip` → `rm /root/.cache/clip && mkdir -p /root/.cache/clip`.
|
||||
- Config `conf/voice_wakeup_config.json`: wake word, AGV IP/port and marker names, camera serials for QR scan and detection, robot IP.
|
||||
|
||||
---
|
||||
|
||||
## 7. Scene understanding (`vision/scene.py`)
|
||||
|
||||
What the cameras see, as facts for the conversation and the skills. It reads the camera service's files (raw JPEG, aligned depth, people and objects with arm-frame positions from `vision/objects.py`) and runs a pose model on the raw frame.
|
||||
|
||||
| Function | Gives |
|
||||
|---|---|
|
||||
| `sees(name, colour)` | things of a COCO class / colour in either camera: distance, bearing, "on my left / right / in front of me", `position_mm` (arm base frame); a thing seen by both cameras is reported once |
|
||||
| `people()` | everyone in view, both cameras merged (the two cameras see a near person ~atan(0.25 m / d) apart) |
|
||||
| `person_in_front()` | the nearest person within 3 m: distance, bearing, chest `position_mm`, facing, gesture (`hand_raised` / `pointing`), shirt and trousers colour, `hands: {left, right: {position_mm, object}}` |
|
||||
| `object_in_hand()`, `person_holds(name)` | what is in a hand: `{name, colour, hand, position_mm, distance_m, width_mm}`; True / False / None (can't tell) |
|
||||
| `pointing_target()` | first depth point along shoulder → wrist past the hand, `position_mm` |
|
||||
| `ask_vlm(question)` | one sentence from `gemma4:26b` on the picture of the person (glasses, hat...) |
|
||||
|
||||
- **Pose**: YOLO11s-pose, 17 COCO keypoints, TensorRT engine `models/yolo11s-pose.engine` (`vision/pose.py`), 16–19 ms per 1280 × 720 frame on the GPU.
|
||||
- **In the hand**: the frame's object boxes plus a second YOLOv8s pass on a 320 px square around each hand (wrist + 0.35 × forearm). A box counts when it is a handheld class, within the hand region, and its depth is within 0.35 m of the wrist's. Without usable depth the box centre must be on the hand.
|
||||
- **Depth timing**: depth is written every 0.5 s, people and the JPEG every frame. When the depth at a person differs from the camera service's distance by more than 0.4 m, that frame's depth is not used (positions None, no "empty hand" claim).
|
||||
- **Own body**: the robot's own body appears at the bottom edge of the head camera and the top edge of the torso camera (arm, held object). Boxes touching that edge nearer than 0.8 m (or unmeasured) are ignored.
|
||||
- **Speed**: `person_in_front()` 50–60 ms with the models loaded (first call ~0.8 s; `seeing.warm_up()` loads them when the assistant starts). `snapshot()` 20 ms.
|
||||
- **VLM**: `gemma4:26b` with a 448 px picture, about 5 s on an idle GPU, longer while other LLM work runs. Used only for what detections can't answer; time limit 12 s, then "I can't tell".
|
||||
- **Test frames**: `tests/data/scene_*`; `python vision/scene.py --save tests/data/<name>` saves the current frames. Check: `tests/test_scene.py`.
|
||||
@@ -0,0 +1,108 @@
|
||||
# 07. Voice and audio
|
||||
|
||||
The microphone array, the speaker, Lumi's speech pipeline, sound direction, and the vendor voice demo. The pipeline runs on the Jetson Thor: [08_NVIDIA_THOR.md](08_NVIDIA_THOR.md).
|
||||
|
||||
---
|
||||
|
||||
## 1. Hardware
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Microphone module | iFlytek AIUI XF-USB-MC, 6-mic ring array in the head |
|
||||
| Device name | USB audio device **`AIUI-USB-MC`** ("AIUI-USB-MC: USB Audio"), ALSA `hw:CARD=AIUIUSBMC`; older name in vendor code: `XFM-DP-V0.0.18` |
|
||||
| Channels | 8 at 16 kHz: channels 0–5 are the six ring mics, 6–7 are silent |
|
||||
| Connection | USB, through the base's USB 3.0 port shared with the cameras |
|
||||
| SNR | > 70 dB |
|
||||
| Wake / recognition distance | 3–5 m (spec); an external mic extends the range |
|
||||
| Sound source localisation (spec) | 6 mics: 360°, ±15°; 4 mics: 180° |
|
||||
| Speaker | USB device "USB Audio Device", ALSA `plughw:CARD=Device,DEV=0` |
|
||||
| Clip microphone (optional) | wireless DJI Mic Mini; its receiver appears as a sound card |
|
||||
|
||||
List devices: `arecord -l` / `aplay -l`. In Docker pass `/dev/snd` and add the `audio` group.
|
||||
|
||||
---
|
||||
|
||||
## 2. Lumi's speech pipeline
|
||||
|
||||
| Stage | Module | Implementation |
|
||||
|---|---|---|
|
||||
| Recording | `audio/mic.py` | One always-on recording; an ALSA device opens only once, so everything that listens goes through it. An energy detector cuts utterances. Source chosen in `data/mic_source.txt`: `auto` / `head` / `clip` |
|
||||
| Voice activity | `audio/ears.py` | Silero VAD 5.1.2 (ONNX Runtime): sounds without enough speech frames (music, noise) never reach speech-to-text |
|
||||
| Speech-to-text | `audio/ears.py` | whisper.cpp 1.9.5 (CUDA) server with `large-v3-turbo` (f16) on `127.0.0.1:8096`, started when needed; English, Korean and mixed speech |
|
||||
| Sound direction | `audio/doa.py` | SRP-PHAT over the six ring mics (§3) |
|
||||
| Text-to-speech | `audio/mouth.py`, `audio/tts_gpu.py` | Supertonic 3 (English and Korean, voice `F1`), vector estimator and vocoder as TensorRT engines on the GPU; CPU (ONNX Runtime) when the engines are not loaded |
|
||||
|
||||
Behaviour:
|
||||
|
||||
- With a clip mic connected, utterances and their text come from the clip mic; the head array keeps recording in parallel for the sound direction.
|
||||
- While Lumi speaks the head array records nothing. The clip mic keeps listening, so the visitor can interrupt ("stop", a new question); Lumi's own voice in the clip mic is recognised by comparing it with what the speaker played (`mouth.own_voice`) and dropped.
|
||||
- Long answers are split into sentences; the next sentence is synthesised while the current one plays. Fixed phrases (greetings) are synthesised once and cached.
|
||||
- Volume and speaking speed are kept in `data/volume.txt` and `data/speech_speed.txt` (voice commands and the dashboard).
|
||||
|
||||
Commands:
|
||||
|
||||
```bash
|
||||
.venv/bin/python audio/mic.py # print every utterance: source, length, level, direction
|
||||
.venv/bin/python audio/ears.py # listen once, print the text
|
||||
.venv/bin/python audio/mouth.py "Hello, I am Lumi." # speak
|
||||
.venv/bin/python audio/tts_gpu.py build # build the TTS engines (after a JetPack / TensorRT change), then: check
|
||||
```
|
||||
|
||||
Tunable values: [TUNING.md](TUNING.md#voice).
|
||||
|
||||
---
|
||||
|
||||
## 3. Sound direction
|
||||
|
||||
The vendor code only records audio; it does not read a direction-of-arrival angle from the module. Lumi computes the direction itself from the six ring channels (`audio/doa.py`):
|
||||
|
||||
- SRP-PHAT: for each candidate direction (2° grid, −180…180°) the expected time differences between the mic pairs are compared with the PHAT-weighted cross-spectra (300–3500 Hz); the direction with the most energy wins.
|
||||
- Angles are in the head frame: 0 = where the head looks, + = to the robot's left (same sign as head yaw). Robot (waist) angle = head yaw + this angle.
|
||||
- Geometry: six mics on a ring of `radius`, mic k at `offset + sign · k · 60°`, kept in `data/doa_calib.json`.
|
||||
- Calibration needs a speaker at known angles. `assistant/lumi.py` collects samples on its own while it talks with a person the head camera sees (camera angle = truth) and fits sign / offset / radius after 6 samples spread over at least 30°. By hand: `python audio/doa.py --calibrate` (stand in front of the head camera, talk, move left and right, Ctrl+C to fit).
|
||||
|
||||
---
|
||||
|
||||
## 4. Recording audio (vendor method)
|
||||
|
||||
The vendor demo (LUMI_DEMO-v3 `services/voice_recognition_service.py`, `audio_tool/audio_tools.py`) uses the module as a normal microphone: PyAudio, **16 kHz, mono, 16-bit, chunks of 1024**, device chosen by name.
|
||||
|
||||
```python
|
||||
import pyaudio, wave
|
||||
|
||||
def find_input(name="AIUI-USB-MC"):
|
||||
p = pyaudio.PyAudio()
|
||||
for i in range(p.get_device_count()):
|
||||
info = p.get_device_info_by_index(i)
|
||||
if info["maxInputChannels"] > 0 and name in info["name"]:
|
||||
return i
|
||||
return p.get_default_input_device_info()["index"]
|
||||
|
||||
p = pyaudio.PyAudio()
|
||||
stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True,
|
||||
input_device_index=find_input(), frames_per_buffer=1024)
|
||||
frames = [stream.read(1024, exception_on_overflow=False) for _ in range(int(16000 / 1024 * 5))] # 5 s
|
||||
stream.close()
|
||||
with wave.open("test.wav", "wb") as wf:
|
||||
wf.setnchannels(1); wf.setsampwidth(2); wf.setframerate(16000); wf.writeframes(b"".join(frames))
|
||||
```
|
||||
|
||||
Vendor device list: `python3 audio_tool/test_audio_devices.py`. On Lumi the recording belongs to `audio/mic.py`; stop the assistant before opening the device from another program.
|
||||
|
||||
---
|
||||
|
||||
## 5. Vendor voice demo (LUMI_DEMO-v3)
|
||||
|
||||
| Part | Implementation |
|
||||
|---|---|
|
||||
| Wake word | "lumi" (config `voice_recognition.wakeup_word`), timeout 10 s, record 5 s |
|
||||
| Speech-to-text | OpenAI Whisper, local (`whisper_main`, model `base.pt`) |
|
||||
| Text-to-speech | iFlytek online TTS (WebSocket `wss://tts-api.xfyun.cn/v2/tts`, 16 kHz raw, voices `x4_yezi` / `aisjinger`; needs an APPID / APIKey / APISecret) or MeloTTS offline (zh, en, ja, ko, …; CPU real-time) |
|
||||
| Tasks | QR scan, NanoOWL detection, AGV markers (`table`, `shelf`, `home`), arm picking |
|
||||
| Start | `python3 start_voice_wakeup_system.py --mode full` inside the Docker container |
|
||||
|
||||
---
|
||||
|
||||
## 6. Company voice assistant
|
||||
|
||||
The company runs its own Lumi voice assistant on the Jetson Thor, separate from this project. Its behaviour, architecture and endpoints are company-internal and documented in `docs/private/` (not in git).
|
||||
@@ -0,0 +1,148 @@
|
||||
# 08. NVIDIA Jetson AGX Thor
|
||||
|
||||
Main AI computer of Lumi: runs the robot software, vision models, speech and the LLM. Address and login: `docs/private/ACCESS.md` (not in git).
|
||||
|
||||
---
|
||||
|
||||
## 1. Specifications
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Model | NVIDIA Jetson AGX Thor Developer Kit |
|
||||
| Compute | 2070 TOPS (INT8), Blackwell GPU (1.57 GHz), 72-core Arm v9 CPU (2.6 GHz) |
|
||||
| Memory | up to 128 GB unified |
|
||||
| Storage | PCIe 5.0 NVMe + UFS 4.0 |
|
||||
| Power | 30–120 W (configurable) |
|
||||
| Current JetPack release | JetPack 7.2.1, Jetson Linux r39.2.1 |
|
||||
| Ports | 2 × USB-C (power/data), USB-A, HDMI/DisplayPort, Ethernet, Debug-USB behind the lid |
|
||||
|
||||
JAKA's computer options table ([01_HARDWARE.md](01_HARDWARE.md)) puts large multimodal models (≥ 30B, VLA, ACT, LLM + vision) on the AGX Thor.
|
||||
|
||||
### This unit
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Hostname | `lumi-thor` |
|
||||
| Software | JetPack R38.4, CUDA 13.0, driver 580, Ubuntu 24.04, Python 3.12 |
|
||||
| CPU / memory | 14 cores (aarch64), 122 GB shared by CPU and GPU |
|
||||
| Network | robot LAN `enP2p1s0` (192.168.10.240); internet over its own Wi-Fi `wlP1p1s0` |
|
||||
|
||||
---
|
||||
|
||||
## 2. Connect
|
||||
|
||||
SSH from a computer on the same network: `ssh <user>@<thor-ip>`, port 22 (`ssh -X` for GUI programs such as OrbbecViewer or RViz). On the robot network (`192.168.10.x`) the Thor's address is also listed on the router page `http://192.168.10.79` (connected devices) or found with `nmap -sn 192.168.10.0/24`. Network details: [02_NETWORK_AND_ACCESS.md](02_NETWORK_AND_ACCESS.md).
|
||||
|
||||
---
|
||||
|
||||
## 3. Install the OS (re-flash)
|
||||
|
||||
NVIDIA quick start: https://docs.nvidia.com/jetson/agx-thor-devkit/user-guide/latest/quick_start.html
|
||||
|
||||
Requirements: a PC with 25 GB free, a USB stick ≥ 16 GB, a monitor + keyboard (or a USB-C cable for headless setup).
|
||||
|
||||
1. Download the installer ISO (e.g. `jetsoninstaller-r39.2.1-...-arm64.iso`) from NVIDIA Developer Downloads.
|
||||
2. Write it with **Balena Etcher** (https://etcher.balena.io). Copying the file to the stick does not work.
|
||||
3. Plug the stick into the Thor (USB-A or USB-C), connect the bundled USB-C power supply, press the power button (left button on the side).
|
||||
4. Boot from USB: Enter (or wait); accept the **QSPI capsule update** with **Y** (do not skip); installation to NVMe takes about 10 minutes, then it reboots.
|
||||
5. **Remove the USB stick** right away.
|
||||
6. First-boot wizard (oem-config): keyboard, licence, network, time zone, user name and password, hostname. Headless: connect the USB-C cable to a PC, open a serial terminal, press Tab then Enter.
|
||||
7. Use the bundled power supply; avoid KVM switches. Factory UEFI 38.0.0 has display issues in headless mode (NVIDIA documents a workaround); devices reinstalled with a pre-7.2 ISO may need UEFI changes.
|
||||
8. Then install the JetPack components and CUDA (NVIDIA pages "JetPack SDK Setup", "CUDA Setup").
|
||||
|
||||
---
|
||||
|
||||
## 4. Docker
|
||||
|
||||
NVIDIA's procedure (https://docs.nvidia.com/jetson/agx-thor-devkit/user-guide/latest/setup_docker.html), also when `docker compose` does not work on a fresh system:
|
||||
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt install -y nvidia-container curl
|
||||
curl https://get.docker.com | sh && sudo systemctl --now enable docker
|
||||
sudo nvidia-ctk runtime configure --runtime=docker
|
||||
sudo systemctl daemon-reload && sudo systemctl restart docker
|
||||
|
||||
# make nvidia the default runtime
|
||||
sudo apt install -y jq
|
||||
sudo jq '. + {"default-runtime": "nvidia"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp \
|
||||
&& sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
|
||||
|
||||
# run docker without sudo
|
||||
sudo usermod -aG docker $USER && newgrp docker && sudo systemctl restart docker
|
||||
|
||||
# check: compose and GPU
|
||||
docker compose version
|
||||
docker run --rm -it nvcr.io/nvidia/pytorch:25.08-py3 python3 -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"
|
||||
```
|
||||
|
||||
`/etc/docker/daemon.json` contains `"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "args": []}}` and `"default-runtime": "nvidia"`.
|
||||
|
||||
---
|
||||
|
||||
## 5. Software on the Thor
|
||||
|
||||
- **Lumi**: the user systemd service `lumi-api` runs `api/server.py` (API and dashboard on `:8100`); the API starts the camera service, whisper, the embedding server and loads the LLM. `systemctl --user restart lumi-api` restarts it. See the top-level README.
|
||||
- **On the GPU**: Ollama (`gemma4:26b`, Lumi's LLM), whisper.cpp (CUDA), the bge-m3 embedding server, the camera service's YOLO, the pose model and the Supertonic TTS engines.
|
||||
- **Company voice services**: containers of the company's own voice assistant; installation and layout in `docs/private/` (not in git). They need about 80 GB of GPU memory; leave room for vision models.
|
||||
- **Colleagues' projects** on this Thor are separate: `~/Dev/lumi_edu`, `lumi-vision`, `lumi_voice_app`, services on :8000, :8001, :8090, :3080.
|
||||
|
||||
### Vendor SDKs
|
||||
|
||||
- The JAKA SDK has an `aarch64-linux-gnu` build of `jkrc`; check that `jkrc.so` loads under Python 3.12, otherwise use a Python 3.10 container. The `jkrc.so` installed here is x86-only; Lumi drives the arm through the controller's JSON port (`robot/arm.py`, `robot/gripper.py`).
|
||||
- Orbbec SDK: arm64 `.deb` packages and the vendor's Jetson Docker setup ([06](06_CAMERAS_AND_VISION.md#v3-jetson-docker)).
|
||||
- In containers, mount the code (`-v $PWD:/work`), as the vendor compose files do.
|
||||
|
||||
---
|
||||
|
||||
## 6. GPU inference
|
||||
|
||||
- **TensorRT** 11.4 from pip (`tensorrt-cu13`, with `cuda-python`) runs on this GPU. TensorRT 11 has no FP16 builder flag (networks are strongly typed). An engine runs only with the TensorRT version and GPU it was built with: rebuild every engine after a JetPack or TensorRT change.
|
||||
- **onnxruntime-gpu** 1.31 (pip) lists the CUDA provider, but its kernels do not run on this GPU ("no kernel image is available for execution on the device"). Use TensorRT for GPU inference.
|
||||
- Detector speed: YOLOv8s engine 2.5–4 ms, YOLOv8n engine 4 ms per 640 frame; YOLOv8n on the CPU (OpenCV DNN) ~45 ms. The camera service uses ~1 CPU core with the detector on the GPU, ~8.4 cores with it on the CPU.
|
||||
- OpenCV 5.0 in the venv has no `cv2.calibrateHandEye` (`vision/calib.py` has its own solver). The system Python has no OpenCV: run modules with `.venv/bin/python`.
|
||||
|
||||
---
|
||||
|
||||
## 7. Models and local files
|
||||
|
||||
Not in git; made on the Thor.
|
||||
|
||||
| Path | What | How it is made |
|
||||
|---|---|---|
|
||||
| `.venv/` | Python 3.12 venv; `site-packages/lumi_wave.pth` puts the project folder on the path. numpy, opencv-python-headless, pyorbbecsdk2, fastapi, uvicorn, supertonic, soundfile, tensorrt-cu13, cuda-python | top-level README |
|
||||
| `models/yolov8s.onnx`, `models/yolov8s.engine` | GPU detector | `YOLO("yolov8s.pt").export(format="onnx", imgsz=640, opset=17)`; `vision/yolo_engine.py models/yolov8s.onnx models/yolov8s.engine` (~100 s) |
|
||||
| `models/yolov8n.onnx` | CPU fallback detector | `YOLO("yolov8n.pt").export(format="onnx", imgsz=640, opset=12, simplify=True)` |
|
||||
| `models/yolo11s-pose.onnx`, `.engine` | pose keypoints for `vision/pose.py` | ultralytics 8.4 export (imgsz 640), then `vision/yolo_engine.py` |
|
||||
| `models/face_detection_yunet_2023mar.onnx`, `models/face_recognition_sface_2021dec.onnx` | face detector and embedding for `vision/reid.py` (without them only clothes are used) | github.com/opencv/opencv_zoo |
|
||||
| `models/ggml-large-v3-turbo.bin` | whisper model (f16); `ggml-large-v3-turbo-q5_0.bin` is used by `audio/sing_mine.py` | Hugging Face `ggerganov/whisper.cpp` |
|
||||
| `models/supertonic3/` | TTS model | Hugging Face `Supertone/supertonic-3` |
|
||||
| `models/supertonic3_vector_estimator.engine`, `models/supertonic3_vocoder.engine` | TTS vector estimator and vocoder on the GPU (`audio/tts_gpu.py`); without them the CPU, 5–10× slower | `.venv/bin/python audio/tts_gpu.py build`, then `check` |
|
||||
| `whisper.cpp/` | v1.9.5 with CUDA | `cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=110 -DCMAKE_BUILD_TYPE=Release && cmake --build build -j 12 --target whisper-server whisper-cli` |
|
||||
| `~/models/bge-m3-Q8_0.gguf` | embedding model for the knowledge base | Hugging Face |
|
||||
| `knowledge/index.npz` | knowledge vectors | `assistant/knowledge.py build` |
|
||||
| Ollama `gemma4:26b` | LLM | `ollama pull gemma4:26b` |
|
||||
| `data/camera_extrinsics*.json`, `data/calib_samples*/`, `data/doa_*`, `data/volume.txt`, `data/speech_speed.txt` | calibrations and settings of this robot | `vision/calib.py`, `audio/doa.py`, the dashboard |
|
||||
| `logs/` | log files and debug pictures | written at run time |
|
||||
| `docs/private/` | company-internal notes (access, vendor manuals, screenshots) | kept off git |
|
||||
|
||||
The Orbbec cameras need the udev rule `SUBSYSTEM=="usb", ATTR{idVendor}=="2bc5", MODE="0666"` in `/etc/udev/rules.d/99-orbbec.rules`.
|
||||
|
||||
---
|
||||
|
||||
## 8. Operating rules
|
||||
|
||||
- Only the camera service opens the cameras ([06](06_CAMERAS_AND_VISION.md#3-camera-service-visioncamviewpy)). After `vision/camview.py --stop` / `--start` the torso camera may take a few seconds to re-enumerate: wait and start again.
|
||||
- After any cable work, check the camera link speed (`/sys/bus/usb/devices/*/speed` = 5000); a camera opened at USB 2 stays colour-only until the camera service is restarted.
|
||||
- Do not restart the API while the base drives: check `curl -s localhost:8100/status` → `base.move_status` first.
|
||||
- Never call `tasks/fetch.py` functions from a second process while the API runs: its log writes that process's empty state over `/dev/shm/lumi_task.json`.
|
||||
- Tests never reach the robot (`tests/test_*.py` fake the hardware).
|
||||
- After a controller power cycle the body axes are disabled; `robot/head.py` `moveto()` enables them. All tool I/O must be PNP in Cobo π.
|
||||
- The body API's `/stop` does not stop a `moveto`; hold-to-move uses small steps.
|
||||
- Navigation does not go into a table's margin (such a goal ends "succeeded" without moving); a reach ends with a straight checked drive. Drives run with the arm in `look`, not `carry` (the base's 3D camera sees the hand in `carry` and stalls).
|
||||
- The base's planning API does not check real paths; `robot/nav.py` uses the map image. Closed glass doors need a no-go line in the base's web panel.
|
||||
- `pkill -f` / `pgrep -f` also match your own shell's command line: find the PID with `ps -eo pid,args | grep "[n]ame"` and kill that.
|
||||
- Headless Chrome screenshots of the dashboard: do not use `--timeout` (it freezes the page's JavaScript).
|
||||
- Do not touch colleagues' projects and services (§5).
|
||||
|
||||
Every value meant to be tuned by hand, with its file: [TUNING.md](TUNING.md).
|
||||
@@ -0,0 +1,154 @@
|
||||
# 09. ROS 2, teleoperation, learning and simulators
|
||||
|
||||
Vendor software beyond the plain APIs: the ROS 2 workspace with MoveIt 2 and Isaac Sim, VR teleoperation, ACT imitation learning.
|
||||
|
||||
---
|
||||
|
||||
## 1. ROS 2 workspace `jaka_lumi_ros` (MoveIt 2, Isaac Sim)
|
||||
|
||||
Source: JAKA_Lumi repo, branch **`feat_ros`**, folder `jaka_lumi_ros/` (ROS 2 **Humble**, Ubuntu 22.04).
|
||||
|
||||
```bash
|
||||
git clone -b feat_ros https://github.com/JAKARobotics/JAKA_Lumi.git # large repo; or sparse-checkout jaka_lumi_ros
|
||||
cd JAKA_Lumi/jaka_lumi_ros
|
||||
source /opt/ros/humble/setup.bash
|
||||
colcon build --symlink-install
|
||||
source install/setup.bash
|
||||
```
|
||||
|
||||
| Package | Role |
|
||||
|---|---|
|
||||
| `jaka_lumi_body_node` | Topics/services for the body over HTTP (`/joint_states`, `/lumi_body/enable|move|stop|reset|read_status`), details in [03](03_BODY_LIFT_WAIST_HEAD.md#4-ros-2) |
|
||||
| `jaka_lumi_body_server` | `FollowJointTrajectory` action server for the body; publishes the TF root (start it first) |
|
||||
| `jaka_lumi_minicobo_arm_server` | `FollowJointTrajectory` action server for the arm via JAKA SDK (`servo_j`, 8 ms steps, joint LPF 0.5); parameter `ip` (default `192.168.10.90`); powers on and enables the arm at start; publishes `/joint_states` `l_a1…l_a6` |
|
||||
| `jaka_lumi_description` | URDF, meshes, USD files, RViz config |
|
||||
| `jaka_lumi_moveit_config` | MoveIt 2: groups `jaka_lumi_body` (l_1…l_4), `jaka_lumi_minicobo_arm` (l_a1…l_a6), `jaka_lumi_full_robot`; default velocity/acceleration scaling 0.1; max joint velocity 1.57 rad/s; states `zero`, `pose_1` |
|
||||
| `jaka_lumi_isaacsim` | Launch Isaac Sim with the Lumi USD; topics `/isaac_joint_states`, `/isaac_joint_commands` |
|
||||
|
||||
Run on the real robot:
|
||||
|
||||
```bash
|
||||
ros2 launch jaka_lumi_body_server lumi_body_server.launch.py # always first
|
||||
ros2 launch jaka_lumi_minicobo_arm_server lumi_minicobo_arm_server.launch.py ip:=192.168.10.90
|
||||
ros2 launch jaka_lumi_moveit_config demo.launch.py # RViz + MoveIt 2
|
||||
```
|
||||
|
||||
Body only: body server + `demo.launch.py`. Standalone body node: `ros2 launch jaka_lumi_body_node lumi_body_node.launch.py`.
|
||||
|
||||
Controllers (only one owner per joint):
|
||||
|
||||
```bash
|
||||
ros2 control switch_controllers --activate jaka_lumi_full_robot_controller \
|
||||
--deactivate jaka_lumi_body_controller jaka_lumi_minicobo_arm_controller --strict
|
||||
ros2 control switch_controllers --activate jaka_lumi_body_controller jaka_lumi_minicobo_arm_controller \
|
||||
--deactivate jaka_lumi_full_robot_controller --strict
|
||||
```
|
||||
|
||||
Simulation modes (replace MoveIt's `launches.py` with the one in `jaka_lumi_ros`; find it with `find /opt/ros/humble/ -name launches.py`):
|
||||
|
||||
```bash
|
||||
ros2 launch jaka_lumi_moveit_config demo.launch.py use_rviz_sim:=true # fake controllers
|
||||
ros2 launch jaka_lumi_isaacsim run_lumi_isaacsim.launch.py # Isaac Sim 4.5 + Lumi USD
|
||||
ros2 launch jaka_lumi_moveit_config demo.launch.py use_isaac_sim:=true
|
||||
```
|
||||
|
||||
Isaac Sim install: https://docs.isaacsim.omniverse.nvidia.com/4.5.0/installation/install_workstation.html. If it segfaults: `rm -rf ~/.nvidia-omniverse/logs ~/.nvidia-omniverse/config`; test without ROS: `cd jaka_lumi_isaacsim/scripts && ./python.sh isaacsim_moveit.py`; fallback: `ros2 launch jaka_lumi_isaacsim run_isaacsim.launch.py`, then File → Open `jaka_lumi_description/urdf/jaka_lumi/jaka_lumi_moveit.usd`, Play.
|
||||
|
||||
Servo mode note: the arm server needs servo mode, which controller 3.2 does not support yet ([04](04_ARM.md#2-controller-versions-17-vs-32)).
|
||||
|
||||
---
|
||||
|
||||
## 2. VR teleoperation (PICO 4)
|
||||
|
||||
Sources: JAKA web doc 3.2.3, teleop quick-start docx, JAKA_Lumi branch **`LumiCode`** (`Lumi_Teleoperation/`).
|
||||
|
||||
**Only controller 1.7 (1.7.1-46-X64-minicab) is supported; controller 3.2 is not.**
|
||||
|
||||
| Part | Form | Role |
|
||||
|---|---|---|
|
||||
| VR sender | Android app on the PICO 4 (Ultra) | Sends controller poses and buttons |
|
||||
| VR receiver | Docker container on an Ubuntu PC (ROS 2 Humble) | Converts them into robot Cartesian targets |
|
||||
| Robot controller side | same container | Cartesian servo (`servo_p`) to the arm |
|
||||
|
||||
Network: VR headset and PC on the same Wi-Fi (Lumi's own Wi-Fi recommended, 5 GHz for low latency); PC also reaches the robot.
|
||||
|
||||
### PICO setup
|
||||
|
||||
1. On the headset: Control Center → Settings → About → tap the software version several times → Developer options → **USB debugging** on.
|
||||
2. On the PC: install PICO Developer Center (https://developer-cn.picoxr.com/resources/#pdc). PICO docs: https://developer-cn.picoxr.com/document/unity/set-up-the-development-environment/
|
||||
3. USB-cable the headset to the PC, unzip `controlData_*.zip`, copy the APK to *PICO 4 Ultra → internal shared storage → Download*.
|
||||
4. In the headset: File manager → Installation packages → install. It appears under Library → **Unknown sources** (apps `controllers_data_250220`, `robotB612`, `imgVR_250220`; use the one with the yellow smiley icon).
|
||||
5. Open it, enter: **PC IP** (`ifconfig` on the PC, e.g. `192.168.10.35`), **PC port** (doc default 8018; the Lumi launch file uses **9852**; they must match), **send period** 0.01 s (60 Hz) → **LOGIN**. Move the controllers and check the virtual hands follow; if laggy, check both are on the same Wi-Fi.
|
||||
|
||||
### PC setup
|
||||
|
||||
```bash
|
||||
# Docker (or the fishros helper: wget http://fishros.com/install -O fishros && . fishros)
|
||||
docker load -i jaka_images_lumi_v1.0.tar.gz # image jaka_images:lumi_V1.0 (≈ 37 GB on disk); from a JAKA engineer
|
||||
docker images -a
|
||||
# plug grippers / cameras first (cameras USB 3.0, grippers USB 2.0); ls /dev/ttyUSB* ; lsusb
|
||||
docker run -it --name lumi_yao --net=host --ipc=host --pid=host \
|
||||
--device=/dev/bus/usb:/dev/bus/usb --device=/dev/usb:/dev/usb \
|
||||
-v /home/$USER/data:/home/data -v /dev/shm:/dev/shm \
|
||||
-d jaka_images:lumi_V1.0
|
||||
# (add --device=/dev/ttyUSB0 --device=/dev/ttyUSB1 for grippers)
|
||||
|
||||
docker start lumi_yao
|
||||
docker exec -it lumi_yao bash
|
||||
vim ~/Lumi_Teleoperation/src/vr_data_pub/launch/teleoperation_system_lumi.launch.py # set robot_ip (and server_port)
|
||||
colcon build && source ~/.bashrc
|
||||
ros2 launch vr_data_pub teleoperation_system_lumi.launch.py # terminal 1: communication + robot init (power on, enable)
|
||||
ros2 run vr_data_pub teleoperation_control_lumi # terminal 2: control state machine
|
||||
```
|
||||
|
||||
In the vendor launch file: `vr_data_pub` (socket server, `server_port: 9852`), `vr_data_distributer`, `k1_robot/robot_interface` (namespace `/right_arm`, `robot_ip`, `robot_running_mode`: `teleop` / `act` / `test`), `vr_robot_pose_converter_lumi_servo_p`.
|
||||
|
||||
### Controller buttons
|
||||
|
||||
| Button | Action |
|
||||
|---|---|
|
||||
| Either side (grip) button | Start controlling the arm (be ready: the arm follows immediately) |
|
||||
| B | Pause and return to the default pose; **disabled by default** (enable and set the home in `move_to_default_pose` of `teleoperation_control_lumi.py`). Lumi default: rad `[0.3183, -1.4058, -0.8646, -0.2966, -1.3689, 0]` |
|
||||
| Y | Stop control and exit; rerun `ros2 run vr_data_pub teleoperation_control_lumi` to resume |
|
||||
| X | Start recording data (data collection mode) |
|
||||
| A | Save the recorded episode and stop recording |
|
||||
|
||||
Data collection: put the camera serials into `OrbbecSDK_ROS2/orbbec_camera/launch/multi_gemini2L_synced_sn_template.launch.py`, `colcon build`, `ros2 launch orbbec_camera multi_gemini2L_synced_sn_template.launch.py`, then `ros2 run vr_data_pub collect_data_xy` (Lumi version: `aloha_data_prepare_lumi.py`).
|
||||
|
||||
Safety: physical E-stop within reach; move slowly at first; if the robot shakes, press the E-stop; if communication drops, check the Wi-Fi. Troubleshooting: Docker fails to start → `sudo chmod 666 /dev/ttyUSB*`.
|
||||
|
||||
VM setup (from the docx): two network adapters, one bridged to the wired port (robot, `10.5.5.x` in the docx), one bridged to Wi-Fi (headset); if networking fails, swap `ens33` / `ens37`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Imitation learning (ACT, Mobile ALOHA)
|
||||
|
||||
- Code: JAKA_Lumi `LumiCode` branch `Lumi_Training/` (fork of the ACT / Mobile ALOHA repo: `imitate_episodes.py`, `policy.py`, `detr/`, `constants.py`), Google Drive link in the repo.
|
||||
- Install (docx "Docker ACT"): Docker + NVIDIA Container Toolkit; image `actimages:V1.0` (environment only, mount the code) or V1.1 (code in `/ACT`); compose:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
act:
|
||||
image: actimages:V1.0
|
||||
container_name: act
|
||||
volumes: ["../ACT:/ACT", "/dev/shm:/dev/shm"]
|
||||
network_mode: host
|
||||
command: /bin/bash -c "sleep infinity"
|
||||
runtime: nvidia
|
||||
environment: [NVIDIA_VISIBLE_DEVICES=all]
|
||||
```
|
||||
|
||||
- `docker compose -f docker-compose.act.yml up -d`, enter the container, set `DATA_DIR` and the camera names in `/ACT/constants.py` (same names as in the dataset; example cameras `front_cam`, `right_cam`, action dim 7, chunk 25), create a checkpoint folder, comment out wandb in `train.py`, run `train.py`.
|
||||
- ACT tuning tips: train long (≥ 5000 epochs on real data); jerky policies improve with more training.
|
||||
- `Lumi_Training/JAKASDK/` scripts are for a 7-DOF dual-arm robot (K1): useful only as examples of SDK ↔ MuJoCo transforms.
|
||||
|
||||
---
|
||||
|
||||
## 4. Simulators summary
|
||||
|
||||
| Simulator | Where | Status |
|
||||
|---|---|---|
|
||||
| RViz fake controllers | `jaka_lumi_moveit_config use_rviz_sim:=true` | vendor |
|
||||
| Isaac Sim 4.5 | `jaka_lumi_isaacsim` | vendor |
|
||||
| Cobo π / JAKA App simulation switch | controller hardware-in-the-loop | arm only |
|
||||
| JAKASim virtual machine | "About the Development" on jaka.com, used with the App's offline connection | arm only |
|
||||
@@ -0,0 +1,135 @@
|
||||
# 10. Gripper
|
||||
|
||||
A Zimmer electric parallel gripper is mounted on the arm flange. It is driven by the two digital outputs of the arm's tool connector and reports its finger position on an analog input. An optical sensor on one finger mount detects objects below the gripper.
|
||||
|
||||
---
|
||||
|
||||
## 1. Hardware
|
||||
|
||||
| Part | Description |
|
||||
|---|---|
|
||||
| Gripper | **Zimmer GEP2013IO-05-B**: electric 2-jaw parallel gripper, digital I/O version. GEP2013 family datasheet: **13 mm stroke per jaw**, **gripping force 90–360 N** in four levels, **mass about 0.54 kg** without fingers. Rotary switch "Funct" 1–4 selects the force level (4 = 360 N); set to **1**. Green LED = powered |
|
||||
| Fingers | Long stainless-steel fingers with curved tips on L-shaped brackets, for cups and glasses. Fingertips about 265 mm from the flange face; the fingers sit beside the flange axis, not on it (about 8 cm off, estimate) |
|
||||
| Finger sensor | **MISUMI** optical (photoelectric) sensor, yellow/black housing, on the side of one finger mount. It sees what is **below the gripper**, not an object between the fingers. The red light is its emitter and is always on; the indicator LED on its back is red when something is in front of it, blue when nothing is |
|
||||
| Cable | Gripper and sensor are wired to the arm's M8 tool connector (TIO), see [04_ARM.md §8](04_ARM.md#8-tool-io-connector-m8-8-pin-tio-v3) |
|
||||
|
||||
Even force level 1 (~90 N) is far more than a plastic cup needs: the software must not close on objects that cannot take it (`manipulation/skills.py` refuses objects of the wrong width).
|
||||
|
||||
### Finger geometry
|
||||
|
||||
Each finger is a straight thin shank below its mount block, then a C-shaped hook that bends out and curves back in to an inward tip. Inner gap between the fingers:
|
||||
|
||||
| Where | Open | Closed |
|
||||
|---|---|---|
|
||||
| Tips (entry gap) | 88 mm | 59 mm |
|
||||
| Belly: widest point inside the hook | 96 mm | 70 mm |
|
||||
| Neck: narrowest point where the hook meets the shank | 73 mm | 47 mm |
|
||||
| Shank: the straight part, same gap along its length | 66 mm | 39 mm |
|
||||
|
||||
Along the fingers, from the bottom face of the Zimmer body (±5 mm): shank starts ~100 mm, hook starts ~150 mm, tips ~200 mm.
|
||||
|
||||
A round object narrower than 70 mm is not squeezed by the belly. An 82 mm cup passes the 88 mm entry with only ~3 mm per side: approach on the centre line.
|
||||
|
||||
**Grasp point** (where a cup's axis sits between the fingers, 4 cm below the rim): **(106.4, −86.5, 230.5) mm in the flange frame** (268 mm from the flange, 137 mm off its axis), stored in `data/grasp_teach.json` with the flange pose.
|
||||
|
||||
---
|
||||
|
||||
## 2. Signals
|
||||
|
||||
**All tool I/O must be set to PNP** (Cobo π → I/O → Tool(S), ⋮ menu of each DI / DO → PNP). With the factory setting NPN the gripper does not move and the sensor is not read.
|
||||
|
||||
| Signal | Direction | Meaning | Values |
|
||||
|---|---|---|---|
|
||||
| **DO_1** | controller → gripper | **Close** | 1 = close |
|
||||
| **DO_2** | controller → gripper | **Open** | 1 = open |
|
||||
| **AI_1** | gripper → controller | **Finger position** (0–10 V, read as 0–4096) | 100–160 open · 4100–4200 closed on nothing (noise ±50) · in between while moving or holding |
|
||||
| **DI_1** | sensor → controller | **Something below the gripper** | 1 = object, 0 = nothing; never set by an object held between the fingers |
|
||||
| DI_2 | | not connected | always 0 |
|
||||
| AI_2 | | not connected | ~489 (floating input) |
|
||||
|
||||
### AI_1 and the finger gap
|
||||
|
||||
The gap is linear in AI_1 between fully open and closed on nothing; `gripper.gap_mm(ai, where)` gives the width at the tips, belly, neck or shank, and `state()["gap_mm"]` is the belly gap. Plastic cups give a little, so their gap reads somewhat under their real diameter. The value right after closing overshoots: read it about 1 s after the close.
|
||||
|
||||
### Behaviour
|
||||
|
||||
- One stroke (open → closed or back) takes about **1 s**.
|
||||
- **The fingers stay where they are when both outputs are off.** No signal is needed to keep holding.
|
||||
- **Never switch both outputs on at the same time** (open and close together). Switch the other output off first.
|
||||
- Closing on an object stops the fingers early and AI_1 stays lower (a cup's wide part: about 3500).
|
||||
- Small or soft objects give no reliable reading: a thin plastic cup gripped at its narrow end gives way and reads like empty (~4150). Paper cups are squeezed flat and then read as empty.
|
||||
- **A close cannot be stopped half way**: switching DO_1 off during the stroke does not stop the fingers. A gentler close from software is not possible with these outputs.
|
||||
- The fingers have no touch sensing, and a pull on a held object does not change AI_1 beyond the settling noise: the gripper cannot detect a hand-over.
|
||||
|
||||
### PNP and NPN
|
||||
|
||||
- **PNP** ("sourcing"): the signal wire is connected to **+24 V** when the signal is on. Common on European equipment (Zimmer, Sick, Festo).
|
||||
- **NPN** ("sinking"): the signal wire is connected to **0 V (ground)** when the signal is on. Common on Japanese and Chinese equipment.
|
||||
|
||||
Both ends of a signal must use the same type; otherwise nothing is read.
|
||||
|
||||
---
|
||||
|
||||
## 3. Software
|
||||
|
||||
`robot/gripper.py` drives the gripper through the arm controller's JSON command port (192.168.10.90:10001, no SDK):
|
||||
|
||||
```bash
|
||||
python robot/gripper.py # {'closed': ..., 'holding': ..., 'object_in_front': ..., 'ai': [...], 'do': [...], 'di': [...]}
|
||||
python robot/gripper.py open
|
||||
python robot/gripper.py close
|
||||
```
|
||||
|
||||
```python
|
||||
from robot import gripper
|
||||
gripper.state()["object_in_front"] # DI_1
|
||||
gripper.close() # DO_2 off, DO_1 on, wait MOVE_S, return state()
|
||||
gripper.state()["holding"] # closed and AI_1 below EMPTY_AI
|
||||
gripper.open_()
|
||||
```
|
||||
|
||||
| Constant | Value | Meaning |
|
||||
|---|---|---|
|
||||
| `CLOSE_DO`, `OPEN_DO` | 0, 1 | DO_1, DO_2 (0-based index) |
|
||||
| `CLOSED_AI` | 400 | AI_1 above this = closed |
|
||||
| `EMPTY_AI` | 3900 | closed and above this = nothing between the fingers |
|
||||
| `GAP_MM` | see §1 | inner gap (open, closed) at tips, belly, neck, shank |
|
||||
| `SENSOR_DI` | 0 | DI_1 |
|
||||
| `MOVE_S` | 1.5 | s to wait for a stroke |
|
||||
|
||||
Raw command: `{"cmdName": "set_digital_output", "type": 1, "index": <0|1>, "value": <0|1>}` (type 1 = tool I/O). The state comes from `get_data` (`tio_dout`, `tio_din`, `tio_ain`).
|
||||
|
||||
The API exposes `GET /gripper/state`, `POST /gripper/open`, `POST /gripper/close` (open / close are refused with 409 while a task runs); the dashboard Arm tab has Open / Close buttons and the live state. During a hand-over Lumi opens only on "thank you" or the dashboard's Release.
|
||||
|
||||
---
|
||||
|
||||
## 4. Payload and TCP
|
||||
|
||||
Settings → Payload, slot **`zimmer_gripper`**, selected as the active payload:
|
||||
|
||||
| Field | Value | Basis |
|
||||
|---|---|---|
|
||||
| Load | **1.000 kg** | estimate: gripper 0.54 kg (datasheet) + steel fingers and brackets |
|
||||
| Centre of mass | **X 30, Y 0, Z 80 mm** | estimate: fingers on the +X side of the flange, heavy body close to the flange |
|
||||
|
||||
"One-click Auto Identification" is not available: it returns error `0x0F0088` "Payload identification only be supported in floor-mounting", and the Lumi arm is side-mounted (Mounting Orientation Y 90°, do not change it). The payload is entered by hand.
|
||||
|
||||
The TCP offset is kept in the Lumi code (camera calibration and the grasp point), not in Cobo π.
|
||||
|
||||
The collision limits are at the loose defaults (force 100 %, TCP speed 5000 mm/s, momentum 10 kg·m/s, power 600 W, stop distance 4000 mm). Tighten them before the arm works near people, in small steps, checking that normal motions still pass.
|
||||
|
||||
---
|
||||
|
||||
## 5. Other gripper options on Lumi (vendor material)
|
||||
|
||||
JAKA's education kit uses a **DH Robotics DH-PGEA-50** with 3D-printed fingers, driven over **Modbus RTU (RS485)**. The tool connector's DO pins can be switched to RS485 channel 1 for this (Cobo π → I/O → Tool → DO_1 → "Reuse as RS485 channel 1"). Vendor settings: slave 1, 115200 baud, 8N1. Registers: `0x0100` initialise, `0x0101` force %, `0x0103` target position (0 closed … 1000 open), `0x0200` init state, `0x0201` grip state, `0x0202` position. The vendor demos also use a USB-RS485 adapter on the host (`/dev/DH_hand`) and DH AG-95 grippers through `pyDHgripper`. Sources: jaka-robot-demos `LUMI_DEMO-v3/.../dh_gripper.py`, JAKA_Lumi `LUMI_DEMO_BMW/LumiAgent/utilfs/python_open_gripper.py` (see [12_SOURCES.md](12_SOURCES.md)).
|
||||
|
||||
Arm-side limits for any gripper:
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Flange | ISO 9409-1, pitch circle 50 mm, 4 × M6, Ø6 H7 pin hole |
|
||||
| Payload | 2 kg in total (gripper + object), less with a larger centre-of-mass offset |
|
||||
| Tool power | 24 V or 12 V, 1 A continuous, 2 A peak |
|
||||
| Tool DO | 2 × ≤ 1 A, NPN / PNP / push-pull |
|
||||
| Tool AI | 2 × 0–10 V |
|
||||
@@ -0,0 +1,48 @@
|
||||
# 11. Safety
|
||||
|
||||
Rules for working with the real Lumi, collected from the Lumi manual, the Mini hardware manual, the JAKA App manual, the chassis manual and the vendor web doc. Read before the first power-on.
|
||||
|
||||
---
|
||||
|
||||
## 1. Stop devices
|
||||
|
||||
| Device | What it does | How to release |
|
||||
|---|---|---|
|
||||
| Red E-stop button on the column | Cuts arm power, stops the lift column; the base becomes free to push | Turn to release; then power on and enable the arm again. After release the base can no longer be pushed |
|
||||
| E-stop on the chassis | Stops the base (LED flashes) | Release the button |
|
||||
| AGV software E-stop | `/api/estop?flag=true` or "soft E-stop" in the web monitor: base motors free | `flag=false`; independent of the hardware E-stop |
|
||||
| Body Stop | `POST /api/extaxis/stop` or "Stop" on `http://192.168.10.90:5000` | Reset, enable |
|
||||
| Arm abort | `robot.motion_abort()`; Cobo π stop | — |
|
||||
|
||||
Stop categories (IEC 60204-1): Cat. 0 = power cut at once; Cat. 1 = controlled stop, then power off (E-stop button); Cat. 2 = stop on the path, stays enabled (safety functions, protective stop). The joint brakes tolerate only a limited number of emergency stops: do not use the E-stop as a normal stop.
|
||||
|
||||
## 2. Before the first start (Lumi manual 6.8)
|
||||
|
||||
- Robot standing on a flat floor, nothing within the arm's reach (580 mm + gripper) and the base's path.
|
||||
- E-stop tested and within reach of the operator.
|
||||
- Move slowly beyond the planned workspace and joint limits once to confirm that limits stop the robot.
|
||||
- Check for drops (stairs, steps) and tipping risks; the base must not reach them.
|
||||
- First tests at low speed.
|
||||
- Hot surfaces: keep flammable or heat-sensitive things away from the controller and motors.
|
||||
|
||||
## 3. Operating rules
|
||||
|
||||
1. One person watches the robot with a hand near the E-stop; the code has a stop ready (`motion_abort()`, body `stop`, AGV `estop`).
|
||||
2. Low speeds first: arm 0.2–0.5 rad/s (joint) or ≤ 50 mm/s (linear); body `vel` 10–20; base ≤ 0.2 m/s and ≤ 0.3 rad/s.
|
||||
3. Collision sensitivity: level 1 (25 N) near people (`robot.set_collision_level(1)`).
|
||||
4. **App safety zones do not work in SDK mode**: the code checks reach, workspace and joint limits before every move, and keeps a margin from the joint limits (the controller stops with a soft-limit error at the limit).
|
||||
5. Set the payload and mounting in Cobo π before arm motion; wrong payload causes false collisions or drift.
|
||||
6. `set_network_exception_handle(100, 2)`: the arm aborts if our SDK connection drops.
|
||||
7. Prefer joint moves near wrist singularities; avoid large orientation changes with linear moves.
|
||||
8. Keep the cycle time ≥ 80 % slower than the fastest possible cycle (reducer life).
|
||||
9. The lidar does not see low (< ~23 cm), black, reflective or transparent objects: watch the base.
|
||||
10. Do not push the base while it is on and not in E-stop; do not lift the wheels; do not drive with the manual charging cable plugged in.
|
||||
11. Power order: base on → arm power → enable; reverse to stop. Never cut cabinet power while the arm is powered or enabled; wait 5–10 s after shutdown.
|
||||
12. Teleoperation: be ready before pressing the side button; if the robot shakes, press the E-stop.
|
||||
|
||||
## 4. Safety facts (arm)
|
||||
|
||||
- Safety system: EN ISO 10218-1, ISO 13849-1 PL d Cat. 3; 27 safety functions in 8 groups.
|
||||
- During a running program: ≈ 1° deviation between commanded and measured joint position → stop and program end; ≈ 3.6° → stop and disable.
|
||||
- Stop time / distance charts (Lumi manual Appendix 1): graph axes up to about 250 ms and 80 mm for joints 1–2 at full speed and reach.
|
||||
- The arm is a collaborative robot but is not meant to work on people; any task that touches a person needs a separate risk assessment (ISO/TS 15066).
|
||||
@@ -0,0 +1,97 @@
|
||||
# 12. Sources and downloads
|
||||
|
||||
The vendor and third-party sources behind these docs, with download links.
|
||||
|
||||
---
|
||||
|
||||
## 1. Official GitHub
|
||||
|
||||
### JAKARobotics/JAKA_Lumi — https://github.com/JAKARobotics/JAKA_Lumi
|
||||
|
||||
About 320 MB; prefer single files via `https://raw.githubusercontent.com/JAKARobotics/JAKA_Lumi/<branch>/<path>`, or Code → Download ZIP. Use the "Go to file" search (key `T`), e.g. `pick`, `API`.
|
||||
|
||||
| Branch | Contents |
|
||||
|---|---|
|
||||
| `main` | `01.` promotional material; `02.` product manuals (Lumi manual, AGV API, chassis manual, chassis ports docx, Mini 2 manuals, JAKA App manual, Lumi SDK doc, lift-column release `lumi_release`, sensors URDF, STEP model, 2D drawing, teleop docx, ACT docx); `03.` software notes; `JAKA_Lumi_Demo_Case/` (body, AGV, compose vision demo + SDK builds); `LUMI_DEMO_BMW/` (voice vending demo, Orbbec SDK) |
|
||||
| `feat_ros` | `jaka_lumi_ros/` ROS 2 workspace (body node, body/arm trajectory servers, MoveIt 2, Isaac Sim, URDF/USD); `LUMI_DEMO-v2.zip` |
|
||||
| `LumiCode` | `Lumi_Teleoperation/` (ROS 2 VR teleop: `vr_data_pub`, `k1_robot`, `k1_msgs`, `robohub`, `OrbbecSDK_ROS2`), `Lumi_Training/` (ACT / Mobile ALOHA, JAKA Python SDK manual PDF) |
|
||||
| `feat_demo` | demo case with `2_moveto.py` combining AGV + body + arm |
|
||||
| `feat_sdk` | demo case copies |
|
||||
|
||||
### JAKARobotics/jaka-robot-demos (branch `dev/jamie`) — https://github.com/JAKARobotics/jaka-robot-demos/tree/dev/jamie
|
||||
|
||||
| Folder | Contents |
|
||||
|---|---|
|
||||
| `LUMI_DEMO-v1` | Fixed-station vision pick (Qwen-VL), hand-eye calibration, `JAKA_SDK_LINUX/jkrc.pyi`, usage docs (Chinese) |
|
||||
| `LUMI_DEMO-v2` | Multi-station pick with AGV and body, usage doc |
|
||||
| `LUMI_DEMO-v3` | Jetson Docker: NanoOWL detection, Whisper wake word, iFlytek / MeloTTS, QR scan, DH gripper over TIO, multi-camera manager, medicine-picking doc |
|
||||
| `assets/LUMI_DEMO-v3.mp4` | demo video |
|
||||
|
||||
Example program download: `.../tree/dev/jamie/LUMI_DEMO-v1/JAKA_SDK_LINUX` (file `LUMI_DEMO-v1.zip`).
|
||||
|
||||
### Third-party
|
||||
|
||||
| What | Link |
|
||||
|---|---|
|
||||
| Orbbec SDK + OrbbecViewer releases | https://github.com/orbbec/OrbbecSDK/releases |
|
||||
| Orbbec install guide | https://github.com/orbbec/OrbbecSDK/blob/main/doc/tutorial/English/Installation_guidance.md |
|
||||
| pyorbbecsdk | https://github.com/orbbec/pyorbbecsdk |
|
||||
| Mobile ALOHA / ACT | https://mobile-aloha.github.io/ , https://github.com/tonyzhaozh/act |
|
||||
| NVIDIA Jetson AGX Thor quick start | https://docs.nvidia.com/jetson/agx-thor-devkit/user-guide/latest/quick_start.html |
|
||||
| NVIDIA Thor Docker setup | https://docs.nvidia.com/jetson/agx-thor-devkit/user-guide/latest/setup_docker.html |
|
||||
| Isaac Sim 4.5 install | https://docs.isaacsim.omniverse.nvidia.com/4.5.0/installation/install_workstation.html |
|
||||
| PICO developer docs / Developer Center | https://developer-cn.picoxr.com/document/unity/set-up-the-development-environment/ , https://developer-cn.picoxr.com/resources/#pdc |
|
||||
| Docker install guide (Chinese, from vendor) | https://blog.csdn.net/educth/article/details/144138879 |
|
||||
| Alibaba DashScope (Qwen-VL API) | https://help.aliyun.com/zh/dashscope/ , keys: https://dashscope.console.aliyun.com/apiKey |
|
||||
| Balena Etcher | https://etcher.balena.io |
|
||||
|
||||
---
|
||||
|
||||
## 2. JAKA downloads and docs
|
||||
|
||||
| What | Link |
|
||||
|---|---|
|
||||
| JAKA App (1.7.2) and other software | https://www.jaka.com/download |
|
||||
| JAKA SDK v2.2.7 (zip, 63 MB) | https://www.jaka.com/prod-api/common/download/resource?resource=%2Fprofile%2Fupload%2F2025%2F04%2F25%2F20250425134342A024.zip |
|
||||
| JAKA document center | https://www.jaka.com/docs/en (JavaScript site) |
|
||||
| Python SDK page | https://www.jaka.com/docs/en/guide/V3/SDK/python.html |
|
||||
| Error codes | https://www.jaka.com/docs/en/guide/errinfo.html |
|
||||
| Add-on development | https://www.jaka.com/docs/en/guide/Add-on/1.1-AboutAdd-on.html |
|
||||
|
||||
---
|
||||
|
||||
## 3. Google Drive files
|
||||
|
||||
| File | Link |
|
||||
|---|---|
|
||||
| `Coboπ 部署与安装.pdf` (Cobo π deployment, 8 pages) | https://drive.google.com/file/d/1_clYRaAFqT8djNnPlEnCUBzQ1Gr70YsG/view |
|
||||
| `JAKA Lumi用户手册-zh-V01_20250707.pdf` (Lumi user manual) | https://drive.google.com/file/d/1eb6f43HezrzEHWXtRnmWwYEk_SkrVOwD/view |
|
||||
| `JAKA Lumi快速手册-zh-V01.pdf` (quick manual, 8 pages) | https://drive.google.com/file/d/11xu0G2LqRBy6SOnAjL18EqLV4corgPlc/view |
|
||||
| Teleoperation doc and code | https://drive.google.com/drive/folders/1jzkWls1307LE-g39JGgC2y2Ezdba1bqA |
|
||||
| Training code | https://drive.google.com/drive/folders/1q3Pp88Bm9qtZXiUwOfsYbNe7FlzjsSSY |
|
||||
| Pick-and-place demo code | https://drive.google.com/file/d/15eXxmp1p7NhvUwq3MysWsdD3LPofhZvr/view |
|
||||
|
||||
---
|
||||
|
||||
## 4. Feishu (Chinese web documentation)
|
||||
|
||||
https://tcnhi91rrwo5.feishu.cn/wiki/Tw1KwXKAbidNxKkFQFoc5oOHn9g (requires a Feishu login). Cited in these docs as "web doc <section>". Its attachments and the copies available elsewhere:
|
||||
|
||||
| Section | Attachment | Other copy |
|
||||
|---|---|---|
|
||||
| 3.1.3.1 | `JAKA Lumi用户手册-zh-V01_20250707.pdf`, `JAKA Lumi快速手册-zh-V01.pdf` | Drive / GitHub copies |
|
||||
| 3.1.3.2 | `Coboπ 部署与安装.pdf` | Drive copy |
|
||||
| 3.1.4 | `JAKA Lumi宣传单页.pdf` | GitHub `01.` promotional PDFs |
|
||||
| 3.1.5 | `底盘接口说明.docx` | GitHub `新底盘接口说明.docx` |
|
||||
| 3.1.6.1 | `AGV API手册.pdf`, `JAKA Lumi底盘使用手册.pdf` | GitHub copies |
|
||||
| 3.1.6.2 | `lumi_release.zip` (lifting column) | GitHub `升降柱【使用说明】/lumi_release/` |
|
||||
| 3.1.6.3 | `Docker下ACT学习与推理安装文档及配置说明v1.0.docx` | GitHub copy |
|
||||
| 3.1.6.4 | `信捷PLC手册.pdf` (Xinje PLC manual) | none |
|
||||
| 3.1.6.5 | `Lumi基于PICO+VR遥操作系统操作手册.pdf` | GitHub teleop quick-start docx + screenshots |
|
||||
| 3.1.7.1 | `JAKA 控制器软件.zip` (controller software) | ask JAKA |
|
||||
| 3.1.8 | `3D模型.tar`, `Lumi-model.zip`, `JAKA-Lumi-urdf.zip`, `JAKA-Lumi-2D图纸.PDF` | GitHub STEP, URDF, drawing |
|
||||
| 3.1.9 | `JAKA-Lumi-sensors-v3.zip` | GitHub sensors URDF |
|
||||
| 3.3 | `JAKA Lumi技术分享0123.pdf` (technical sharing) | none |
|
||||
| 3.3.4.4 | `ext_demo.py` (body test script) | GitHub `body_head/2_moveto.py` |
|
||||
| 3.5.3.1 | `奥比中光相机Gemini2L介绍及使用资料.pdf` (Gemini 2 L guide) | Orbbec GitHub docs |
|
||||
| 3.6.2.2 | `DH_PGEA选型手册250628_中文版_V255.pdf`, `教育夹指.stl`, finger shell STEP | none |
|
||||
@@ -0,0 +1,22 @@
|
||||
# JAKA Lumi documentation
|
||||
|
||||
Reference for connecting to, operating and developing on the JAKA Lumi. Start with **[00_START_HERE.md](00_START_HERE.md)**.
|
||||
|
||||
| # | Document | Read it when |
|
||||
|---|---|---|
|
||||
| 00 | [Start here](00_START_HERE.md) | First time: install, power on, connect, first checks, where to start coding |
|
||||
| 01 | [Hardware](01_HARDWARE.md) | You need a spec, a connector, a light code, a model file |
|
||||
| 02 | [Network and access](02_NETWORK_AND_ACCESS.md) | Connecting a computer; addresses, ports, web pages, apps |
|
||||
| 03 | [Body: lift, waist, head](03_BODY_LIFT_WAIST_HEAD.md) | Moving the four body joints |
|
||||
| 04 | [Arm](04_ARM.md) | Cobo π, Python SDK, joint space, trajectories, settings |
|
||||
| 05 | [Mobile base (AGV)](05_AGV_BASE.md) | Mapping, markers, driving, navigation, people detection |
|
||||
| 06 | [Cameras and vision](06_CAMERAS_AND_VISION.md) | Orbbec cameras, camera service, calibration, scene understanding |
|
||||
| 07 | [Voice and audio](07_VOICE_AND_AUDIO.md) | Microphone array, speaker, speech pipeline, sound direction |
|
||||
| 08 | [NVIDIA Jetson Thor](08_NVIDIA_THOR.md) | The AI computer, Docker, GPU inference, models, operating rules |
|
||||
| 09 | [ROS 2, teleop, learning, simulators](09_ROS2_TELEOP_AND_SIM.md) | MoveIt 2, Isaac Sim, VR teleoperation, ACT |
|
||||
| 10 | [Gripper](10_GRIPPER.md) | The mounted Zimmer gripper: signals, PNP setting, dimensions, `gripper.py` |
|
||||
| 11 | [Safety](11_SAFETY.md) | Before any motion |
|
||||
| 12 | [Sources and downloads](12_SOURCES.md) | Where each fact came from; download links |
|
||||
| — | [Tuning](TUNING.md) | Speeds, distances, thresholds with their file |
|
||||
|
||||
Company-internal notes (access, vendor manuals, screenshots) are in `docs/private/`, which is kept off git.
|
||||
+184
@@ -0,0 +1,184 @@
|
||||
# Tuning values
|
||||
|
||||
Every value here is a constant at the top of its file, with a comment on what it means. Change it there, then restart what uses it (top-level README, "Deploying a change"): `systemctl --user restart lumi-api` for the API and fetch (first check that `curl -s localhost:8100/status` → `base.move_status` is not `running`), `.venv/bin/python vision/camview.py --stop` and `--start` for the detector. "Estimate" marks a value not taken from a measurement or a datasheet.
|
||||
|
||||
## Arm speed
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `robot/motion.py` | `JOINT_SPEED` | slow 10, normal 25, route 40 °/s | Joint move speeds. "normal" / "route" are the dashboard's Arm pose card "Normal" / "Fast". route: estimate |
|
||||
| `robot/motion.py` | `LINEAR_SPEED` | slow 20, normal 50 mm/s | Straight move speeds |
|
||||
| `robot/motion.py` | `ACCEL_FACTOR` | 3.0 | Straight moves: acceleration = speed × this per second |
|
||||
| `robot/motion.py` | `JOINT_ACCEL_FACTOR` | 1.5 | Joint moves: acceleration = speed × this per second (route 60 °/s², normal 37.5, slow 15). Lower = softer start and stop, longer moves. Estimate |
|
||||
| `manipulation/arm_route.py` | `SPEED` | "route" | Joint moves along the pose graph (to `look`, `carry`, `give`, `ready`, `wave_out`, `wave_start`, `wave`) with an empty hand; the wave's way up |
|
||||
| `manipulation/arm_route.py` | `HOLD_SPEED` | "slow" | The same with something in the hand |
|
||||
| `manipulation/skills.py` | `EMPTY_SPEED` | "normal" | Arm with nothing in the hand: the joint move from `look` to above a cup |
|
||||
| `manipulation/skills.py` | `HOLDING_SPEED` | "slow" | With an object in the hand, and the last 10 cm down onto an object and up from it |
|
||||
| `manipulation/skills.py` | `ABOVE_MM` | 100 mm | Height above the grasp from where the arm goes straight down (slow) |
|
||||
| `manipulation/skills.py` | `MAX_TILT_DEG` | 15° | How far a held cup may lean on any move (`tasks/fetch.py` uses the same) |
|
||||
| `manipulation/wave.py` | `SWINGS` | 2 | The wave: times `wave_start` → `wave` → `wave_start` (the two taught poses, J3 −2.5° ↔ −17.2°) |
|
||||
| `manipulation/wave.py` | `SWING_SPEED` | "normal" | `motion.JOINT_SPEED` of the swings. The swings are queued back to back (no stop between them); the way up goes as `arm_route.goto`, with a stop at each pose |
|
||||
| `manipulation/wave.py` | `ARRIVE_SPEED` | "normal" | The way up's last move, `wave_out` → `wave_start` (J1 60°); "slow" for a softer arrival |
|
||||
| `robot/motion.py` | `SLOW_DEG_S`, `EXTRA_S` | 5 °/s, 10 s | The longest a joint move may take: its largest joint travel at this slow rate (or 3× the planned time if longer), plus `EXTRA_S`; then the arm is stopped. Long moves run at 4.3–7 °/s whatever speed is asked |
|
||||
| `robot/motion.py` | `STILL_S` | 2 s | An arm standing this long short of its target has stopped short: stopped, nothing more sent |
|
||||
| `robot/motion.py` | `SETTLE_S` | 0.3 s | After each arrival (inpos, joints within 0.3°) the arm stands this long before the next move of a route or wave. Estimate |
|
||||
| `manipulation/arm_route.py` | `HEAD_CLEAR_MM` | 250 mm | The gripper (flange, grasp point, finger tips) keeps this from the head's turning centre (`head_cam.head_centre()`) on every pose-graph move, the wave and straight moves with an object. The head camera is 102 mm from that centre; `look` keeps 327 mm. Estimate (head size not measured) |
|
||||
| `manipulation/arm_route.py` | `EDGES` | give–carry, carry–look, look–wave_out, wave_out–wave_start, wave_start–wave, look–ready | The only joint moves between named poses |
|
||||
| `manipulation/arm_route.py` | `JOIN_DEG` | 20° | An arm at no pose (free drive, stopped half way) joins the graph by one checked joint move only when every joint is this close to a pose; else it does not move and asks to be brought near `look` |
|
||||
| `manipulation/arm_route.py` | `AT_POSE_DEG`, `EXACT_DEG` | 3°, 1° | At a pose for programs and `check` / further than 1° from the nearest pose a route first goes to it |
|
||||
| `api/dashboard.html` | `MAP_POLL_MS` | 20000 ms | The dashboard reads the map's markers again this often (markers added on the base, a map switched) |
|
||||
|
||||
## Lift and base
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `tasks/fetch.py` | `SURFACE_Z` | −560 … −30 mm | Arm-frame heights (after the lift) of surfaces the arm picks from / puts on; outside: refused (floor, low seats) |
|
||||
| `tasks/fetch.py` | `LIFT_VEL` | 20 % | Lift speed in fetch |
|
||||
| `robot/head.py` | `LIFT_MAX_MM` | 105 mm | Highest lift anything moves to, limited by the head camera cable (250 with a longer cable); `fetch.LIFT_RANGE`, `LIFT_TRIES` and the dashboard jog follow it |
|
||||
| `tasks/fetch.py` | `LIFT_DRIVE_MM` | 75 mm | Lift height for every drive and at every task's end |
|
||||
| `tasks/fetch.py` | `AXIS_SPEED` | 0.05 m/s | Straight drives with `joy_control` (the last part of a reach, measure-axis) |
|
||||
| `tasks/fetch.py` | `STRAIGHT_MAX_M` | 0.6 m | A reach needing a longer drive than this goes by navigation; shorter ones turn on the spot and drive straight |
|
||||
| `tasks/fetch.py` | `STANDOFF_M` | 0.4 m | Navigation stops this far back from the pose that reaches the object, facing it; the rest is a straight drive (navigation does not go near a table) |
|
||||
| `tasks/fetch.py` | `BASE_HALF_M`, `CLEAR_M` | 0.255 + 0.05 m | A straight drive is checked every 5 cm (lidar + map, `/api/map/distance_probe`) and ends where the base centre would come closer than their sum to an obstacle. The lidar sees table legs, not always a table top's edge |
|
||||
| `tasks/fetch.py` | `SELF_MM` | 120 mm | Depth this near the arm's own points is the arm itself in the camera's view (turn check) |
|
||||
| `tasks/fetch.py` | `ARM_CLEAR_M`, `SWEEP_STEP_DEG` | 0.10 m, 10° | Before turning on the spot: flange, grasp point and finger tips must stay this far from anything the lidar / map shows, checked every this many degrees |
|
||||
| `robot/nav_guard.py` | `MARGIN_M`, `LOOKAHEAD_M`, `STEP_M`, `TURN_AHEAD_S` | 0.10 m, 0.30 m, 0.15 m, 0.5 s | While navigation drives (go to, missions, fetch legs, come here, dock): flange, grasp point and finger tips are checked at the base's pose, turned on at its turn rate for `TURN_AHEAD_S`, and every `STEP_M` along the planned path up to `LOOKAHEAD_M`; an arm point nearer than `MARGIN_M` to anything the lidar / map shows (and nearer than now) cancels the move. Estimates |
|
||||
| `robot/nav_guard.py` | `CLEAR_S`, `BLOCK_S` | 1 s, 10 s | The same goal is sent again after the way has been clear this long; blocked this long in all: "I stopped: my arm would hit something on the way" |
|
||||
| `tasks/fetch.py` | `STUCK_S`, `STUCK_M` | 30 s, 0.1 m | A navigation drive that has not moved this far in this time is cancelled |
|
||||
| `assistant/lumi.py` | `FOLLOW_VOICE_DEG`, `FOLLOW_SORRY_S` | 35°, 20 s | While following, a voice this near the followed person's angle is theirs (estimate); the "I'm following someone" line at most this often |
|
||||
| `tasks/follow.py` | `FOLLOW_GAP_M`, `NEAR_STOP_M` | 1.0 m, 0.8 m | "Follow me": camera distance kept to the person (nearer: no forward); nearer than `NEAR_STOP_M` no turn either. Estimate |
|
||||
| `tasks/follow.py` | `FOLLOW_MAX_MS`, `SPEED_GAIN` | 0.5 m/s, 0.8 /s | Follow speed cap (joy_control's own clamp, [05_AGV_BASE.md](05_AGV_BASE.md)); speed = their walking speed + this per m beyond the gap |
|
||||
| `tasks/follow.py` | `ACCEL_MS2`, `DECEL_MS2` | 0.5, 0.8 m/s² | Speeding up / slowing down limits; never faster than lets the base stop at the gap with `DECEL_MS2`. Estimates |
|
||||
| `tasks/follow.py` | `TURN_GAIN`, `TURN_MAX_RS`, `TURN_ACCEL_RS2`, `TURN_DEAD_DEG`, `TURN_ONLY_DEG` | 1.5, 0.6 rad/s, 2.0 rad/s², 5°, 35° | Turning toward the person: gain, cap, change limit, no turn within, no forward beyond (turn first) |
|
||||
| `tasks/follow.py` | `STALE_S`, `COAST_S`, `LOST_S` | 0.4 s, 1.0 s, 3 s | A sighting older than `STALE_S` is not new; unseen, the base drives on toward where they should be for `COAST_S`, then slows; "I lost you" after `LOST_S` |
|
||||
| `tasks/follow.py` | `VEL_TAU_S`, `WALK_MAX_MS` | 0.5 s, 2 m/s | Walking-velocity filter time constant; faster estimates are noise |
|
||||
| `tasks/follow.py` | `JUMP_M`, `GATE_GROW_MS`, `SWITCH_M`, `RELOCK_LOOK` | 0.5 m, 0.7 m/s, 0.15 m, 0.6 | Keeping the person: a sighting further than `JUMP_M` (+ `GATE_GROW_MS` per s unseen) from where they should be is someone else; another track must be `SWITCH_M` nearer to be taken; clothes `reid.same` below `RELOCK_LOOK` never taken. Estimates |
|
||||
| `tasks/follow.py` | `HEAD_YAW_MAX`, `HEAD_PITCH`, `HEAD_STEP_DEG`, `HEAD_LEAD_S`, `HEAD_VEL` | 180°, 10°, 3°, 0.3 s, 50 % | Head on the person while following: yaw limit (the body API range; right behind it keeps the side it came from), fixed pitch, smallest move, sent where they will be this much later, speed |
|
||||
| `tasks/follow.py` | `BRAKE_S`, `BLOCKED_END_S` | 0.5 s, 5 s | Each command is checked where the base (`BASE_HALF_M + CLEAR_M`) and the arm (`ARM_CLEAR_M`) would be this much later; blocked this long: "Something is in my way" |
|
||||
| `tasks/follow.py` | `TICK_S`, `LOG_S` | 0.1 s, 1 s | Command rate (steady); `follow: v … w … driven … person … head … tick` line (driven = the base's real speed from its pose) in `logs/lumi_console.log` |
|
||||
| `assistant/lumi.py` | `MATCH_DEG_PER_M` | 10 °/m | Person tracking: each m of distance difference counts as this many degrees when a detection is given to a track. Estimate |
|
||||
| `vision/person.py` | `HEAD_POLL_S` | 0.1 s | Head yaw read this often by the camera service (a person's angle is off by the head's turn in this time) |
|
||||
| AGV panel `:9001` | navigation speed | AGV setting | Speed of drives to markers and points; an AGV setting, changed only by the owner |
|
||||
|
||||
## Search and reach
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `tasks/fetch.py` | `VIEW_STEPS` | 60°, 120°, 180° | Search: after ahead, both cameras look this far to the busier side step by step, then to the other side |
|
||||
| `tasks/fetch.py` | `WAIST_SCAN_MAX` | 120° | The waist turns up to this in the search (body limit ±140° absolute), the head turns the rest |
|
||||
| `tasks/fetch.py` | `SEARCH_BASE_DEG` | 180°, 90° | Then the base turns towards the busier side, the first of these whose sweep is clear, and all again |
|
||||
| `tasks/fetch.py` | `LIFT_TRIES` | 0, 105 mm (`LIFT_RANGE`) | Nothing found: all of it again at the other end |
|
||||
| `tasks/fetch.py` | `APPROACH_TRIES` | 5 | Base moves to bring an object into reach before asking the person |
|
||||
| `tasks/fetch.py` | `PICK_ZONE_CENTRE` | (−100, 580) mm | Where a base move brings an object (arm base frame) |
|
||||
| `tasks/fetch.py` | `LOST_BACK_M`, `LOST_TURN_DEG` | 0.15 m, 20° | An object lost after a base move: back off, turn each way, look again |
|
||||
| `tasks/fetch.py` | `WIDTH_NEAR_MM` | 250 mm | A width further than this from the pick zone does not refuse a pick (far widths read ~8 mm too wide); measured again up close |
|
||||
| `manipulation/skills.py` | `MIN_WIDTH`, `MAX_WIDTH` | 72, 92 mm | Object widths the gripper takes (belly open 96, closed 70; tips open 88 / close to 59; [10_GRIPPER.md](10_GRIPPER.md)). `MIN_WIDTH` 61 enables the finger-tip grasp (61–72 mm) |
|
||||
| `manipulation/skills.py` | `BELLY_MIN_MM` | 72 mm | Thinner objects are held between the finger tips (the belly closes only to 70 mm) |
|
||||
| `manipulation/skills.py` | `TIPS_OFFSET` (`data/grasp_tips_teach.json` `tips_offset_flange`) | [−0.4, −4.6, 28.2] mm | Finger-tip grasp: the object's axis goes this far from the hooks' belly centre (flange frame, level, turned with the grasp); taught |
|
||||
| `manipulation/skills.py` | `TIP_CLEAR_MM`, `ROUND_BITE_MM` | 10, 10 mm | Round things (apple, orange, ball): the finger tips (`TIP_MM` 60, estimate) stay this far above the table; the grasp point at least this far below the top, else refused. Estimates |
|
||||
| `manipulation/skills.py` | `BELOW_SHOULDER_MM` | 80 mm | Bottles: the grasp point this far below where the body begins; the hand's lowest part (`TIP_MM` below) must stay `TIP_CLEAR_MM` above the table under it (`table_near`, else the bottle's lowest point seen) |
|
||||
| `vision/objects.py` | `SLICE_MM`, `BODY_PCT`, `BODY_FRACTION` | 10 mm, 75, 0.9 | A bottle's width profile (`objects.body`): slices this thick; its body as wide as this percentile of the slices; the body begins at the first slice from the top this much as wide |
|
||||
| `manipulation/skills.py` | `GRASPS` | cup upright; apple, orange, sports ball round; the rest refused | Which classes are picked and how |
|
||||
| `tasks/fetch.py` | `PICK_TRIES` | 2 | A missed / slipped pick is tried this often |
|
||||
| `manipulation/skills.py` | `SEEN_UNDER_MM` | 8 mm | Added to the camera's width to get the width the fingers meet (`grip_width`), which the limits above are compared with |
|
||||
| `tasks/fetch.py` | `HEAD_READS`, `HEAD_SAME_MM` | 4, 120 mm | Head camera frames read per view; a thing counts when seen at least twice within this distance |
|
||||
| `tasks/fetch.py` | `HEAD_SIDE_DEG` | 60° | Head yaw towards the side of a turn on the spot, for the arm-sweep check (`head_hits`) |
|
||||
| `tasks/fetch.py` | `HEAD_LOW_PITCH` | −5° | Head pitch for the search and `head_hits` (its lowest, where the head camera is calibrated) |
|
||||
| `manipulation/skills.py` | `FRAME_LAG_S`, `FRESH_WAIT_S` | 0.15 s, 2 s | After a lift / waist / head / base move, depth and detections come from the first frame written this long after it (no fixed wait); give up after the second |
|
||||
| `tasks/fetch.py` | `COAST_S` | 0.3 s | Frames after a straight `joy_control` drive are taken from this long after the stop. Estimate |
|
||||
| `tasks/fetch.py` | `DRIVE_POLL_S`, `DRIVE_START_S` | 0.2 s, 3 s | Base status reads while driving; a drive not seen "running" counts as over after the second (at once when it reports "succeeded" at the goal pose) |
|
||||
| `tasks/fetch.py` | `GIVE_WAIT_S` | 30 s | Giving: no "thank you" / Release by then, keep holding it |
|
||||
|
||||
## Missions
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `assistant/steps.py` | `MOVE_MAX_M` | 3.0 m | Longest single `move` in a mission; longer is refused before it starts |
|
||||
| `tasks/fetch.py` | `MOVE_SPEED` | 0.10 m/s | Speed of a mission `move` (straight, joy_control). Estimate |
|
||||
| `tasks/fetch.py` | `SHORT_MOVE_M` | 0.10 m | A shorter `move` goes at `AXIS_SPEED` |
|
||||
| `tasks/fetch.py` | `SPEED_STEP`, `SPEED_MIN`, `SPEED_MAX` | 0.2, 0.4, 1.6 | "Faster" / "slower" by voice: step and limits as parts of the normal speed (moves `MOVE_SPEED` × it). Estimates |
|
||||
| `tasks/fetch.py` | `NAV_SPEED_MPS`, `NAV_TURN_RADS` | 0.3 m/s, 0.3 rad/s | Navigation's own limits (`/api/get_params`) = normal; voice only lowers the linear one (`/api/set_params`) |
|
||||
| `assistant/driving.py` | `MOVE_MAX_M`, `MOVE_MIN_M` | 3 m, 0.01 m | Longest / shortest drive by voice; outside is refused with the limit |
|
||||
| `assistant/driving.py` | `TINY_M`, `SPAN_M`, `STEP_M`, `LITTLE_M`, `DEFAULT_M` | 0.05, 0.2, 0.5, 0.5, 1 m | "A tiny bit" / 살짝, 한 뼘, one step, "a little" / 조금, no amount said. Estimates |
|
||||
| `tasks/fetch.py` | `RECEIVE_WAIT_S` | 30 s | `receive`: nothing put in the hand by then, the mission fails with the hand open |
|
||||
| `assistant/steps.py` | `WAIT_SHORT_S` | 10 s | "wait a moment", "잠깐 기다렸다가": how long a short wait is |
|
||||
| `assistant/steps.py` | `WAIT_MAX_S` | 30 min | Longest wait step (and receive wait); longer is refused before it starts |
|
||||
| `assistant/steps.py` | `WAIT_GIVE_S` | 5 min | "wait until someone gives you the cup": the hand is held out this long, then the mission fails there |
|
||||
| `assistant/steps.py` | `WAIT_ORDER_S` | 5 min | "do what they tell you": no instruction by then, the mission goes on with its rest |
|
||||
| `tasks/fetch.py` | `RECEIVE_REACH_MM`, `RECEIVE_SHORT_MM`, `RECEIVE_MIN_MM` | 150, 100, 20 mm | "Take this from my hand" and "reach out to me": the hand moves at most this far from `give` towards the thing in the hand (or their hand), stops this far before it, leaves out a shorter move. Estimates |
|
||||
| `tasks/fetch.py` | `REACH_BODY_MM` | 300 mm | "Reach out to me" with no hand of theirs seen: the hand stops this far before the person's body. Estimate |
|
||||
| `assistant/lumi.py` | `REACH_FRONT_DEG` | 20° | "Reach out to me": a person further to the side is turned to first (Patrol) or asked to stand in front (Greeter). Estimate |
|
||||
| `tasks/fetch.py` | `POINT_STEPS_MM` | 0, ±50, ±100 mm | "Put it here" with pointing: spot grid around the pointed point |
|
||||
| `tasks/fetch.py` | `RECEIVE_DI_S` | 0.5 s | `receive`: the finger sensor (DI_1) must see something this long before Lumi asks the person to let go (the hand closes on their "okay") |
|
||||
| `tasks/fetch.py` | `MOVE_SEGMENT_M` | 0.25 m | A mission `move` is driven in pieces this long; the way of the base and the arm is checked again before each |
|
||||
|
||||
## Placing
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `tasks/fetch.py` | `PLACE_GRID_X`, `PLACE_GRID_Y` | x −260…−60 step 40, y 640…740 mm | Place spots tried in front (after the pick spot); IK refuses the ones out of reach |
|
||||
| `tasks/fetch.py` | `PLACE_GOAL` | (−160, 670) mm | Where the base brings a table spot seen further away |
|
||||
| `tasks/fetch.py` | `FAR_R_MM`, `FAR_HALF_DEG`, `FAR_IN_MM` | 0.6–3 m, ±45°, 150 mm | A table further away: level tops looked for on sight lines this far, within this of where the camera looks; the base goes to the point this far in from its nearest edge |
|
||||
| `tasks/fetch.py` | `TOP_NEAR_MM` | 1500 mm | A named thing's top measured further away is not trusted: the base goes closer first |
|
||||
| `tasks/fetch.py` | `FURNITURE` | table, chair, couch, bench, bed, sink, toilet, desk | Classes the cameras mix up: a named piece of furniture matches any of them in its colour |
|
||||
| `manipulation/skills.py` | `FLAT_DEG`, `FLAT_PATCH`, `TABLE_MIN_POINTS` | 12°, 7 × 7 px 3 px apart, 6 | A table height: the depth around a sight line must lie on a plane leaning less than this; at least this many such points within `TABLE_TOL_MM` |
|
||||
| `tasks/fetch.py` | `NEAR_THING_MM` | 400 mm | Place grid spots this near a named thing ("the white sink"), at its top's height, count as on it |
|
||||
| `manipulation/skills.py` | `TABLE_RING_MM`, `TABLE_TOL_MM` | 50 mm, 25 mm | A place spot must be table at its centre and 8 points this far around, within this of the table height |
|
||||
| `manipulation/skills.py` | `TABLE_NEAR_RING_MM` | 25 mm | A near-side ring point below the camera's view is checked this far from the centre instead |
|
||||
| `manipulation/skills.py` | `FREE_MM` | 110 mm | A place spot keeps this far from things standing on the table |
|
||||
|
||||
## Detection
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `vision/person.py` | `OBJECT_SCORE` | 0.35 | Lowest YOLO score for an object |
|
||||
| `vision/person.py` | `WEAK_SCORE` | cup 0.05 | Lower score for cups, kept only when depth measures a cup-sized thing (`vision/objects.py` `WEAK`) |
|
||||
| `vision/objects.py` | `WEAK` | cup: width 40–110, height 50–250 mm | Size a weak cup box must have |
|
||||
| `vision/reid.py` | `FACE_SAME`, `SAME` | 0.30, 0.90 | Same person: face cosine (a track's first faces against the person's mean face) at least this; without both faces, clothes likeness at least this. Typical on the head camera: the same person 0.51–0.74 face, 0.48–0.97 clothes; other people ≤ 0.08 face, up to 0.86 clothes |
|
||||
| `assistant/lumi.py` | `FACE_FRAMES`, `FACE_WAIT_S` | 3, 1.0 s | Faces seen on a new track before Lumi decides who it is and greets; without them it waits at most this long after `HOLD_S`, then the clothes decide |
|
||||
| `vision/reid.py` | `FACE_MAX_M`, `FACE_SCORE` | 2.0 m, 0.85 | Faces are looked for only this close, and kept from this detector score (turned faces are not) |
|
||||
| `vision/reid.py` | `FORGET_S` | 600 s | Someone not seen this long is new again: the full greeting |
|
||||
| `assistant/lumi.py` | `RECENT_S` | 150 s | Back within this while the talk was open: Lumi listens on without a word; later, or after a goodbye: "Welcome back! How can I help you?" |
|
||||
| `vision/person.py` | `ZOOM` | 3 torso crops | Parts of the frame looked at a second time, bigger |
|
||||
| `manipulation/skills.py` | `MIN_SEEN` | 5 of 8 frames | An object must be seen this often at the same place |
|
||||
| `manipulation/skills.py` | `HAND_PROBE_MM`, `HAND_NEAR_MM`, `HAND_FAR_MM` | 30/50/70, 60, 250 mm | In-hand check by depth (`hand_sees`) |
|
||||
|
||||
## Voice
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `assistant/voice_words.py` | `VOLUME_STEP` | 10 % | One "speak louder" / "quieter" step of the speaker mixer (`data/volume.txt`, also songs) |
|
||||
| `assistant/voice_words.py` | `VOLUME_MIN`, `VOLUME_MAX` | 30 %, 90 % | Limits for the voice commands (the dashboard may set any value; "louder" never lowers it) |
|
||||
| `assistant/voice_words.py` | `SPEED_STEP` | 0.1 | One "speak slower" / "faster" step of the Supertonic speed (`data/speech_speed.txt`) |
|
||||
| `audio/mouth.py` | `SPEED`, `SPEED_MIN`, `SPEED_MAX` | 0.92, 0.72, 1.2 | Speaking speed without a stored value, and the limits (Supertonic takes 0.7–2.0) |
|
||||
| `audio/mouth.py` | `SPLIT_WORDS` | 8 words | TTS on the CPU only (GPU engines not loaded): a first sentence this long is said in two parts, cut after its first comma (3 words in or later), so the voice starts ~1 s sooner. On the GPU a sentence is said whole |
|
||||
| `audio/mouth.py` | `STEPS` | 4 | Supertonic synthesis steps (quality / speed). On the GPU a step takes a few ms, on the CPU 0.1–0.27 s |
|
||||
| `audio/mouth.py` | `ECHO_MIN`, `ECHO_TOP_DB`, `ECHO_MIN_FRAMES`, `ECHO_LAG_S`, `ECHO_KEEP_S` | 0.6, 15 dB, 12, −0.3…1.0 s, 30 s | Lumi's own voice in the clip mic: a clip-mic utterance whose spectrogram (16 bands, its frames within `ECHO_TOP_DB` of its loudest, at least `ECHO_MIN_FRAMES`) correlates at least `ECHO_MIN` with what the speaker played `ECHO_LAG_S` earlier is dropped before whisper (`mouth.own_voice`; check: `tests/echo_check.py`). Estimate |
|
||||
| `audio/tts_gpu.py` | `MAX_LEN` | 640 | Longest text / latent (~44 s of speech) the TensorRT engines take; longer goes to the CPU. A change needs `tts_gpu.py build` |
|
||||
| `audio/ears.py` | `WHISPER_MODEL` | `ggml-large-v3-turbo.bin` (f16) | Speech-to-text model; takes effect when the whisper-server is started again (check: `tests/asr_check.py`) |
|
||||
| `audio/ears.py` | `PROMPT`, `LANG_PROMPT` | "Hi Lumi. Hey Lumi. 루미야."; one per language | Whisper's prompt (spells the name); `LANG_PROMPT` when asked again in one language |
|
||||
| `audio/ears.py` | `MIN_LOGPROB` | −1.0 | Below this average log-probability Lumi asks to say it again |
|
||||
| `audio/ears.py` | `KO_BONUS`, `ODD_KO_BONUS` | 0.3, 0.3 | How much more a Hangul transcription counts when whisper named another language / wrote English with a word no dictionary has |
|
||||
| `audio/ears.py` | `VAD_P`, `MIN_SPEECH_S` | 0.3, 0.1 s | A sound needs this many seconds of 32 ms frames Silero calls speech (probability above `VAD_P`), else it is music or noise and never reaches whisper. Higher drops more music but also short words ("네.", "Stop." are 0.3–0.4 s) |
|
||||
| `audio/ears.py` | `SPEECH_PER_SYLLABLE` | 0.05 s | A text needs this much speech per syllable, else it came from music |
|
||||
| `audio/ears.py` | `NOT_SAID` | no word, a leading "-", 자막 / 시청해 주셔서 / thanks for watching | Whisper's subtitle texts for music, dropped |
|
||||
| `audio/ears.py` | `BEAM_SIZE` | 0 (greedy) | Whisper beam search |
|
||||
| `audio/sing.py` | `BANK_SIM`, `BANK_MARGIN` | 0.80, 0.05 | Song bank (`assistant/song_bank.py`): words this similar (bge-m3) to a wording that asks for a song / the songs, and this much closer than to any wording of another kind, sing / list at once without the LLM. Lower catches more and risks wrong songs |
|
||||
| `audio/sing.py` | `BANK_MIN_WORDS` | 3 | The song bank reads only words with a song / music word and at least this many words |
|
||||
| `audio/ears.py` | `MERGE_WAIT_S` | 1.5 s | A sentence cut off by a pause (it ends on "let's", "can you", "and", "저기" …: `CUT_OFF`) waits this long for the rest, heard as one sentence (`mic.END_SILENCE` is 0.6 s) |
|
||||
| `audio/mic.py` | `EARLY_QUIET_S`, `EARLY_MIN_S`, `EARLY_MAX_S` | 0.3 s, 0.4 s, 4.0 s | After this much quiet inside an utterance (0.4–4 s long so far) whisper starts on it; the result is used when the utterance ends with no new speech. Longer utterances are talk with pauses, where each early run delays the last |
|
||||
| `audio/ears.py` | `SAME_WORDS` | 0.8 | Korean-tagged text in Latin letters asked again in English is taken as English when the two readings' letters match this much (difflib ratio) |
|
||||
| `audio/ears.py` | `STOCK`, `REPEAT` | 감사합니다, thank you, hey, hi, bye (not 네 / yes); a 2+ word phrase three times | Dropped: stock words written for a sound whisper took for another language; whisper repeating itself |
|
||||
| `audio/sing.py` | `FILLER`, `FILLER_KO`, `VERB_KO` | word lists | Words around a song request that are never a title; any other word where a title goes ("sing ___", "___ 노래", "by ___") is a song Lumi doesn't have: said so, its own offered |
|
||||
| `assistant/llm_direct.py` | `KEEP_EVERY_S` | 60 s | How often Ollama is told to keep the model loaded (it doesn't see the direct requests) |
|
||||
|
||||
## Web answers
|
||||
|
||||
| File | Name | Default | What it does |
|
||||
|---|---|---|---|
|
||||
| `assistant/web.py` | `SEARCH_WAIT_S` | 2.0 s | All sources get this long together (Naver, Wikipedia ~0.7 s, Google News 0.4–1.6 s); a slower one is left out |
|
||||
| `assistant/web.py` | `PAGE_CHARS`, `BLOCK_CHARS`, `WIKI_CHARS` | 1500, 600, 500 chars | Text of the search page, of one part of it, of the Wikipedia summary given to the LLM; Korean is ~1 token a char and the runner reads ~1300 tokens/s |
|
||||
| `assistant/web.py` | `NEWS_ITEMS` | 3 | Headlines given, only for questions about what changes (`NEWSY`) |
|
||||
| `assistant/web.py` | `SEARCH_TTL`, `WEATHER_TTL` | 600 s | A search / weather answer is reused this long |
|
||||
| `assistant/web.py` | `WEATHER_DAYS` | 7 | Days of forecast given with the weather ("tomorrow", "모레", "this weekend") |
|
||||
| `assistant/web.py` | `TOWN` | 50000 people | A smaller geocoded place is not taken for a "how far" distance (often a namesake) |
|
||||
Reference in New Issue
Block a user