Skip to content

Conversation

sxzxyq
Copy link

@sxzxyq sxzxyq commented Oct 19, 2025

Description

The description for the --dependencies argument incorrectly included CMakeLists.txt when creating an ament_python package. This change clarifies that for ament_python packages, only package.xml is modified, preventing confusion for new users.

Did you use Generative AI?

No.

Additional Information

N/A

The description for the `--dependencies` argument incorrectly included
CMakeLists.txt when creating an ament_python package.
This change clarifies that for ament_python packages, only package.xml
is modified, preventing confusion for new users.

Signed-off-by: sxzxyq <[email protected]>
Your terminal will return a message verifying the creation of your package ``python_parameters`` and all its necessary files and folders.

The ``--dependencies`` argument will automatically add the necessary dependency lines to ``package.xml`` and ``CMakeLists.txt``.
The ``--dependencies`` argument will automatically add the necessary dependency lines to ``package.xml``. For ament_cmake packages, it would also update ``CMakeLists.txt``.
Copy link
Member

@christophebedard christophebedard Oct 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Since this tutorial is specifically for Python, I would simply remove the mention of CMakeLists.txt. It's correctly mentioned in the C++ tutorial: https://docs.ros.org/en/rolling/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-CPP.html#create-a-package.

Suggested change
The ``--dependencies`` argument will automatically add the necessary dependency lines to ``package.xml``. For ament_cmake packages, it would also update ``CMakeLists.txt``.
The ``--dependencies`` argument will automatically add the necessary dependency lines to ``package.xml``.

It's also mentioned on line 57 below; can you remove that one too?

Then I can port this to all other branches.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with these fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants