Package creation Package Create a package inside src folder cd ~/ros_workshop/src catkin_create_pkg session2_pubsub std_msgs rospy roscpp catkin build or you can use following which comes built-in instead "catkin build" catkin_make