Skip to content

Commit d182650

Browse files
committed
update with 10Gbe
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
1 parent 13c6f80 commit d182650

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

‎aic_logging/README.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
# 📦 AIC Logging (`aic_logging`)
22

3-
This package provides a **decoupled, external recording workflow** for logging ROS 2 topics, services, and actions from the AIC solution context to MCAP bag files over a 1GbE network connection.
3+
This package provides a **decoupled, external recording workflow** for logging ROS 2 topics, services, and actions from the AIC solution context to MCAP bag files over a 10GbE network connection.
44

55
---
66

7-
## 🏗️ Architecture & 1GbE Network Bandwidth Math
7+
## 🏗️ Architecture & 10GbE Network Bandwidth Math
88

9-
Rather than recording bag files directly inside Kubernetes pod services (which introduces storage I/O bottlenecks and pod lifecycle constraints), recording is offloaded to a **dedicated external recording machine** connected to the Industrial PC (IPC) network over a 1GbE link.
9+
Rather than recording bag files directly inside Kubernetes pod services (which introduces storage I/O bottlenecks and pod lifecycle constraints), recording is offloaded to a **dedicated external recording machine** connected to the Industrial PC (IPC) network over a high-speed **10GbE link**.
1010

1111
### Bandwidth Calculation for 3x 5MP Cameras:
1212
- **Single 5MP Uncompressed RGB8 Frame**: ~2448 × 2048 × 3 bytes = **~15 MB per frame** (120 Megabits).
1313
- **3 Cameras** (`wrist_camera_1`, `wrist_camera_2`, `workcell_camera_1`): **45 MB per synchronized frame set**.
14-
- **1GbE Real-world Network Limit**: ~85–90 MB/s (~700–720 Mbps) safe operational ceiling.
14+
- **10GbE Real-world Network Limit**: ~950–1,000 MB/s (~7.6–8.0 Gbps) safe operational ceiling.
1515

16-
| Frequency / Camera | Total Image Data Rate | 1GbE Network Status |
16+
| Frequency / Camera | Total Image Data Rate | 10GbE Network Status |
1717
| :--- | :--- | :--- |
18-
| **5.0 Hz** | $3 \times 15\text{ MB} \times 5 = \mathbf{225\text{ MB/s}}\ (1.8\text{ Gbps})$ | ❌ **Saturates 1GbE link** (Drops frames) |
19-
| **2.0 Hz** | $3 \times 15\text{ MB} \times 2 = \mathbf{90\text{ MB/s}}\ (720\text{ Mbps})$ | ✅ **Selected Operational Cap** (~720 Mbps) |
20-
| **1.5 Hz** | $3 \times 15\text{ MB} \times 1.5 = \mathbf{67.5\text{ MB/s}}\ (540\text{ Mbps})$ | ✅ **Conservative Safe Rate** |
18+
| **30.0 Hz** | $3 \times 15\text{ MB} \times 30 = \mathbf{1,350\text{ MB/s}}\ (10.8\text{ Gbps})$ | ❌ **Exceeds 10GbE link** (Drops frames) |
19+
| **20.0 Hz** | $3 \times 15\text{ MB} \times 20 = \mathbf{900\text{ MB/s}}\ (7.2\text{ Gbps})$ | ✅ **Selected Operational Rate** (~72% of 10GbE) |
20+
| **15.0 Hz** | $3 \times 15\text{ MB} \times 15 = \mathbf{675\text{ MB/s}}\ (5.4\text{ Gbps})$ | ✅ **Conservative Safe Rate** |
2121

22-
To guarantee no network dropouts over raw 1GbE, the Zenoh router configuration downsamples the 3x 5MP uncompressed image topics to **2.0 Hz**.
22+
Over a 10GbE link, streaming 3x 5MP uncompressed cameras at **20.0 Hz** consumes **900 MB/s (7.2 Gbps)**, comfortably operating within the 10GbE network bandwidth budget.
2323

2424
---
2525

2626
## ⚙️ Configuration Files
2727

2828
### 1. Zenoh Router Configuration (`zenoh_router_config.json5`)
29-
Configures 2.0 Hz downsampling rules for wrist and workcell camera RGB streams and camera info topics:
29+
Configures 20.0 Hz rate limiting rules for wrist and workcell camera RGB streams and camera info topics:
3030

3131
```json5
3232
{
@@ -42,12 +42,12 @@ Configures 2.0 Hz downsampling rules for wrist and workcell camera RGB streams a
4242
]
4343
},
4444
downsampling: [
45-
{ key_expr: "**/wrist_camera_1/rgb/**", freq: 2.0 },
46-
{ key_expr: "**/wrist_camera_1/camera_info/**", freq: 2.0 },
47-
{ key_expr: "**/wrist_camera_2/rgb/**", freq: 2.0 },
48-
{ key_expr: "**/wrist_camera_2/camera_info/**", freq: 2.0 },
49-
{ key_expr: "**/workcell_camera_1/rgb/**", freq: 2.0 },
50-
{ key_expr: "**/workcell_camera_1/camera_info/**", freq: 2.0 }
45+
{ key_expr: "**/wrist_camera_1/rgb/**", freq: 20.0 },
46+
{ key_expr: "**/wrist_camera_1/camera_info/**", freq: 20.0 },
47+
{ key_expr: "**/wrist_camera_2/rgb/**", freq: 20.0 },
48+
{ key_expr: "**/wrist_camera_2/camera_info/**", freq: 20.0 },
49+
{ key_expr: "**/workcell_camera_1/rgb/**", freq: 20.0 },
50+
{ key_expr: "**/workcell_camera_1/camera_info/**", freq: 20.0 }
5151
]
5252
}
5353
```
@@ -111,7 +111,7 @@ cd src/aic
111111
pixi install
112112
```
113113

114-
### 2. Start the Local Zenoh Router (2.0 Hz Rate Limit)
114+
### 2. Start the Local Zenoh Router (20.0 Hz Rate Limit)
115115
```bash
116116
pixi run ros2 run rmw_zenoh_cpp rmw_zenohd --config aic_logging/zenoh_router_config.json5
117117
```
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// Zenoh Router Configuration for AIC External Recording Machine
33
// Bridges local ROS 2 network traffic to the Industrial PC (IPC) Kubernetes cluster router
4-
// and enforces topic rate limiting / downsampling over the 1GbE network link.
4+
// over a 10GbE network link.
55

66
mode: "router",
77

@@ -20,37 +20,37 @@
2020
},
2121

2222
// Traffic control & Downsampling rules
23-
// Capping 3x 5MP cameras at 2.0 Hz = 3 * 15 MB * 2 Hz = 90.0 MB/s (~720 Mbps), staying within 1GbE
23+
// 3x 5MP uncompressed cameras @ 20 Hz = 3 * 15 MB * 20 Hz = 900 MB/s (~7.2 Gbps), safely within 10GbE link
2424
downsampling: [
2525
{
26-
// Wrist Camera 1 RGB stream (5MP uncompressed @ 2.0 Hz)
26+
// Wrist Camera 1 RGB stream (5MP uncompressed @ 20.0 Hz)
2727
key_expr: "**/wrist_camera_1/rgb/**",
28-
freq: 2.0
28+
freq: 20.0
2929
},
3030
{
3131
// Wrist Camera 1 Camera Info
3232
key_expr: "**/wrist_camera_1/camera_info/**",
33-
freq: 2.0
33+
freq: 20.0
3434
},
3535
{
36-
// Wrist Camera 2 RGB stream (5MP uncompressed @ 2.0 Hz)
36+
// Wrist Camera 2 RGB stream (5MP uncompressed @ 20.0 Hz)
3737
key_expr: "**/wrist_camera_2/rgb/**",
38-
freq: 2.0
38+
freq: 20.0
3939
},
4040
{
4141
// Wrist Camera 2 Camera Info
4242
key_expr: "**/wrist_camera_2/camera_info/**",
43-
freq: 2.0
43+
freq: 20.0
4444
},
4545
{
46-
// Workcell Camera 1 RGB stream (5MP uncompressed @ 2.0 Hz)
46+
// Workcell Camera 1 RGB stream (5MP uncompressed @ 20.0 Hz)
4747
key_expr: "**/workcell_camera_1/rgb/**",
48-
freq: 2.0
48+
freq: 20.0
4949
},
5050
{
5151
// Workcell Camera 1 Camera Info
5252
key_expr: "**/workcell_camera_1/camera_info/**",
53-
freq: 2.0
53+
freq: 20.0
5454
}
5555
]
5656
}

0 commit comments

Comments
 (0)