Skip to content

Quickstart: Connect To The Director

Prerequisites

  • vrOS is running (so the Director is available)
  • Rust toolchain (stable) + cargo

Minimal Example

use catnet_sdk::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let registration = registration::basic("my-service", env!("CARGO_PKG_VERSION"));
    let client = connect::connect(registration).await?;
    println!("connected as service_id={:?}", client.service_id().await);
    Ok(())
}

Director Channel

By default, the SDK connects to the Director bus channel vros-bus.

  • Override with: VROS_BUS=<custom>

Next Step

If you want to ship something end-user installable, build an extension manifest: