A Cyberwave driver is a Docker image that interacts with device hardware and the Cyberwave backend.Documentation Index
Fetch the complete documentation index at: https://docs.cyberwave.com/llms.txt
Use this file to discover all available pages before exploring further.
How to use drivers
Register a driver by adding its configuration to a twin’s metadata (or the catalog twin’s metadata if you control the catalog twin). Use the environment view’s Advanced editing to edit metadata. Note: changing a catalog twin’s metadata affects all subsequently created digital twins derived from that catalog twin. Example driver metadata (JSON):GPU passthrough
Drivers can opt-in to GPU acceleration by setting"prefer_gpu": true in their metadata. When the host has the NVIDIA container runtime available and configured as the default in /etc/docker/daemon.json, Edge Core passes --gpus to the driver container.
The optional "gpu" field controls which GPUs are exposed:
gpu value | Docker flag | Use case |
|---|---|---|
| (not set) | --gpus all | All available GPUs (default) |
1 | --gpus 1 | Limit to 1 GPU |
"device=0,2" | --gpus "device=0,2" | Specific GPU devices |
Platform-specific drivers
Use platform keys inmetadata.drivers to provide platform-specific images or params:
linux-aarch64-jetson → linux-aarch64 → linux → default.
Manage edge driver containers:
| Subcommand | Description |
|---|---|
list | List running driver containers (--all includes exited) |
start | Start a stopped driver container |
stop | Stop a running driver container |
Multi-container drivers
Some robots require multiple cooperating containers — for example a ROS 2 driver, bridge nodes, Nav2, SLAM, and elevation mapping. Use theservices array in driver metadata to define a multi-container stack that Edge Core launches automatically.
servicespresent → multi-container mode.docker_imagepresent → single-container mode (existing behavior, unchanged).- Each service requires
image(Docker image) andname(used in the container name suffix). - Optional per-service fields:
command,env,params,prefer_gpu,gpu. shared_envandshared_paramsapply to all services. Per-serviceenvoverrides shared values.- Container naming:
cyberwave-driver-{twin_uuid[:8]}-{service_name}. - Edge Core injects standard env vars (
CYBERWAVE_API_KEY, MQTT, Zenoh, etc.) into every service automatically.
Data bus
Drivers publish sensor data (frames, depth, joint states) to the edge data bus — a Zenoh-backed publish/subscribe system that lets worker containers consume data with zero network overhead (shared memory). See Writing compatible drivers for the channel naming convention and wire format.macOS hardware bridge (stub)
When Edge Core runs on macOS, Linux--device mappings in Docker params cannot
directly expose host camera/serial hardware to driver containers. Use a host
bridge process and forward into Docker via host.docker.internal.
- Optional host hook env var:
CYBERWAVE_MACOS_DEVICE_BRIDGE_COMMAND
- Command template variables:
{host_device},{container_device},{twin_uuid},{container_name},{config_dir}
- Bridge command can return a resolved source (
resolved_device=...or JSON) so Edge Core can injectCYBERWAVE_METADATA_VIDEO_DEVICEautomatically. - Optional macOS behavior:
CYBERWAVE_MACOS_STRIP_VIDEO_DEVICE_PARAMS=trueremoves Linux-only--device /dev/video*mappings before container start when a non-/devsource is resolved.
- For camera twins, Edge Core can derive default macOS camera bridge candidates
even without explicit
--deviceparams, enabling minimal default driver metadata to work. - Use platform-specific driver keys in
metadata.drivers(for exampledarwin-arm64,darwin,macos) to provide macOS-specific params while keepingdefaultfor Linux.