This is an old revision of the document!
Setting up ROS Environment
Before starting, open a fresh terminal which hasn't sourced anything related to ROS yet (nothing in the .bashrc), otherwise you might get bad side-effects.
Both Catkin and Rosbuild
Catkin Part
source /opt/ros/hydro/setup.bash
cd ~/workspace
or cd ~/work
or mkdir ~/workspace && cd ~/workspace
, whatever.
mkdir -p catkin/src
cd catkin
catkin_make
You might want to call catkin_init_workspace
from src
before catkin_make
, but this is actually not needed, as catkin_make
does that for you as well.
Rosbuild part
source devel/setup.bash
cd workspace
mkdir rosbuild
cd rosbuild
rosws init . ../catkin/devel
Make sure you use rosws
here instead of wstool
.
echo -e “\n# ROS\nsource \$HOME/workspace/rosbuild/setup.bash\n” » ~/.bashrc
The quotation marks in echo
might not work if you copy paste.
source ~/.bashrc