Creating a catkin workspace

How to create a catkin workspace for ROS Melodic

$ source /opt/ros/melodic/setup.bash

Navigate to where you want to create the workspace, then:

$ mkdir -p <workspace_name>/src
$ cd <workspace_name>
$ catkin init
$ catkin build

Make the workspace visible to ROS:

source devel/setup.bash

That's it!

Last updated