ros

creating a workspace

Introduction#

This tutorial shows how to create a workspace. A workspace is a set of directories in which a related set of ROS code lives. One can have multiple ROS workspaces, but it is possible to work only in one at a time.

Creating a Workspace

In order to create a workspace, one should run the following in the terminal:

$ mkdir -p ~/workspace_name/src
$ cd ~/workspace_name/src
$ catkin_init_workspace
$ cd ~/workspace_name/
$ catkin_make

The previous commands creates a workspace named workspace_name. Once a workspace has been created, it is important to source it in order to work with it:

$ source ~/workspace_name/devel/setup.bash

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