Robonix package wrapping Orbbec RGBD cameras — a multi-model driver layer over the vendored OrbbecSDK_ROS2, with the launch file selected by config (launch_file). Validated on Dabai DCW and Gemini 336L (330-series). Owns the primitive/camera/* namespace. Exposes the camera’s RGB + depth + camera_info streams under generic contracts plus JPEG snapshot / depth_snapshot MCP tools, so consumers (grasp / detection / scene / vision skills / Pilot / the web client) resolve names through atlas — no hardcoded /camera/color/image_raw paths on the consumer side.
snapshot tool — latest RGB frame as JPEG (sensor_msgs/Image)
robonix/primitive/camera/depth_snapshot
rpc
MCP
depth_snapshot tool — depth as 8-bit grey JPEG (preview only)
camera_info is package-locally defined (see capabilities/primitive/camera/camera_info.v1.toml) because the robonix global tree does not ship that contract yet; codegen + atlas merge package-level capabilities automatically. service-object-detect-rbnx uses it to synchronize RGB frames and, when depth is enabled, to back-project detections. The current vertical-grasp deploy skips depth and lets service-grasp-pose-rbnx map bbox pixels through a calibrated 2D homography.
The snapshot contracts are the on-demand, agent-facing form of the two streams: a persistent subscription keeps the latest raw frame per stream (JPEG encoding happens only when a call arrives), and a call older than one second is served by a one-shot re-read. camera/rgb / camera/depth remain the high-rate data plane for skills; snapshots add a JPEG view for Pilot (the LLM sees the frame as vision input) and the web client. extrinsics stays undeclared until a real handler exists — per the packaging rules, manifest entries must correspond to real declare_ros2_*/@cap.mcp(...) handlers.
Boot ordering
Boot this before any consumer of primitive/camera/*. In the current vertical-grasp pipeline, service-object-detect-rbnx resolves rgb and camera_info during its Driver(CMD_INIT) call. service-grasp-pose-rbnx does not consume camera topics directly; it receives the bbox from detection and uses the deploy’s homography.
Driver-init lifecycle
start.sh brings up the atlas bridge — no ROS spawn. The bridge opens a gRPC server, registers the provider, declares only primitive/camera/driver (auto-emitted by the framework when codegen produces a Driver Servicer), then blocks on Driver(CMD_INIT, config_json).
When rbnx boot invokes Init it passes the manifest’s config: block as JSON. The lifecycle then runs:
CMD_INIT: parse and validate cfg (camera name, resolution / fps, depth_registration, USB pin, sentinel timeout);
wait for the first sensor_msgs/Image on the configured RGB topic (sentinel);
declare primitive/camera/{rgb, depth, camera_info} on atlas;
subscribe both streams so the snapshot RPCs serve the latest frame.
The snapshot MCP tools are declared at startup (before CMD_INIT), the same
way every Robonix provider advertises its capabilities; until the camera is
activated their handlers report that no stream is available.
Atlas only ever advertises endpoints we’ve confirmed are publishing. CMD_DEACTIVATE drops the snapshot subscriptions and kills the orbbec subprocess; CMD_SHUTDOWN additionally stops the ROS context so the process exits cleanly. Idempotent.
If the camera is not connected or the driver stalls, the sentinel times out and Init returns state="error".
To drive the lifecycle manually (without rbnx boot), call the camera’s Driver service with CMD_INIT and a config JSON, then call CMD_ACTIVATE. Init only validates configuration; Activate returns after the first RGB frame is observed and the three topic streams are declared.
The reply should describe the scene, which also proves Pilot attached the
frame as vision input. Without Pilot, any MCP client can call the tool after
resolving it through Atlas/ConnectCapability; the payload is a
sensor_msgs/Image whose data is base64 JPEG.
Vendor / upstream
src/OrbbecSDK_ROS2/ is a verbatim copy of orbbec/OrbbecSDK_ROS2. The Dabai DCW firmware-blob SDK ships under orbbec_camera/SDK/{include,lib}/. If anything diverges from upstream, drop a *.patch alongside src/ documenting the diff.
License
This package: Apache-2.0. Vendored OrbbecSDK_ROS2: see its LICENSE file.
关于
Robonix RGBD camera primitive — multi-model Orbbec wrapper (Dabai DCW, Gemini 330-series) with rgb/depth/camera_info contracts
primitive-orbbec-camera-rbnx
Robonix package wrapping Orbbec RGBD cameras — a multi-model driver layer over the vendored OrbbecSDK_ROS2, with the launch file selected by config (
launch_file). Validated on Dabai DCW and Gemini 336L (330-series). Owns theprimitive/camera/*namespace. Exposes the camera’s RGB + depth + camera_info streams under generic contracts plus JPEGsnapshot/depth_snapshotMCP tools, so consumers (grasp / detection / scene / vision skills / Pilot / the web client) resolve names through atlas — no hardcoded/camera/color/image_rawpaths on the consumer side.Catalog name:
robonix.primitive.orbbec.camera.Capability surface
robonix/primitive/camera/driverDriver(CMD_INIT, config_json)— lifecycle gaterobonix/primitive/camera/rgb/<camera_name>/color/image_raw(sensor_msgs/Image)robonix/primitive/camera/depth/<camera_name>/depth/image_raw(sensor_msgs/Image; HW-aligned to color whendepth_registration=true)robonix/primitive/camera/camera_info/<camera_name>/color/camera_info(sensor_msgs/CameraInfo)robonix/primitive/camera/snapshotsnapshottool — latest RGB frame as JPEG (sensor_msgs/Image)robonix/primitive/camera/depth_snapshotdepth_snapshottool — depth as 8-bit grey JPEG (preview only)camera_infois package-locally defined (seecapabilities/primitive/camera/camera_info.v1.toml) because the robonix global tree does not ship that contract yet; codegen + atlas merge package-level capabilities automatically.service-object-detect-rbnxuses it to synchronize RGB frames and, when depth is enabled, to back-project detections. The current vertical-grasp deploy skips depth and letsservice-grasp-pose-rbnxmap bbox pixels through a calibrated 2D homography.The snapshot contracts are the on-demand, agent-facing form of the two streams: a persistent subscription keeps the latest raw frame per stream (JPEG encoding happens only when a call arrives), and a call older than one second is served by a one-shot re-read.
camera/rgb/camera/depthremain the high-rate data plane for skills; snapshots add a JPEG view for Pilot (the LLM sees the frame as vision input) and the web client.extrinsicsstays undeclared until a real handler exists — per the packaging rules, manifest entries must correspond to realdeclare_ros2_*/@cap.mcp(...)handlers.Boot ordering
Boot this before any consumer of
primitive/camera/*. In the current vertical-grasp pipeline,service-object-detect-rbnxresolvesrgbandcamera_infoduring itsDriver(CMD_INIT)call.service-grasp-pose-rbnxdoes not consume camera topics directly; it receives the bbox from detection and uses the deploy’s homography.Driver-init lifecycle
start.shbrings up the atlas bridge — no ROS spawn. The bridge opens a gRPC server, registers the provider, declares onlyprimitive/camera/driver(auto-emitted by the framework when codegen produces aDriverServicer), then blocks onDriver(CMD_INIT, config_json).When
rbnx bootinvokes Init it passes the manifest’sconfig:block as JSON. The lifecycle then runs:CMD_INIT: parse and validate cfg (camera name, resolution / fps,depth_registration, USB pin, sentinel timeout);CMD_ACTIVATE: spawnros2 launch orbbec_camera <launch_file> …;sensor_msgs/Imageon the configured RGB topic (sentinel);primitive/camera/{rgb, depth, camera_info}on atlas;The snapshot MCP tools are declared at startup (before
CMD_INIT), the same way every Robonix provider advertises its capabilities; until the camera is activated their handlers report that no stream is available.Atlas only ever advertises endpoints we’ve confirmed are publishing.
CMD_DEACTIVATEdrops the snapshot subscriptions and kills the orbbec subprocess;CMD_SHUTDOWNadditionally stops the ROS context so the process exits cleanly. Idempotent.If the camera is not connected or the driver stalls, the sentinel times out and Init returns
state="error".Layout
Config (passed via
Driver(CMD_INIT, config_json))Build / run standalone
To drive the lifecycle manually (without
rbnx boot), call the camera’sDriverservice withCMD_INITand a config JSON, then callCMD_ACTIVATE. Init only validates configuration; Activate returns after the first RGB frame is observed and the three topic streams are declared.Verification
Snapshot path (needs Pilot; the tool name is the contract leaf):
The reply should describe the scene, which also proves Pilot attached the frame as vision input. Without Pilot, any MCP client can call the tool after resolving it through
Atlas/ConnectCapability; the payload is asensor_msgs/Imagewhosedatais base64 JPEG.Vendor / upstream
src/OrbbecSDK_ROS2/is a verbatim copy of orbbec/OrbbecSDK_ROS2. The Dabai DCW firmware-blob SDK ships underorbbec_camera/SDK/{include,lib}/. If anything diverges from upstream, drop a*.patchalongsidesrc/documenting the diff.License
This package: Apache-2.0. Vendored OrbbecSDK_ROS2: see its LICENSE file.