rclrs 0.7.0

A ROS 2 client library for developing robotics applications in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

pub(crate) struct TestGraph {
    pub node1: Node,
    pub node2: Node,
}

pub(crate) fn construct_test_graph(namespace: &str) -> Result<TestGraph, RclrsError> {
    let executor = Context::default().create_basic_executor();
    Ok(TestGraph {
        node1: executor.create_node("graph_test_node_1".namespace(namespace))?,
        node2: executor.create_node("graph_test_node_2".namespace(namespace))?,
    })
}