Skip to content
Junya-s edited this page Jan 5, 2017 · 1 revision

1. Install the Ubuntu

1.1 Install the Ubuntu 14.04 LTS 64BIT (Download URL)

: http://www.ubuntu.com/download/desktop

1.2 Set Network IP (recommended)

Super Key >> network connection >> Add >> Ethernet or Wi-Fi >> Naming >> IPv4 Settings >> Manual >> Set network below

  • Address 192.168.4.xxx (call Mr. pyo)
  • Netmask 255.255.255.0
  • Gateway 192.168.4.2
  • DNS servers 133.5.6.1
  • Search domains ait.kyushu-u.ac.jp

1.3 Setup NTP (Network Time Protocol)

: Clock synchronization is important for ROS. :)

  1. Install Chrony
sudo apt-get install chrony
  1. Setup sync NTP
sudo ntpdate ntp.nict.jp

2. Install the ROS

2.1 Install the ROS Indigo

Two-line installation

wget https://raw.githubusercontent.com/irvs/rosbook_jp/master/ros_indigo_install.sh
sh ros_indigo_install.sh

or

wiki page URL for Installation the ROS : http://wiki.ros.org/indigo/Installation/Ubuntu

or

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ros-indigo-desktop-full
sudo apt-get install ros-indigo-rqt-*
sudo rosdep init
rosdep update
source /opt/ros/indigo/setup.bash
sudo apt-get install python-rosinstall
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make

if you want to delete the ROS, run the purge command.

sudo apt-get purge ros-indigo-*

2.2 Set the .bashrc file for ROS

gedit ~/.bashrc

Add script below.

################## 
## USER SETTING ## 
################## 
alias rm='rm -rf' 
alias eb='gedit ~/.bashrc' 
alias sb='source ~/.bashrc'
alias agi='sudo apt-get install'  
alias m='make -j4 -l4'  
alias gs='git status'  
alias gp='git pull'

# Set ROS Indigo
source /opt/ros/indigo/setup.bash 
source ~/catkin_ws/devel/setup.bash 
alias cw='cd ~/catkin_ws' 
alias cs='cd ~/catkin_ws/src' 
alias rt='cd ~/catkin_ws/src/ros_tms' 
alias cm='cd ~/catkin_ws && catkin_make' 

# Set ROS Network 
export ROS_MASTER_URI=http://192.168.4.170:11311 
export ROS_HOSTNAME=YOUR_IP 

###################### 
## USER SETTING END ## 
######################

Reload the .bashrc file

source ~/.bashrc

3. Pull ROS-TMS pkg using git clone

sudo apt-get install git

Git Default Setting

git config --global user.name  YOUR_NAME
git config --global user.email YOUR_EMAIL
git config --global push.default simple
git config --global --add color.ui true
git config --global --list

:high_voltage_sign: Don`t forget the SSH Keys!

ssh-keygen -t rsa -C YOUR_EMAIL
cat ~/.ssh/id_rsa.pub
ssh-add ~/.ssh/id_rsa

https://github.com/settings/ssh

:high_voltage_sign: Use it if you used private PC.

cd ~/catkin_ws/src/
git clone git@github.com:irvs/ros_tms.git

:high_voltage_sign: Use it if you used public PC.

cd ~/catkin_ws/src/
git clone https://github.com/irvs/ros_tms.git

4. Execute the installation script

cd ~/catkin_ws/src/ros_tms/dependency
./install_dependencies_pkg.sh

5. Install the ARIA lib

cd ~/
wget http://robots.mobilerobots.com/ARIA/download/current/libaria_2.8.1+ubuntu12+gcc4.6_amd64.deb
sudo dpkg -i libaria_2.8.1+ubuntu12+gcc4.6_amd64.deb

6. Run the catkin_make

cd ~/catkin_ws/ && catkin_make

or Use "--pkg" option, If you want to just comfile a specific package.

cd ~/catkin_ws/
catkin_make --pkg PKGNAME
Clone this wiki locally