Skip to content

Fast setup for Myriad based devices

Giovanni Bruno edited this page Oct 24, 2019 · 5 revisions

This page guides you in a step by step fast setup to get your Myriad based device working with ROS!
Compatible devices:

  • Intel Neural Compute Stick (Myriad2);
  • AAEON AI Core (Myriad2);
  • Intel Neural Compute Stick 2 (MyriadX);
  • AAEON AI Core X (MyriadX).

N.B. Steps are the same for all devices

1. What do you need?

  • a computer or SBC with Ubuntu 16.04 or 18.04 and ROS Kinetic Kame or Melodic Morenia respectively;
  • a supported device.

During development two configurations had been fully tested using OpenVINO from 2018 R1 to 2019 R3:

  • AAEON UP Squared with AI Core X (check this kit);
  • Generic laptop (Intel Celeron N4100) with Intel Compute Stick.

2. Setup

2.1 Install OpenVINO

Follow official "getting started" guide linked here.

IMPORTANT: when run ./install_GUI.sh please run as sudo ./install_GUI.sh and setup everything in /opt/intel

NOTE: when run ./demo_squeezenet_download_convert_run.sh -d MYRIAD you will get some errors; please run sudo ./demo_squeezenet_download_convert_run.sh -d MYRIAD instead.
You will get an error at the end but you can test that Myriad interface works.
Check following image, something similar will happen: terminale_error


2.2 Install ros_openvino

Assuming your ROS workspace is initialized and called "catkin_ws", open terminal and type: echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc
source ~/.bashrc

At this point your environment variables are setted.

Type:
cd catkin_ws/src
git clone /~https://github.com/gbr1/ros_openvino
cd ..
catkin_make
catkin_make install

Now power-off or restart your computer, it is required to get everything working.

3. Test

If you have a realsense camera, plug into your computer, open a terminal and type:
roslaunch ros_openvino myriad_demo_realsense.launch

Or if you have a webcam, test by typing:
sudo apt-get install ros-kinetic-usb-cam
roslaunch ros_openvino myriad_demo_webcam.launch


Enjoy!