In this tutorial, we introduce how to enable OpenVINO option for grasp detection.
OpenVINO supports multiple host OS. We verified with Linux. Installing the OpenVINO Toolkit for Linux
Try to run the demo scripts. Verify the Demo Scripts Then try to run OpenVINO inference example applications. Build the Samples, Running the Samples
Setup OpenVINO environment variables, replacing <OPENVINO_INSTALL_DIR> with the specific location.
source <OPENVINO_INSTALL_DIR>/bin/setupvars.sh
Once OpenVINO installed, build GPD with option "USE_OPENVINO" ([OFF]|ON)
catkin_make -DCMAKE_BUILD_TYPE=Release -DUSE_OPENVINO=ON --pkg gpd
The launch process is similar to Detect Grasps With an RGBD camera, 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