You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/Tutorials/Actions/Writing-a-Cpp-Action-Server-Client.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -385,6 +385,6 @@ In this tutorial, you put together a C++ action server and action client line by
385
385
Related content
386
386
---------------
387
387
388
-
* There are several ways you could write an action server and client in C++; check out the ``minimal_action_server`` and ``minimal_action_client`` packages in the `ros2/examples <https://github.com/ros2/examples/tree/master/rclcpp>`_ repo.
388
+
* There are several ways you could write an action server and client in C++; check out the ``minimal_action_server`` and ``minimal_action_client`` packages in the `ros2/examples <https://github.com/ros2/examples/tree/{REPOS_FILE_BRANCH}/rclcpp>`_ repo.
389
389
390
390
* For more detailed information about ROS actions, please refer to the `design article <http://design.ros2.org/articles/actions.html>`__.
Open a new file in your home directory, let's call it ``fibonacci_action_server.py``,
44
44
and add the following code:
@@ -352,6 +352,6 @@ In this tutorial, you put together a Python action server and action client line
352
352
Related content
353
353
---------------
354
354
355
-
* There are several ways you could write an action server and client in Python; check out the ``minimal_action_server`` and ``minimal_action_client`` packages in the `ros2/examples <https://github.com/ros2/examples/tree/master/rclpy/actions>`_ repo.
355
+
* There are several ways you could write an action server and client in Python; check out the ``minimal_action_server`` and ``minimal_action_client`` packages in the `ros2/examples <https://github.com/ros2/examples/tree/{REPOS_FILE_BRANCH}/rclpy/actions>`_ repo.
356
356
357
357
* For more detailed information about ROS actions, please refer to the `design article <http://design.ros2.org/articles/actions.html>`__.
Copy file name to clipboardExpand all lines: source/Tutorials/Allocator-Template-Tutorial.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Implement a custom memory allocator
10
10
:local:
11
11
12
12
This tutorial will teach you how to integrate a custom allocator for publishers and subscribers so that the default heap allocator is never called while your ROS nodes are executing.
13
-
The code for this tutorial is available `here <https://github.com/ros2/demos/blob/master/demo_nodes_cpp/src/topics/allocator_tutorial.cpp>`__.
13
+
The code for this tutorial is available `here <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/demo_nodes_cpp/src/topics/allocator_tutorial.cpp>`__.
14
14
15
15
Background
16
16
----------
@@ -205,7 +205,7 @@ You can also override the global new and delete operators:
205
205
206
206
where the variables we are incrementing are just global static integers, and ``is_running`` is a global static boolean that gets toggled right before the call to ``spin``.
207
207
208
-
The `example executable <https://github.com/ros2/demos/blob/master/demo_nodes_cpp/src/topics/allocator_tutorial.cpp>`__ prints the value of the variables. To run the example executable, use:
208
+
The `example executable <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/demo_nodes_cpp/src/topics/allocator_tutorial.cpp>`__ prints the value of the variables. To run the example executable, use:
209
209
210
210
.. code-block:: bash
211
211
@@ -232,7 +232,7 @@ As a matter of fact, these allocations/deallocations originate in the underlying
232
232
233
233
Proving this is out of the scope of this tutorial, but you can check out the test for the allocation path that gets run as part of the ROS 2 continuous integration testing, which backtraces through the code and figures out whether certain function calls originate in the rmw implementation or in a DDS implementation:
The recommended build types are ``ament_cmake`` and ``ament_python``.
286
286
Also supported are pure ``cmake`` packages.
287
287
288
-
An example of an ``ament_python`` build is the `ament_index_python package <https://github.com/ament/ament_index/tree/master/ament_index_python>`__ , where the setup.py is the primary entry point for building.
288
+
An example of an ``ament_python`` build is the `ament_index_python package <https://github.com/ament/ament_index/tree/{REPOS_FILE_BRANCH}/ament_index_python>`__ , where the setup.py is the primary entry point for building.
289
289
290
-
A package such as `demo_nodes_cpp <https://github.com/ros2/demos/tree/master/demo_nodes_cpp>`__ uses the ``ament_cmake`` build type, and uses CMake as the build tool.
290
+
A package such as `demo_nodes_cpp <https://github.com/ros2/demos/tree/{REPOS_FILE_BRANCH}/demo_nodes_cpp>`__ uses the ``ament_cmake`` build type, and uses CMake as the build tool.
291
291
292
292
For convenience, you can use the tool ``ros2 pkg create`` to create a new package based on a template.
Copy file name to clipboardExpand all lines: source/Tutorials/Composition.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ See the :doc:`conceptual article <../Concepts/About-Composition>`.
17
17
Run the demos
18
18
-------------
19
19
20
-
The demos use executables from `rclcpp_components <https://github.com/ros2/rclcpp/tree/master/rclcpp_components>`__, `ros2component <https://github.com/ros2/ros2cli/tree/master/ros2component>`__, and `composition <https://github.com/ros2/demos/tree/master/composition>`__ packages, and can be run with the following commands.
20
+
The demos use executables from `rclcpp_components <https://github.com/ros2/rclcpp/tree/{REPOS_FILE_BRANCH}/rclcpp_components>`__, `ros2component <https://github.com/ros2/ros2cli/tree/{REPOS_FILE_BRANCH}/ros2component>`__, and `composition <https://github.com/ros2/demos/tree/{REPOS_FILE_BRANCH}/composition>`__ packages, and can be run with the following commands.
21
21
22
22
23
23
Discover available components
@@ -53,7 +53,7 @@ Verify that the container is running via ``ros2`` command line tools:
53
53
$ ros2 component list
54
54
/ComponentManager
55
55
56
-
In the second shell load the talker component (see `talker <https://github.com/ros2/demos/blob/master/composition/src/talker_component.cpp>`__ source code):
56
+
In the second shell load the talker component (see `talker <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/talker_component.cpp>`__ source code):
57
57
58
58
.. code-block:: bash
59
59
@@ -64,7 +64,7 @@ The command will return the unique ID of the loaded component as well as the nod
64
64
65
65
Now the first shell should show a message that the component was loaded as well as repeated message for publishing a message.
66
66
67
-
Run another command in the second shell to load the listener component (see `listener <https://github.com/ros2/demos/blob/master/composition/src/listener_component.cpp>`__ source code):
67
+
Run another command in the second shell to load the listener component (see `listener <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/listener_component.cpp>`__ source code):
68
68
69
69
.. code-block:: bash
70
70
@@ -93,7 +93,7 @@ In the first shell:
93
93
94
94
$ ros2 run rclcpp_components component_container
95
95
96
-
In the second shell (see `server <https://github.com/ros2/demos/blob/master/composition/src/server_component.cpp>`__ and `client <https://github.com/ros2/demos/blob/master/composition/src/client_component.cpp>`__ source code):
96
+
In the second shell (see `server <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/server_component.cpp>`__ and `client <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/client_component.cpp>`__ source code):
97
97
98
98
.. code-block:: bash
99
99
@@ -108,7 +108,7 @@ Compile-time composition using ROS services
108
108
This demos shows that the same shared libraries can be reused to compile a single executable running multiple components.
109
109
The executable contains all four components from above: talker and listener as well as server and client.
110
110
111
-
In the shell call (see `source code <https://github.com/ros2/demos/blob/master/composition/src/manual_composition.cpp>`__):
111
+
In the shell call (see `source code <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/manual_composition.cpp>`__):
112
112
113
113
.. code-block:: bash
114
114
@@ -124,7 +124,7 @@ Run-time composition using dlopen
124
124
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125
125
126
126
This demo presents an alternative to run-time composition by creating a generic container process and explicitly passing the libraries to load without using ROS interfaces.
127
-
The process will open each library and create one instance of each "rclcpp::Node" class in the library `source code <https://github.com/ros2/demos/blob/master/composition/src/dlopen_composition.cpp>`__).
127
+
The process will open each library and create one instance of each "rclcpp::Node" class in the library `source code <https://github.com/ros2/demos/blob/{REPOS_FILE_BRANCH}/composition/src/dlopen_composition.cpp>`__).
Copy file name to clipboardExpand all lines: source/Tutorials/Getting-Started-With-Ros2doctor.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,7 @@ Keep in mind, ``ros2doctor`` is not a debug tool; it won’t help with errors in
191
191
Related content
192
192
---------------
193
193
194
-
`ros2doctor’s README <https://github.com/ros2/ros2cli/tree/master/ros2doctor>`__ will tell you more about different arguments.
194
+
`ros2doctor’s README <https://github.com/ros2/ros2cli/tree/{REPOS_FILE_BRANCH}/ros2doctor>`__ will tell you more about different arguments.
195
195
You might want to take a look around the ``ros2doctor`` repo as well, since it's fairly beginner friendly and a great place to get started with contributing.
This demo is similar to the previous one, but instead of the producer creating a new message for each iteration, this demo only ever uses one message instance.
171
171
This is achieved by creating a cycle in the graph and "kicking off" communication by externally making one of the nodes publish before spinning the executor:
Copy file name to clipboardExpand all lines: source/Tutorials/Launch/Launch-system.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ Or for a standalone launch file:
125
125
Example of ROS 2 launch concepts
126
126
--------------------------------
127
127
128
-
The launch file in `this example <https://github.com/ros2/launch_ros/blob/master/launch_ros/examples/lifecycle_pub_sub_launch.py>`__
128
+
The launch file in `this example <https://github.com/ros2/launch_ros/blob/{REPOS_FILE_BRANCH}/launch_ros/examples/lifecycle_pub_sub_launch.py>`__
129
129
launches two nodes, one of which is a node with a `managed lifecycle <../Managed-Nodes>` (a "lifecycle node").
130
130
Lifecycle nodes launched through ``launch_ros`` automatically emit *events* when they transition between states.
131
131
The events can then be acted on through the launch framework.
@@ -136,7 +136,7 @@ In the aforementioned example, various transition requests are requested of the
136
136
Documentation
137
137
-------------
138
138
139
-
`The launch documentation <https://github.com/ros2/launch/blob/master/launch/doc/source/architecture.rst>`__ provides more details on concepts that are also used in ``launch_ros``.
139
+
`The launch documentation <https://github.com/ros2/launch/blob/{REPOS_FILE_BRANCH}/launch/doc/source/architecture.rst>`__ provides more details on concepts that are also used in ``launch_ros``.
140
140
141
141
Additional documentation/examples of launch capabilities are forthcoming.
142
142
See `the source code <https://github.com/ros2/launch>`__ in the meantime.
Copy file name to clipboardExpand all lines: source/Tutorials/Launch/Using-Event-Handlers.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,7 +292,7 @@ Additionally, it will log messages to the console when:
292
292
Documentation
293
293
-------------
294
294
295
-
`The launch documentation <https://github.com/ros2/launch/blob/master/launch/doc/source/architecture.rst>`_ provides detailed information about available event handlers.
295
+
`The launch documentation <https://github.com/ros2/launch/blob/{REPOS_FILE_BRANCH}/launch/doc/source/architecture.rst>`_ provides detailed information about available event handlers.
Copy file name to clipboardExpand all lines: source/Tutorials/Launch/Using-Substitutions.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,7 @@ Now you can pass the desired arguments to the launch file as follows:
325
325
Documentation
326
326
-------------
327
327
328
-
`The launch documentation <https://github.com/ros2/launch/blob/master/launch/doc/source/architecture.rst>`_ provides detailed information about available substitutions.
328
+
`The launch documentation <https://github.com/ros2/launch/blob/{REPOS_FILE_BRANCH}/launch/doc/source/architecture.rst>`_ provides detailed information about available substitutions.
0 commit comments