Skip to content

Commit 83ed63d

Browse files
author
Murilo Marinho
committed
Added troubleshooting tips for packages and noeds.
1 parent ef6f81c commit 83ed63d

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

docs/source/running_node.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,22 @@ which will now correctly output
4141
.. code :: console
4242
4343
Hi from python_package_with_a_node.
44+
45+
Troubleshooting tips
46+
--------------------
47+
48+
If :program:`ROS2` is unable to find the node, but it is able to find the package, then you can rely on :program:`ros2 pkg executables`. For instance,
49+
you can run as follows.
50+
51+
.. code :: console
52+
53+
ros2 pkg executables python_package_with_a_node
54+
55+
The command, at this stage, should output the following.
56+
57+
.. code :: console
58+
59+
python_package_with_a_node sample_python_node
60+
61+
This shows that :program:`ROS2` has been correctly able to find :file:`sample_python_node` within :file:`python_package_with_a_node`.
62+
If the command outputs nothing, this means that no nodes were found.

docs/source/source_after_build.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ if you are looking for :file:`python_package_with_a_node` you can do as follows.
4040

4141
.. code :: console
4242
43-
ros2 pkg list | grep the_simplest_python_package
43+
ros2 pkg list | grep python_package_with_a_node
4444
4545
This will either output nothing if the package is not found or it will output the name of the package, as follows.
4646

4747
.. code :: console
4848
49-
grep the_simplest_python_package
49+
grep python_package_with_a_node
5050
5151
.. admonition:: Hint for the future you
5252

0 commit comments

Comments
 (0)