Skip to content

Commit

Permalink
OpenVINO: added tutorial for openvino
Browse files Browse the repository at this point in the history
This patch tells the steps to enable openvino:
+ guides to install OpenVINO
+ guides to verify OpenVINO installation
+ build GPD with OpenVINO
+ launch GPD with target device

Signed-off-by: Sharron LIU <[email protected]>
  • Loading branch information
Sharron LIU committed Sep 6, 2018
1 parent 002c229 commit 396b760
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ The output should look similar to the screenshot shown below.

1. [Detect Grasps With an RGBD camera](tutorials/tutorial_1_grasps_camera.md)
2. [Detect Grasps on a Specific Object](tutorials/tutorial_2_grasp_select.md)
3. [Detect Grasps with OpenVINO](tutorials/tutorial_openvino.md)


## 7) Parameters
Expand Down
35 changes: 35 additions & 0 deletions tutorials/tutorial_openvino.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Tutorial Enable OpenVINO

In this tutorial, we introduce how to enable OpenVINO option for grasp detection.

## 1. Install OpenVINO toolkit
OpenVINO supports multiple host OS. We verified with Linux.
[Installing the OpenVINO Toolkit for Linux](https://software.intel.com/en-us/articles/OpenVINO-Install-Linux)

## 2. Verify OpenVINO installation
Try to run the demo scripts.
[Verify the Demo Scripts](https://software.intel.com/en-us/articles/OpenVINO-Install-Linux#inpage-nav-3-5)
Then try to run OpenVINO inference example applications.
[Build the Samples](https://software.intel.com/en-us/articles/OpenVINO-InferEngine#inpage-nav-6),
[Running the Samples](https://software.intel.com/en-us/articles/OpenVINO-InferEngine#inpage-nav-7)

## 3. Build GPD with OpenVINO
Once OpenVINO installed, build GPD with option "USE_OPENVINO" ([OFF]|ON)
```
catkin_make -DCMAKE_BUILD_TYPE=Release -DUSE_OPENVINO=ON --pkg gpd
```

## 4. Launch GPD with OpenVINO
The launch process is similar to [Detect Grasps With an RGBD camera](tutorials/tutorial_1_grasps_camera.md),
just with an additional param "device" ([0:CPU]|1:GPU|2:VPU|3:FPGA) to specify the target device to execute the
grasp detection.
```
# launch the openni camera for pointcloud2
roslaunch openni2_launch openni2.launch
# start rviz
rosrun rviz rviz
# setup OpenVINO environment variables, replacing <OPENVINO_INSTALL_DIR> with the specific location
source <OPENVINO_INSTALL_DIR>/bin/setupvars.sh
# launch the grasp detection
roslaunch gpd tutorial1.launch device:=0
```

0 comments on commit 396b760

Please sign in to comment.