Vous êtes sur la page 1sur 16

Tutorial on Installation of Linux (Ubuntu),

SSL Vision & GR-Sim


By CASE Robotics Group

Page 1 of 16

Table of Contents
Installing Linux (Ubuntu) ................................................................................................................. 3
Downloading and Installing SSL-Vision ......................................................................................... 11
File & Directory Commands ...................................................................................................... 12
Installing GRSim on Linux .............................................................................................................. 14
References .................................................................................................................................... 16

Page 2 of 16

Installing Linux (Ubuntu)


In this tutorial we will be showing steps for installing Linux Ubuntu 12.04.1-i386.
Insert the disk, boot from CD-ROM and select the language from the appearing menu.

Now select Install Ubuntu from the next menu as shown in figure below.

After a while you will see a following window on the screen.


Page 3 of 16

Select English and click on Continue. Or you will simply see a screen as shown below. Click on
Install Ubuntu.

On the next screen menu, without checking any option click Continue

Page 4 of 16

Press Continue. In the Installation type menu click Continue and move ahead.

In the Erase disk and install Ubuntu menu, select appropriate disk and press Install Now.

Page 5 of 16

From the Where are you? menu select Karachi and click Continue.

Select appropriate keyboard layout and click Continue

Page 6 of 16

Set a username and password in Who are you menu and click Continue.

Give your computer some alone time

Page 7 of 16

Once the installation is complete, click Restart Now

Once the system restarts, login and click on Dash home as shown below (left) and search for
Update Manager to open it.

In the Update Manager, click on Settings on the bottom left.

Page 8 of 16

Under the Ubuntu Software tab, change Download from to Server for United States.

Now again go to Dash home, search for Terminal and open it.

Page 9 of 16

In the Terminal, type the following command


sudo apt-get update
Terminal will ask for password, feed in the password and wait for the updates. After a successful
update you will see something like following verbose messages.

Now your Ubuntu is up-to date and ready for SSL-Vision and GRSim.

Page 10 of 16

Downloading and Installing SSL-Vision


The following tools and libraries are required to get and compile SSL-Vision:

subversion
g++
QT >= 4.3 with opengl and networking support
cmake
Eigen2
Google protocol buffers (protoc)
OpenGL
GLU
libdc1394 Version >= 2.0
libjpeg
libpng

To get all these packages, run the following command


sudo apt-get install subversion g++ libqt4-dev libeigen2-dev protobufcompiler libprotobuf-dev libdc1394-22 libdc1394-22-dev cmake libjpegdev libpng12-dev

This command will install all the required dependencies. Now type the following command in
Terminal.
svn checkout
read-only

http://ssl-vision.googlecode.com/svn/trunk/

ssl-vision-

Now go to Home and you should see a folder ssl-vision-read-only as shown below.

If you are using Ubuntu for the first time then you should know how to navigate in Terminal using
different commands.
Page 11 of 16

File & Directory Commands


The tilde (~) symbol stands for your home directory. If you are user, then the tilde (~) stands for
/home/user
pwd: The pwd command will allow you to know in which directory you're located (pwd stands
for "print working directory"). Example: "pwd"in the Desktop directory will show "~/Desktop".
Note that the Gnome Terminal also displays this information in the title bar of its window. A
useful gnemonic is "present working directory."
ls: The ls command will show you ('list') the files in your current directory. Used with certain
options, you can see sizes of files, when files were made, and permissions of files. Example: "ls
~" will show you the files that are in your home directory.
cd: The cd command will allow you to change directories. When you open a terminal you will
be in your home directory. To move around the file system you will use cd. Examples:

To navigate into the root directory, use "cd /"


To navigate to your home directory, use "cd" or "cd ~"
To navigate up one directory level, use "cd .."
To navigate to the previous directory (or back), use "cd -"
To navigate through multiple levels of directory at once, specify the full directory path
that you want to go to. For example, use, "cd /var/www" to go directly to the /www
subdirectory of /var/. As another example, "cd ~/Desktop" will move you to the
Desktop subdirectory inside your home directory.

Now using these commands move to ssl-vision-read-only folder and type the following
command.
make
The project should build without errors or warnings as shown.

Page 12 of 16

After a successful compilation process, the ./bin directory will contain three binaries:

vision - The SSL-Vision application


client - A simple sample client
graphicalClient - A graphical sample client

Double click on vision to start the SSL-Vision application.

Page 13 of 16

Installing GRSim on Linux


Go to the link
https://github.com/mani-monaj/grSim

Make a new folder GRSim under Home folder and download the .zip file from above link and
extract it the GRSim folder, which should now have a folder as shown below.

Install the dependencies required for GRSim using following command in Terminal.
sudo apt-get install build-essential cmake libqt4-dev libgl1-mesa-dev libglu1-mesadev libprotobuf-dev libode-dev

Now navigate in folder GRSim that you created using Terminal and follow the given command
lines in sequence
wget http://vartypes.googlecode.com/files/vartypes-0.7.tar.gz

Page 14 of 16

tar xfz vartypes-0.7.tar.gz


cd vartypes-0.7
mkdir build && cd build
cmake ..
make
sudo make install

Now navigate into folder grSim-master and run following commands for compiling GRSim.
The binary files (grSim and sample client) will be placed in

grSim/bin

Congratulations on successful installation of SSL-Vision and GRSim. Happy RoboSprinting

Page 15 of 16

References
https://help.ubuntu.com/community/UsingTheTerminal
https://code.google.com/p/ssl-vision/
https://github.com/mani-monaj/grSim

Page 16 of 16