ROS Installation Hydro

From wikidb
Jump to: navigation, search

Documentation

Hydro Installation

Repository Set Up

See Repository Settings. "Note: In Ubuntu 9.04 (Jaunty) and later, the main, universe, restricted and multiverse repositories are enabled by default."

This was confirmed with the Main Menu: Ubuntu Software Center. "univere", "restricted" and "multiverse". Move mouse to master window. Select "Edit" menu, "Preferences" item. This pops up a new window. Assure that "Ubuntu Software" tab is selected.

 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > 
       /etc/apt/sources.list.d/ros-latest.list'
 wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
 sudo apt-get update

Disk Status 1

Directly after a clean install of Ubuntu 12.04.

 eepp@rock:~$ df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352 2454300   3727932  40% /
 udev              499512       4    499508   1% /dev
 tmpfs             203328     880    202448   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     200    508116   1% /run/shm
 /dev/sdb1       15073280   37704  15019192   1% /media/sdcard
 
 eepp@rock:~$ du -s /usr/
 815432	/usr/
 
 eepp@rock:~$ du -sh /usr/
 1.8G	/usr/
 
 eepp@rock:~$ du -s /opt
 4	/opt

Installation and Setup

 sudo apt-get install ros-hydro-desktop-full
 

Disk Status 2

 eepp@rock:~$ df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352 5459736    722496  89% /
 udev              499512       4    499508   1% /dev
 tmpfs             203328     884    202444   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     200    508116   1% /run/shm
 /dev/sdb1       15073280   37704  15019192   1% /media/sdcard
 
 eepp@rock:~$ du -s /usr/
 3788232	/usr/
 
 epp@rock:~$ du -sh /usr/
 3.7G	/usr/
 
 eepp@rock:~$ du -s /opt/
 148984	/opt/

Settup

 sudo rosdep init
 
 rosdep update
 
 echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc
 
 source ~/.bashrc
 
 sudo apt-get install python-rosinstall

Disk Status 3

 eepp@rock:~$ df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352 5287204    895028  86% /
 udev              499512       4    499508   1% /dev
 tmpfs             203328     880    202448   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     152    508164   1% /run/shm
 /dev/sdb1       15073280   37704  15019192   1% /media/2ff2af82-3efd-4ce8-a768-a7055c5035a7
 
 eepp@rock:~$ du -s /usr/
 3832040	/usr/
 
 eepp@rock:~$ du -s /opt/
 148996	/opt/

With new /usr mount

When /dev/sdb1 is mounted on /usr. Before ROS install. Status 1.

 df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352  910736   5271496  15% /
 udev              499508       4    499504   1% /dev
 tmpfs             203328     888    202440   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     156    508160   1% /run/shm
 /dev/sdb1       15073280 2468924  12587972  17% /usr

After install. Status 2.

 df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352 1896568   4285664  31% /
 udev              499508       4    499504   1% /dev
 tmpfs             203328     888    202440   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     156    508160   1% /run/shm
 /dev/sdb1       15073280 4406444  10650452  30% /usr

After python ROS install. Status 3

 df
 Filesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6537352 1910872   4271360  31% /
 udev              499508       4    499504   1% /dev
 tmpfs             203328     888    202440   1% /run
 none                5120       0      5120   0% /run/lock
 none              508316     156    508160   1% /run/shm
 /dev/sdb1       15073280 4451320  10605576  30% /usr

 du -s /opt/
 148984  /opt/

 du -s /usr
 4395580 /usr

Failed

It failed when I did a 12.04 upgrade because there disk was 60% full.

Installation

 sudo apt-get install ros-hydro-desktop-full

Disk Full

 eepp@Rock:~$ df
 ilesystem     1K-blocks    Used Available Use% Mounted on
 /dev/sda1        6668424 6643172         0 100% /
 udev              501224       4    501220   1% /dev
 tmpfs             203408     872    202536   1% /run
 none                5120       0      5120   0% /run/lock
 none              508516     204    508312   1% /run/shm

uninstall help


 eepp@Rock:~$ sudo apt-get remove ros-hydro-desktop-full
 E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
 eepp@Rock:~$ sudo dpkg --configure -a
 dpkg: error: failed to write status database record about 'libxrender1' to '/var/lib/dpkg/status': No space left on device