User Tools

Site Tools


software:cram:install:environment

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

software/cram/install/environment.1385044510.txt.gz · Last modified: 2016/05/19 09:18 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki