Back to [[ros:main-ros|ROS Main Page]]
A new and empty ROS package can be created with catkin (http://wiki.ros.org/ROS/Tutorials/CreatingPackage)
in the src folder of the workspace.
catkin_create_pkg [depend1] [depend2] [depend3]
where depend1, depend2 and depend3 are the dependencies added at the creation of the package.
For example, to create a Python package called **my_pkg** in my ROS workspace **ws** :
cd /path/to/workspace/ws/src
catkin_create_pkg my_pkg std_msgs rospy
For a C++ package add **roscpp** dependency.
To get access to this new package, we need to run again the setup.bash file
cd ..
catkin_make
source devel/setup.bash