Skip to content

Install everything on your UP Squared from scratch

Giovanni Bruno edited this page Nov 10, 2019 · 9 revisions

1. Install Ubuntu 16.04

Follow this guide: official UP guide for Ubuntu installation

2. Install UPboard kernel

Follow this guide: official UP guide for UPboard kernel installation

3. Install UPboard extras

Follow this guide: official UP guide for UPboard extras installation

4. Install MRAA libraries

Open terminal and type:
$ sudo add-apt-repository ppa:mraa/mraa
$ sudo apt-get update
$ sudo apt-get install mraa-tools mraa-examples libmraa1 libmraa-dev libupm-dev libupm1 upm-examples
$ sudo apt-get install python-mraa python3-mraa node-mraa libmraa-java

5. Install ROS Kinetic Kame

Follow this guide: official ROS Kinetic Kame installation
Then:
$ mkdir -p ~/catkin_ws/src
$ cd ..
$ catkin_make
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

6. Install Realsense SDK

Open terminal and type:
$ sudo apt-get install linux-headers-4.15.0-37-generic
$ sudo ln -s /usr/src/linux-headers-4.15.0-37-generic/ /lib/modules/4.15.0-37-generic/build
Then follow steps in this guide: official Intel Realsense guide

7. Test Realsense with ROS

Open terminal and type:
$ cd ~/catkin_ws/src/
$ git clone https://github.com/intel-ros/realsense.git
$ cd ..
$ rosdep update
$ rosdep install --from-paths src --ignore-src -r -y
$ catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
$ catkin_make install
Test typing:
$ roslaunch realsense2_camera rs_camera.launch

8. Install OpenVINO

Follow this page to install OpenVINO: NCS2 get started
NOTE: install OpenVINO in /opt/intel
Then type in terminal:
$ echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc
$ source ~/.bashrc

9. Test OpenVINO with ROS

Open terminal and type:
$ cd ~/catkin_ws/src
$ git clone https://github.com/gbr1/ros_openvino.git
$ cd ..
$ catkin_make
$ catkin_make install
With Realsense connected:
$ roslaunch ros_openvino myriad_demo_realsense.launch

10. Test UP Squared leds with ROS

Open terminal and type:
$ cd ~/catkin_ws/src
$ git clone https://github.com/gbr1/upboard_ros.git
$ cd ..
$ catkin_make
$ catkin_make install
$ roslaunch upboard_ros led_test.launch