Skip to content

Commit 9a46295

Browse files
Tenveiskscottzchristophebedard
authored andcommitted
Kilted (#5514)
Signed-off-by: Katherine Scott <[email protected]> Co-authored-by: Katherine Scott <[email protected]> Co-authored-by: Christophe Bedard <[email protected]> (cherry picked from commit b3f4ece)
1 parent 67e4688 commit 9a46295

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-Python.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ For that to work, the ``__init__`` code has to be changed to:
179179
180180
self.timer = self.create_timer(1, self.timer_callback)
181181
182+
Since we are importing ``rcl_interfaces``, we need to add the dependency to ``package.xml`` to avoid any dependency issue in the future:
183+
184+
.. code-block:: xml
185+
186+
# ...
187+
<depend>rclpy</depend>
188+
<depend>rcl_interfaces</depend>
182189
183190
The rest of the code remains the same.
184191
Once you run the node, you can then run ``ros2 param describe /minimal_param_node my_parameter`` to see the type and description.

0 commit comments

Comments
 (0)