-
Notifications
You must be signed in to change notification settings - Fork 13
Setup environment
Some of following steps can be outdated.
Just suppose here that you have a fresh installation of Ubuntu 16.04
-
Connect Movidius or AiCore and go to Movidius NCS2 get started:
https://software.intel.com/en-us/neural-compute-stick/get-started
-
Download 2018 R5 or newer.
Open Terminal.
Take care of following steps:-
cd ~/Downloads
-
tar xvf l_openvino_toolkit_<VERSION>.tgz
-
cd l_openvino_toolkit_<VERSION>
-
sudo ./install_cv_sdk_dependencies.sh
-
sudo ./install_GUI.sh
-
-
A GUI appears, set Customize in
/opt/intel
. Check all components during installation. -
Now setup Myriad adding udev rules. (if you don't want Myriad just jump to 7)
cd ~/Downloads
cat <<EOF > 97-usbboot.rules
SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF
sudo cp 97-usbboot.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig
rm 97-usbboot.rules
-
Test if Myriad is working well.
cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/
sudo ./install_prerequisites.sh
cd /opt/intel/computer_vision_sdk/deployment_tools/demo
sudo ./demo_squeezenet_download_convert_run.sh -d MYRIAD
-
Demo completed successfully appears so everything is ok.
-
Setup GPU (if you don't want GPU just jump to 8) if you didn't install Myriad do this step else go directly to move in
install_dependencies
cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/
-
sudo ./install_prerequisites.sh
just continue
cd /opt/intel/openvino/install_dependencies/
sudo ./install_NEO_OCL_driver.sh
reboot
-
Source OpenVINO environment variables:
cd ~
sudo nano .bashrc
- go to the end of the file and write:
source /opt/intel/computer_vision_sdk/bin/setupvars.sh
- press
CTRL X
theny
andENTER
-
Now we setup ROS Kinetic:
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://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
apt-cache search ros-kinetic
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
-
Create a ROS workspace:
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin_make
-
Add to .bashrc /devel/setup.bash:
cd ~
sudo nano .bashrc
- go to the end of the file and write:
source ~/catkin_ws/devel/setup.bash
- press
CTRL X
theny
andENTER
-
Clone ros_openvino:
cd ~/catkin_ws/src
git clone http://github.com/gbr1/ros_openvino.git
cd ..
catkin_make
-
Test with a webcam (if you haven't got a webcam jump to 14):
-
sudo apt-get install ros-kinetic-usb-cam
if you have only GPU: -
roslaunch ros_openvino gpu_demo_webcam.launch
if you have a Myriad device:
roslaunch ros_openvino myriad_demo_webcam.launch
-
-
If you have got a Realsense Depth Camera D415/D435/D435i and you need to install it (if haven't got a Realsense D4xx edit demo launcher):
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg
-
If everything is installed correctly typing:
modinfo uvcvideo | grep "version:"
output containrealsense
word. -
Connect Realsense, if you want to see it in official SDK type
realsense-viewer
-
To test ros_openvino with Myriad and Realsense type:
roslaunch ros_openvino myriad_demo_realsense
-
Everything is installed! 💪🔥
Steps from 2 to 7 are by Intel OpenVINO installation guide
Steps 9 and 10 are by ROS installation guide
Steps from 14 and 16 are by Intel Realsense Ros wrapper installation guide
This package is under AGPLv3
Copyright (C) 2019 Giovanni di Dio Bruno