pub fn create_node_builder(context: &Context, node_name: &str) -> NodeBuilder
Expand description
Creates a NodeBuilder
.
Convenience function equivalent to NodeBuilder::new()
and Node::builder()
.
Please see that function’s documentation.
§Example
let context = Context::new([])?;
let node_builder = rclrs::create_node_builder(&context, "my_node");
let node = node_builder.build()?;
assert_eq!(node.name(), "my_node");