File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ Open the file using your preferred text editor.
7474.. code-block :: C++
7575
7676 #include <chrono>
77+ #include <functional>
7778 #include <memory>
79+ #include <string>
7880
7981 #include "rclcpp/rclcpp.hpp"
8082 #include "std_msgs/msg/string.hpp"
@@ -119,8 +121,8 @@ Open the file using your preferred text editor.
1191212.1 Examine the code
120122~~~~~~~~~~~~~~~~~~~~
121123
122- The first line of code includes the `` <chrono> `` header so you can use `` chrono_literals ``, or the `` 500ms `` later on .
123- Following the `` memory `` header is the ``rclcpp/rclcpp.hpp `` include which allows you to use the most common pieces of the ROS 2 system.
124+ The top of the code includes the standard C++ headers you will be using .
125+ After the standard C++ headers is the ``rclcpp/rclcpp.hpp `` include which allows you to use the most common pieces of the ROS 2 system.
124126Last is ``std_msgs/msg/string.hpp ``, which includes the built-in message type you will use to publish data.
125127
126128These lines represent the node’s dependencies.
@@ -129,7 +131,9 @@ Recall that dependencies have to be added to ``package.xml`` and ``CMakeLists.tx
129131.. code-block :: C++
130132
131133 #include <chrono>
134+ #include <functional>
132135 #include <memory>
136+ #include <string>
133137
134138 #include "rclcpp/rclcpp.hpp"
135139 #include "std_msgs/msg/string.hpp"
You can’t perform that action at this time.
0 commit comments