Create a build folder, and run cmake and make in that folder
mkdir build
cd build
cmake ..
make
Run the detect_plane
executable in the build folder by passing it one argument, which is the path to the input .pcd file.
./detect_plane <path to .pcd file>
The task is to first detect a horizontal plane, and then to segment and cluster objects on it. See code for comments
Example pointclouds can be found here