-
Notifications
You must be signed in to change notification settings - Fork 394
DimSim: configurable sensor publish rates #1736
Copy link
Copy link
Open
Labels
Description
Problem
Image publish rate is hardcoded at 2 Hz (500ms) in dimosBridge.ts. Lidar at 5 Hz (200ms browser-side) and 10 Hz (100ms server-side). Not configurable at runtime or via embodiment config.
Reported by Paul — running dimos --simulation run sim-agentic, /color_image publishes at ~2 Hz even with DIMSIM_RENDER=gpu.
Proposed Solution
- Add
sensorRatesto embodiment/sensor config (images, lidar, odom intervals in ms) - Pass from Python
DimSimConfig→ bridge server → browser DimosBridge - Allow runtime update via SceneClient
Current Hardcoded Values
| Sensor | Location | Rate |
|---|---|---|
| color_image | dimosBridge.ts:30 |
500ms (2 Hz) |
| depth_image | dimosBridge.ts:30 |
500ms (2 Hz) |
| lidar (browser) | dimosBridge.ts:30 |
200ms (5 Hz) |
| lidar (server) | lidar.ts:21 |
100ms (10 Hz) |
| odom | dimosBridge.ts:30 |
20ms (50 Hz) |
Context: dimos team feedback on PR #1390.
Synced from DIM-775 by summer
Reactions are currently unavailable