Create New Package
This use-case describes how to create a new package using scripts from the ROS Team Workspace (RosTeamWS) framework.
General Script for Creating Packages
create-new-package
script is used, accepting the package name and description as parameters.
The script has to be executed from the source folder of your workspace.
create-new-package NAME DESCRIPTION
When executing the script, read all output carefully. If you make any wrong decision or enter incorrect data, use <CTRL>+C keys to terminate the script.
The script supports the following options and opportunities for data entry:
Type of the package (standard, metapackage, or subpackage) - multiple choice
If subpackage, then you will need to enter the name of its metapackage
License (string) - enter a full name to add into package.xml
Manual input of the maintainer or using data from git-config - (y/n)
If yes then you should enter the full name and email address of the maintainer
Package build type (ament_cmake, ament_python, cmake) - multiple choice
Create/Update repository with CI configuration - (y/n)
After a package is created, you can choose to configure or update the repository.
When a new package or metapackage is created, the setup-repository.bash
script is called.
Check here for its documentation.