Skip to main content

init

Function init 

Source
pub fn init() -> Result<Context, InitError>
Expand description

Pattern 3 — raw init, launch file ignored.

Reads env vars (ROS_DOMAIN_ID, NROS_LOCATOR, NROS_SESSION_MODE, NROS_RMW / RMW_IMPLEMENTATION) and returns a Context. The caller owns the spin loop — typically Executor::open(&ctx.config(name)) followed by spin_blocking or a hand-rolled spin_once loop.