Skip to content
Ashfaq edited this page Oct 22, 2015 · 3 revisions

The linux distribution has ROS installed and configured, this repository can be used to run the exercises and play around.

When running the linux distribution the first time it is required to create the working directory and source it, this can be done by using the following commands( Open the terminal using ctrl+alt+T Copy paste these lines onto the terminal):

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make
sh -c "echo \"source /opt/ros/indigo/setup.bash\" >> ~/.bashrc"
sh -c "echo \"source ~/catkin_ws/devel/setup.bash\" >> ~/.bashrc"
sh -c "echo \"source ~/catkin_ws/install/setup.bash\" >> ~/.bashrc"
sh -c "echo \"export ROS_MASTER_URI=http://localhost:11311\" >> ~/.bashrc"
sh -c "echo \"export ROS_HOSTNAME=localhost\" >> ~/.bashrc"

echo "[Cloning repository]"
cd ~/catkin_ws/src/
git clone https://github.com/ashfaqfarooqui/ROSTutorials
cd ~/catkin_ws/
catkin_make install

To compile and install the code go to the cd ~/catkin_ws folder and run catkin_make --install.

Clone this wiki locally