xamla / torch-pcl Goto Github PK
View Code? Open in Web Editor NEWPoint Cloud Library (PCL) bindings for Torch
License: BSD 3-Clause "New" or "Revised" License
Point Cloud Library (PCL) bindings for Torch
License: BSD 3-Clause "New" or "Revised" License
When I call require in torch, it got error:
th> pcl = require 'pcl'
/home/mine/torch/install/share/lua/5.2/trepl/init.lua:384: /home/mine/torch/install/share/lua/5.2/trepl/init.lua:384: /home/mine/torch/install/share/lua/5.2/luarocks/loader.lua:117: error loading module 'pcl.PointTypes' from file '/home/mine/torch/install/share/lua/5.2/pcl/PointTypes.lua':
/home/mine/torch/install/share/lua/5.2/pcl/PointTypes.lua:1068: unexpected symbol near char(226)
stack traceback:
/home/mine/torch/install/share/lua/5.2/trepl/init.lua:501: in function </home/mine/torch/install/share/lua/5.2/trepl/init.lua:494>
[C]: in function 'error'
/home/mine/torch/install/share/lua/5.2/trepl/init.lua:384: in function 'require'
[string "pcl = require 'pcl'"]:1: in main chunk
[C]: in function 'xpcall'
/home/mine/torch/install/share/lua/5.2/trepl/init.lua:670: in function 'repl'
...mine/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: in ?
Dose anyone get this error and solve it before?
Hi,
I'm trying to install this package with:
luarocks install --server=http://luarocks.org/dev torch-pcl
(I tried with luarocks install pcl
but get "Error: No results matching query were found.")
but get this error:
In file included from /tmp/luarocks_torch-pcl-scm-1-1014/torch-pcl/src/generic.cpp:2:0,
from /tmp/luarocks_torch-pcl-scm-1-1014/torch-pcl/src/xyz.cpp:4:
/tmp/luarocks_torch-pcl-scm-1-1014/torch-pcl/src/generic/io.cpp: In function ‘int pcl_PointCloud_XYZ_loadOBJFile(pcl::PointCloudpcl::PointXYZ::Ptr_, const char_)’:
/tmp/luarocks_torch-pcl-scm-1-1014/torch-pcl/src/generic/io.cpp:30:12: error: ‘loadOBJFile’ is not a member of ‘pcl::io’
return pcl::io::loadOBJFile(fn, *self);
^
make[2]: ** [CMakeFiles/pcl.dir/src/xyz.cpp.o] Error 1
make[1]: *** [CMakeFiles/pcl.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
Can you help me with this issue? Thanks a lot!
Hi,
I'm getting the above message when I try to install the package with luarocks install pcl
. Any ideas? I have Torch7 and PCL installed.
Hi Andreas
i'm testing your pcl binding for torch
i'm using pcl 1.7 and there is no openni2 headers in this version so the compile process stalls in openni2.cpp and OpenNI2GrabberStream.h...
so i removed all the reference to openni2 in the code but is there a better way to compile with the 1.7 version?
I see that you have made c wrappers for basic filtering, but not the lua part, do you plane to do this in a short future or i have to do it by myself?
thanks
Nicolas
I have observed a memory leak in Indices filled by KdTree.radiusSearch()
or KdTree.nearestKSearch()
and read by Indices.viewAsTensor()
afterwards. Calling an explicit storage():free()
on the obtained tensor's storage then seems necessary.
Currently xyz.cpp and the other 'point-type generator files' include a set of files from the generic folder... this leads to long recompilation of effectively nearly the whole library as soon as a single wrapper was changed. By using individual files for the classes/technologies the compilation time could be reduced significantly.
Exception information like the error message should be available in the status returned from a pcall when an exception is thrown inside the pcl-wrapper.
Problem: C longjumps will not call destructors...
When trying to build troch-plc with vtk-6.0, the compile process ends with an error:
[ 40%] Building CXX object CMakeFiles/pcl.dir/src/xyz.cpp.o
In file included from torch-pcl/src/xyz.cpp:7:0:
torch-pcl/src/mesh_sampling.cpp: In function ‘void sampleMesh(vtkPolyData*, pcl::PointCloud<pcl::PointXYZ>::Ptr, int, float)’:
torch-pcl/src/mesh_sampling.cpp:107:19: error: ‘class vtkTriangleFilter’ has no member named ‘SetInput’
triangleFilter->SetInput(polydata);
^
make[2]: *** [CMakeFiles/pcl.dir/src/xyz.cpp.o] Fehler 1
Currently several functions from class PCLVisualizer to remove individual objects are missing. Sorted in order of urgency the functions are
removeShape
removePointCloud
removeText3D
removeCoordinateSystem
(see http://docs.pointclouds.org/trunk/classpcl_1_1visualization_1_1_p_c_l_visualizer.html for details of the mentioned functions)
When I clone and build with command
luarocks make rocks/torch-pcl-scm-1.rockspec
it output fatal error:
fatal error: pcl/io/openni2_grabber.h: No such file or directory
compilation terminated.
CMakeFiles/pcl.dir/build.make:206: recipe for target 'CMakeFiles/pcl.dir/src/xyzrgba.cpp.o' failed
make[2]: *** [CMakeFiles/pcl.dir/src/xyzrgba.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pcl.dir/all' failed
make[1]: *** [CMakeFiles/pcl.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Does anyone see this issue? Currently my setting: Ubuntu 16.04, pcl 1.8
would you saparate the lua binding from your project, into 2 subproject. Then the architecture will be more clear.
And many people want just use the pcl in Lua without torch.
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.