Let's create and build a catkin workspace:
cd ~/Desktop
mkdir -p catkin_ws/src
catkin_make
Now, if you look in your current directory you should now have a 'build' and 'devel' folder. Inside the 'devel' folder you can see that there are now several setup.*sh files. Sourcing any of these files will overlay this workspace on top of your environment.
- You must source this script in every bash terminal you use ROS in.
source devel/setup.bash
- It can be convenient to automatically source this script every time a new shell is launched. These commands will do that for you.
echo "source /home/<user_name>/Desktop/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
Cheat Sheet click here Ros Wiki click here