cxx-ros2-dataflow ExampleThis c++ example shows how to publish/subscribe to both ROS2 and Dora. The dataflow consists of a single node that sends random movement commands to the ROS2 turtlesim_node.
This examples requires a sourced ROS2 installation.
ros2 run turtlesim turtlesim_nodeFrom terminal 1 , sourcing the ROS2 installation and start ROS2 turtlesim window
source /opt/ros/galactic/setup.bash
ros2 run turtlesim turtlesim_node
From terminal 2 from dora folder. Note the source command here is necessary as this allow ROS2 message types to be found and compile dynamically.
source /opt/ros/galactic/setup.bash
cargo run --example cxx-ros2-dataflow --features ros2-examples
And you will see the turtle move a few steps.