Giter VIP home page Giter VIP logo

torch-pcl's People

Contributors

andreaskoepf avatar german-m-garcia avatar jhoef avatar jnodev avatar uwesterh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torch-pcl's Issues

Error when call require

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?

Build error:

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!

pcl 1.7 openni2 problem and pcl filter

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

Memory leak

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.

Faster build after changes: Partition source along classes/technique not point type

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.

Does not compile with vtk-6.0

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

fatal error: pcl/io/openni2_grabber.h: No such file or directory

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

suggestion

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.