-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The following page will list the full installation instructions.
The following is a list of the software needed to install and run the code.
- Laptop - Kubuntu Trusty (14.04)
- Raspberry PI 2 - Ubuntu 14.04 LTS for ARM
- ROS - Jade Turtle
- Rosserial
- Rosserial - Version 0.7.1
- Rosserial_Python - Version 0.7.1
- Rosserial_Arduino - Version 0.7.1
- ROS OpenCV - Version 3.1
- ROS BridgeCV - Version 1.11.12
The following software is not required but was used in the installation and deployment of the code.
- SSH Server
- Vim
- Arduino IDE
The following section describes the requirements of the Raspberry Pi 2 OS as well as the connected Laptop. Note: All the following steps must be completed for both installations.
ROS is intended to work on linux based operating systems.
Note: Check the current installation page. This project was created in ROS Jade. On the installation page it says it only supports :
“Trusty (14.04), Utopic (14.10) and Vivid (15.04)”
This project was created and tested on Kubuntu Trusty (14.04).
Link to download: http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/
Installation Guide: https://help.ubuntu.com/community/Installation
For the Raspberry PI Ubuntu Trusty for ARM was installed.
Note: Check the current installation page. This project was created in ROS Jade. On the installation page, it says it only supports :
“Trusty (14.04), Utopic (14.10) and Vivid (15.04)”
This project was created and tested on Ubuntu 14.04 LTS for ARM.
Link to image download and installation guide: https://wiki.ubuntu.com/ARM/RaspberryPi
sudo apt-get install openssh-serverTo find the IP address of the Raspberry PI following the following steps:
- Plug a screen into the HTMI port of the Raspberry PI 2 as well as a Keyboard
- Ensure the Raspberry Pi is connected to the network.
- Power on the Raspberry PI 2
- Login to the Raspberry PI 2 using the username and password provided in the credentials document.
- Run the command
ifconfig -a - Look for the line:
inet addr:192.168.1.101 Bcast:10.0.127.255 Mask:255.255.224.0 - Note the inet addr. The following numbers are you IP Address.
Note: If you are using the same router the addresses start at 100. It is possible to guess the first few addresses and find it.
On the Laptop on the same network as the Raspberry PI:
- Open a Console
- Run the following Command:
ssh [email protected]
Wherewww.xxx.yyy.zzzrepresents the IP Address of the Raspberry PI found in the previous step.
The following commands were taken from the ROS Installation Guide, please reference the link for the full installation procedure.
ROS Installation Guide: http://wiki.ros.org/jade/Installation/Ubuntu.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-key 0xB01FA116
sudo apt-get update
sudo apt-get install ros-jade-desktop-full
sudo rosdep init
rosdep update
sudo apt-get install python-rosinstall Vim Website: http://www.vim.org/download.php
The following steps are the easy installation method using apt-get
- Open a Console
- Run the Following Command:
sudo apt-get install vimIf asked type Y to install - To setup vim run:
vim ~/.vimrc - Ensure the following lines are present… (Note to edit the file press (insert))
set number
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttabTo save press (esc) then press (:) then type “wq” press (enter)
Git Installation Guide: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Follow the following steps to install Git:
Open a Console and type the following Command
sudo apt-get install git-allIf asked type Y to complete the installation
This section walks through the process of cloning the code from Github.
GitHub Code: https://github.com/tylerburnham42/MercerSubProject
GitHub Cloning Guide: https://help.github.com/articles/cloning-a-repository/
Note: The code may need to be forked before it can be worked on
Follow the following steps to clone the Git Repo and configure the email:
Open a console and type the following commands:
cd ~
git clone https://github.com/tylerburnham42/MercerSubProject
cd ~/MercerSubProject
git fetch
git checkout masterTo configure the correct email type the following with correct information
git config --global user.email "[email protected]"
git config --global user.name "FirstName LastName"vim ~/.bashrcAdd these lines to the end:
source /opt/ros/jade/setup.bash
source ~/MercerSubProject/devel/setup.bashRos Wiki Page: http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
Rosserial GitHub Page: https://github.com/ros-drivers/rosserial
The software was built and tested on the following versions:
- Rosserial - Version 0.7.1 (2015-07-06)
- Rosserial_Python - Version 0.7.1 (2015-07-06)
- Rosserial_Arduino - Version 0.7.1 (2015-07-06)
sudo apt-get install ros-jade-rosserial sudo apt-get install ros-jade-rosserial-arduino
cd ~/MercerSubProject
catkin_make
catkin_make installThe following is necessary to recompile the header files. Run this on the first installation or whenever a new custom message used by the arduino is created. Follow the steps below to recompile:
Open the Console and type the following commands:
rm -r ~/sketchbook/libraries/ros_lib/
rosrun rosserial_arduino make_libraries.py ~/sketchbook/librariesThe software was built and tested on the following versions:
- Version 3.1
To install OpenCV use the following guide.
http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_install/linux_install.html
The software was built and tested on the following versions:
- Version 1.11.12
From: http://wiki.ros.org/cv_bridge
python <vison_opencv dir>/cv_bridge/setup.py build
python <vison_opencv dir>/image_geometry/setup.py buildThe software was built and tested on the following versions:
- Version: 1.6.8
Use the following guide to download and install the Arduino IDE on the Laptop:
From: http://playground.arduino.cc/Linux/Ubuntu
sudo apt-get update && sudo apt-get install arduino arduino-coreTo update all the ros packages:
Open a console
Run the following commands:
sudo apt-get update
sudo apt-get dist-upgradeIf asked type “Y” to complete the installation