Home

Awesome

DISCONTINUATION OF PROJECT

This project will no longer be maintained by Intel.

Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project.

Intel no longer accepts patches to this project.

If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project.

Contact: webadmin@linux.intel.com

ros_opencl_caffe

Warning: This repo is deprecated. For latest ROS wrapper for Intel GPU, please refer to our project ros_openvino_toolkit.

See: https://github.com/intel/ros_openvino_toolkit!!

Introduction

OpenCL Caffe(clCaffe) is an OpenCL backend for Caffe from Intel®. With inference optimized by Intel® OpenCL, clCaffe can be used in most scene in high performance, like objects inference.

This project is a ROS wrapper for OpenCL Caffe, providing following features:

Prerequisite

Environment Setup

  sudo ln -s <clCaffe-path> /opt/clCaffe
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/clCaffe/build/lib

Building and Installation

  cd ~/catkin_ws/src
  git clone https://github.com/intel/object_msgs
  git clone https://github.com/intel/ros_opencl_caffe
  cd ~/catkin_ws/
  catkin_make
  catkin_make install
  source install/setup.bash

Copy object label file to clCaffe installation location

  cp ~/catkin_ws/src/ros_opencl_caffe/opencl_caffe/resources/voc.txt /opt/clCaffe/data/yolo/

Running the Demo

Inference

  1. Standard USB camera
    roslaunch opencl_caffe_launch usb_cam_viewer.launch
  1. Intel® RealSense™ camera
    roslaunch opencl_caffe_launch realsense_viewer.launch
  1. Microsoft® Kinect™ camera
    roslaunch opencl_caffe_launch kinect_viewer.launch

Service

  roslaunch opencl_caffe_launch opencl_caffe_srv.launch

Test

Use rostest for tests

  source devel/setup.bash
  rostest opencl_caffe service.test
  rostest opencl_caffe detector.test

Known Issues

TODO

Any security issue should be reported using process at https://01.org/security