Skip to content

Installation

lawrence edited this page Apr 18, 2019 · 17 revisions

Install embedded system

Linux Distribution

This remarkable company of robots Ubiquity Robotics distributes an interesting pair of images for development (Virtualbox & Raspberry) image based on Ubuntu for Pi and ROS preinstalled.

Embedded image

Virtual Box Image

User and password

Wifi and Login

  • user : ubuntu
  • Pwd : ubuntu

Tools

Some tools that can be used in the next steps to login etc.

IP Scanner

This can be a good friend to found the Pi the first time

https://www.advanced-ip-scanner.com/

Putty

Common Terminal multi-protocol

https://www.putty.org/

Xserver

on windows, useful to use the own pc to open window (needed to connect any graphic window to the development pc) https://sourceforge.net/projects/vcxsrv/

Activate in connection->SSH->X11->enable X11 forwarding

Remember in your putty session use X11 Forwarding to visualize on your pc.

WinSCP

To transfer/edit file / from like in a file system (filezilla like) https://winscp.net/eng/download.php

Install development system

Embedded System

SSH to your embedded robot computer and follow the instructions.

The system is configured as 2WD, Lidar not yet configured. If you want to change follow

Create Workspace

After ROS installation, create and configure your ROS environment.

If interested in details, have a look to: Creating a ROS Workspace

ROS needs to know which catkin workspace you want to use to find the right packages and dependencies. It would be convenient to automate this every time you open a new terminal your embedded robot computer.

Remove original workspace from ROS

rm -rf ~/catkin_ws

Please note: Workspace used in this project: pluto_ws

Then create the new workspace

mkdir -p ~/pluto_ws/src

cd ~/pluto_ws/

catkin_make

echo "source ~/pluto_ws/devel/setup.bash" >> ~/.bashrc

source ~/.bashrc

Check the process was successful by printing an environment variable

echo $ROS_PACKAGE_PATH

Something similar should appear (there must be no more reference to catkin_ws

/home/ubuntu/pluto_ws/src:/opt/ros/kinetic/share

Install Pluto robot code

On your embedded robot computer, install the packages you need for configuration and visualization.

Install Lino dependencies

On your embedded robot computer, install the packages you need for configuration and visualization:

cd ~/pluto_ws/src

git clone https://github.com/linorobot/lino_pid.git

git clone https://github.com/linorobot/lino_msgs.git

git clone https://github.com/linorobot/lino_visualize.git

sudo apt-get install ros-$(rosversion -d)-teleop-twist-keyboard

Compile the Dependecies

cd .. && catkin_make

Clone & Compile Pluto

cd ~/pluto_ws/src

git clone https://github.com/lawrence-iviani/plutobot

cd .. && catkin_make

Note For Raspberry Pis 2 it is recommended to have a swap file to prevent the initial build from failing. You can disable this once the installation is done.

sudo apt-get install dphys-swapfile

Appendix

Change Installation configuration (see 1.3 in https://github.com/linorobot/linorobot/wiki/1.-Getting-Started ) Run the install file where:

base = 2wd

sensor = xv11e

./install base sensor

example:

./install 2wd xv11

Do take note that for IP based Hokuyo lidars, you will be prompted to key in the IP address (Default: 192.168.0.10). For USB based Hokuyo lidars, press 'Enter' to skip.