ros

Creating a package

Introduction#

This tutorial shows how to create a package in ROS. Packages sit inside workspaces, in the src directory. Each package directory must have a CMakeLists.txt and a package.xml files.

Creating a package using rospy

Assuming a workspace named workspace_name has been previously created in the home directory, a package named package_name can be created by executing the following command lines.

$ cd ~/workspace_name/src/
$ catkin_create_pkg package_name rospy

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow