ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
166 stars 158 forks source link

Support `ament_cmake_python` for `pkg create` #904

Open m12watanabe1a opened 2 months ago

m12watanabe1a commented 2 months ago

About this PR

Related Issue

https://github.com/ros2/ros2cli/issues/739

How to use

ros2 pkg create --build-type ament_cmake --template-name ament_cmake_python my_project

This command will genrate,

.
└── my_project
    ├── CMakeLists.txt
    ├── package.xml
    └── my_project
        └── __init__.py

Both <node_name> or <library_name> given in the cli will generate node or library in cpp.

m12watanabe1a commented 2 months ago

@clalancette Thank you for reviewing.

I tired to newly support for ament_cmake_python in ros2 pkg create command since there is a demand in the linked issue.

https://github.com/ros2/ros2cli/issues/739

Feature description ROS2 CLI allows creating packages for cmake, ament_cmake, ament_python. Considering there isn't a complete example in the documentation for ament_cmake_python , it would be helpful to support generating one for users.

sloretz commented 2 months ago

I added an agenda item to the next ROS 2 meeting to get feedback on the naming of --template-name , afterwards the ros2cli maintainers will be assigned to review. 🧇

Thank you for your patience!

m12watanabe1a commented 2 months ago

Thank you so much :pray: