Skip to main content
Mark a method parameter as a one-shot Zenoh subscriber. The parameter will subscribe to robot/{robot_id}/{topic} but only needs to receive data once. After the first message, the cached value is reused on every subsequent invocation. Can be used as a bare class (config=SubOnce) in which case the topic suffix defaults to the parameter name, or instantiated with a custom topic suffix (config=SubOnce("model/config")).

Constructor

Signature