-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
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.
- https://downloads.ubiquityrobotics.com/pi.html
- https://ubiquity-pi-image.sfo2.cdn.digitaloceanspaces.com/2019-02-19-ubiquity-xenial-lxde-raspberry-pi.img.xz but later versions probably could be used
- Create SD card, any system can be used. Here an example https://www.balena.io/etcher/ The Raspberry is ready to boot!
- At today, latest is workstation-1.0.1 https://downloads.ubiquityrobotics.com/vm.html
- Run the VM, on windows follow instructions in Virtual Box with the ubiquity image
- user : ubuntu
- Pwd : ubuntu
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
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/
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
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
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
On your embedded robot computer, install the packages you need for configuration and visualization.
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
cd .. && catkin_make
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
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.