The Real Roboticist (lesson 3) : Create a catkin workspace

Catkin what?

A catkin workspace is where you’ll be able to modify existing or create new catkin packages. The catkin structure simplifies the build and install process for your ROS packages.

Create it

Naming our folder catkin_ws, Just type in the following into terminal to create the workspace.

 mkdir –p ~/catkin_ws/src
 cd ~/catkin_ws/src$ catkin_init_workspace

Next, build it by following up with:

 cd ~/catkin_ws/
 catkin_make

Overaly the workspace atop your ROS environment by sourcing setup.bash

source ~/catkin_ws/devel/setup.bash
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc

All that’s left is to validate that everything has been set up correctly. When you type the following into terminal:

echo $ROS_PACKAGE_PATH

The output of the command should be:

/home/<username>/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

Leave a comment