Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2pkg generates license warning messages. #3535

Merged
merged 3 commits into from
May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ The command syntax for creating a new package in ROS 2 is:

ros2 pkg create --build-type ament_python <package_name>

For this tutorial, you will use the optional argument ``--node-name`` which creates a simple Hello World type executable in the package.
For this tutorial, you will use the optional arguments ``--node-name`` and ``--license``.
``--node-name`` option creates a simple Hello World type executable in the package, and ``--license`` declares the license information for the package.

Enter the following command in your terminal:

Expand All @@ -166,13 +167,13 @@ Enter the following command in your terminal:

.. code-block:: console

ros2 pkg create --build-type ament_cmake --node-name my_node my_package
ros2 pkg create --build-type ament_cmake --node-name my_node my_package --license Apache-2.0

.. group-tab:: Python

.. code-block:: console

ros2 pkg create --build-type ament_python --node-name my_node my_package
ros2 pkg create --build-type ament_python --node-name my_node my_package --license Apache-2.0

You will now have a new folder within your workspace's ``src`` directory called ``my_package``.

Expand All @@ -191,7 +192,7 @@ After running the command, your terminal will return the message:
version: 0.0.0
description: TODO: Package description
maintainer: ['<name> <email>']
licenses: ['TODO: License declaration']
licenses: ['Apache-2.0']
build type: ament_cmake
dependencies: []
node_name: my_node
Expand All @@ -214,7 +215,7 @@ After running the command, your terminal will return the message:
version: 0.0.0
description: TODO: Package description
maintainer: ['<name> <email>']
licenses: ['TODO: License declaration']
licenses: ['Apache-2.0']
build type: ament_python
dependencies: []
node_name: my_node
Expand Down