Skip to content

Commit 36ed014

Browse files
authored
[parameters_and_launch.rst] Updated line numbers of explanation after adding print to screen directive.
1 parent f04b972 commit 36ed014

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/parameters_and_launch.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Don't forget to declare the parameter!
6666
.. note::
6767

6868
According to the `official documentation <https://docs.ros.org/en/humble/Concepts/Basic/About-Parameters.html>`_, it is possible to work with undeclared parameters, but
69-
I recommend against for basic usage.
69+
I recommend against this for basic usage.
7070

7171
It's easy to forget it, but :code:`Node.get_parameter()` will not work if the parameter was not first declared with :code:`Node.declare_parameter()`. Don't forget it!
7272

@@ -184,19 +184,19 @@ we set for the executable in the :file:`setup.py`
184184

185185
.. literalinclude:: ../../ros2_tutorial_workspace/src/python_package_that_uses_parameters_and_launch_files/launch/peanut_butter_falcon_quote_publisher_launch.py
186186
:language: python
187-
:lines: 8,9
187+
:lines: 10,11
188188

189189
Besides the parameters, we can configure the name of the Node, such that each is unique
190190

191191
.. literalinclude:: ../../ros2_tutorial_workspace/src/python_package_that_uses_parameters_and_launch_files/launch/peanut_butter_falcon_quote_publisher_launch.py
192192
:language: python
193-
:lines: 10
193+
:lines: 12
194194

195195
Finally, our parameters are defined using a dictionary within a list, namely
196196

197197
.. literalinclude:: ../../ros2_tutorial_workspace/src/python_package_that_uses_parameters_and_launch_files/launch/peanut_butter_falcon_quote_publisher_launch.py
198198
:language: python
199-
:lines: 12-16
199+
:lines: 14-18
200200

201201
The :file:`setup.py`
202202
--------------------

0 commit comments

Comments
 (0)