From d968ffca3fa5ddb73987c8682b71da367287b786 Mon Sep 17 00:00:00 2001 From: Bob Ding <4655609+bobd988@users.noreply.github.com> Date: Thu, 29 Feb 2024 08:19:15 -0800 Subject: [PATCH] Update README.md --- examples/c++-ros2-dataflow/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/c++-ros2-dataflow/README.md b/examples/c++-ros2-dataflow/README.md index 32c844a3..ac117fd9 100644 --- a/examples/c++-ros2-dataflow/README.md +++ b/examples/c++-ros2-dataflow/README.md @@ -12,7 +12,7 @@ This examples requires a sourced ROS2 installation. - Install the turtlesim package - Start the turtlesim node through `ros2 run turtlesim turtlesim_node` -## Running +## Running turtlesim example From terminal 1 , sourcing the ROS2 installation and start ROS2 turtlesim window @@ -21,8 +21,9 @@ source /opt/ros/galactic/setup.bash ros2 run turtlesim turtlesim_node ``` -From terminal 2 from dora folder +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.