atenpas / gpd

Detect 6-DOF grasp poses in point clouds
BSD 2-Clause "Simplified" License
606 stars 233 forks source link

Build a c++ native library "grap_pose_detection" #58

Closed sharronliu closed 4 years ago

sharronliu commented 5 years ago

This PR intents to build a c++ native library "grasp_pose_detection" that is independent on ROS. This serves as a common library in either ROS or ROS2.

Fix issue https://github.com/atenpas/gpd/issues/52

Key changes include:

How to build the library: An automatic way is to build the "gpd" package from catkin workspace: $ catkin_make -DCMAKE_BUILD_TYPE=Release --pkg gpd

or "catkin_make -DCMAKE_BUILD_TYPE=Release -DUSE_OPENVINO=ON --pkg gpd"

Alternatively, manually kick off the build is supported: $ cd src/gpd $ mkdir build && cd build $ cmake -DUSE_CAFFE=ON ..

or "cmake -DUSE_OPENVINO=ON .."

$ sudo make install By default "libgrasp_pose_detection.so" shall be installed to "/usr/local/install".

There are NO changes on build options or launch options :) This PR is tested working with "USE_CAFFE=ON (default)" or "USE_OPENVINO=ON". This PR is also tested with "Ubuntu 16.04 + ROS Kinetic" or "Ubuntu 18.04 + ROS Melodic".

atenpas commented 4 years ago

GPD is now a C++14 library.