Point Cloud Library (PCL) bindings for Torch
Lua C++ CMake C
Permalink
Failed to load latest commit information.
cmake Add SSE flags to fix CropBox filter bug Sep 25, 2016
data Modify CMakeList.txt for luarocks build Oct 27, 2015
demo Add -fvisibility=hidden to CXX_FLAGS Oct 2, 2016
doc Change rockspec package name from 'torch-pcl' to 'pcl' Nov 6, 2015
rocks Add -fvisibility=hidden to CXX_FLAGS Oct 2, 2016
src Fix correspondence estimation wrapper Dec 11, 2016
test Add mini test for EuclideanClusterExtraction setSearchMethod May 10, 2016
.gitignore Modify CMakeList.txt for luarocks build Oct 27, 2015
BoundaryEstimation.lua Add VFHEstimation wrapper Feb 5, 2016
CMakeLists.txt Add -fvisibility=hidden to CXX_FLAGS Oct 2, 2016
CloudViewer.lua Use pcl::IndicesPtr for Indices Dec 21, 2015
CorrespondenceEstimation.lua Fix correspondence estimation wrapper Dec 11, 2016
Correspondences.lua Add Correspondences wrapper Feb 4, 2016
EuclideanClusterExtraction.lua Add EuclideanClusterExtraction Mar 14, 2016
FPFHEstimation.lua Add basic FPFHEstimation wrapper code Feb 3, 2016
ICP.lua Add IncrementalRegistration class Dec 18, 2015
ICPNL.lua Fixed minor bugs Jul 19, 2016
IncrementalRegistration.lua Use copyMatrix instead of viewMatrix for PCA Mar 16, 2016
Indices.lua Add Keyboard/PointPicking/AreaPicking event support Feb 10, 2016
IndicesVector.lua Add OrganizedEdgeBase & OrganizedEdgeFromNormals Feb 13, 2016
IntegralImageNormalEstimation.lua Add two sets of constants for IntegralImageNormalEstimation Jul 15, 2016
KdTree.lua Add VFHEstimation wrapper Feb 5, 2016
LICENSE Initial commit Oct 20, 2015
NormalEstimation.lua Add pcl.copyPointCloud() to copy points between different point cloud… Dec 22, 2015
Octree.lua Use pcl::IndicesPtr for Indices Dec 21, 2015
OpenNI2Stream.lua Add flags to grab RGB, Depth and IR images from OpenNI2Stream Feb 15, 2016
OrganizedEdge.lua Fix typo Mar 1, 2016
PCA.lua Fix a small bug which occurs when using point clouds of types other t… May 10, 2016
PCLPointCloud2.lua Add basic PCLPointCloud2 conversion support Jul 19, 2016
PCLVisualizer.lua Add a wrapper for addCone function in PCLVisualizer Jul 18, 2016
PointCloud.lua Add PointCloud:write{RGB|RGBA}() functions Sep 21, 2016
PointTypes.lua Replace unicode minus signs Dec 28, 2016
README.md Allow binding to XYZ and XYZI point cloud types for OpenNI2Stream Dec 11, 2015
SACSegmentation.lua Fix typo Mar 1, 2016
SIFTKeypoint.lua Add parts of FPFH support (unfinished) Feb 1, 2016
SampleConsensusPrerejective.lua Add working version of SampleConsensusPrerejective Feb 5, 2016
VFHEstimation.lua Add VFHEstimation wrapper Feb 5, 2016
affine.lua Fixed minor bugs Jul 19, 2016
filter.lua Add SSE flags to fix CropBox filter bug Sep 25, 2016
init.lua Add basic PCLPointCloud2 conversion support Jul 19, 2016
primitive.lua Fixes bugs with affine transforms and mesh sampling Dec 8, 2015
torch-pcl.project Add SSE flags to fix CropBox filter bug Sep 25, 2016
torch-pcl.workspace Add function 'getFitnessScore' to 'icp' and add argument 'guess' to f… Dec 9, 2015
utils.lua Add flags to grab RGB, Depth and IR images from OpenNI2Stream Feb 15, 2016

README.md

torch-pcl

Point Cloud Library (PCL) bindings for Torch

WARNING: Work in progress! Expected v1 release date: 2015-12-20 If you want to help please contact @andreaskoepf.

Install

Prerequisites:

  1. Torch7
  2. PCL

Install using LuaRocks:

$ luarocks install pcl

Some Examples

Load a PCD file and acess values as torch tensor.

local pcl = require 'pcl'
cloud = pcl.PointCloud(pcl.PointXYZ)
cloud:loadPCDFile('data/bunny.pcd')
pt = cloud:points()  -- get tensor view to points
print(pt)

Visualize live RGB-D sensor data

Capture cloud point with OpenNI2 device and show result live in a cloud viewer window.

local pcl = require 'pcl'
local s = pcl.OpenNI2Stream(pcl.PointXYZRGBA)
local v = pcl.CloudViewer()
s:start()
for i=1,1000 do
  local c = s:read(1000)
  if c ~= nil then
    v:showCloud(c)
  end
end
s:stop()