Create catkin workspace on Turtle Rover

Last updated 22 days ago

This tutorial show you how to create catkin workspace in your Turtle Rover's environment

Prepare your Turtle Rover

Connect your device to Turtle Rover's console via SSH

Establish Internet connection

Create catkin workspace

First you need to create folder /turtle_ws with /src folder inside. Your workspace will be located there.

$ mkdir ~/turtle_ws/src

Next, you need to go to main directory to be able to initialize catkin workspace.

$ cd ~/turtle_ws

Use this command to add ROS workspace to active terminal session.

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

Last step is to initialize catkin workspace in your directory. It will create new folders- /build and /devel in your directory.

$ catkin_make

Optionally you can use python catkin tools instead of catkin_make to initialize catkin workspace.

You need to install python catkin tools to be able to initialize catkin workspace using catkin build

$ sudo apt update
$ sudo apt install python-catkin-tools
$ catkin build

Dont't forget to add your workspace to every terminal session.

$ source ~/turtle_ws/devel/setup.bash

Or if you want the command to be executed at every start of the terminal session, add it to .bashrc file

$ echo "source ~/turtle_ws/devel/setup.bash" >> ~/.bashrc