MLS resamplig

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

MLS resamplig

Lesliecasas
This post was updated on .
Hi everyone,
I'm using the pcl-trunk surface library for compiling the resampling.cpp example but i get the following error. In general i used all the libraries from the pcl-trunk.
======================================
Compiling: main.cpp
In file included from /home/leslie/Documentos/Proyectos/mls/main.cpp:5:0:
/home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58: error: expected template-name before ‘<’ token
/home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58: error: expected ‘{’ before ‘<’ token
/home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58: error: expected unqualified-id before ‘<’ token
/home/leslie/Documentos/Proyectos/mls/main.cpp: En la función ‘int main(int, char**)’:
/home/leslie/Documentos/Proyectos/mls/main.cpp:22:60: error: el agregado ‘pcl::MovingLeastSquares<pcl::PointXYZ, pcl::PointNormal> mls’ tiene un tipo incompleto y no se puede definir
Process terminated with status 1 (0 minutes, 4 seconds)
4 errors, 0 warnings
====================================
The first three errors take me to mls.h to the line:
 class MovingLeastSquares: public CloudSurfaceProcessing<PointInT, PointOutT>
It looks like the class CloudSurfaceProcessing doesn't have that format.

What would be the problem?

Leslie
Reply | Threaded
Open this post in threaded view
|

Re: MLC resamplig

Radu B Rusu
Administrator
Leslie,

It would be better to post a minimal code snippet that reproduces this problem as well as the build (CMake)
configuration files. In principle there should be no problems compiling MLS from trunk. However, we recommend users to
stick with official releases as much as possible. Is there a reason why PCL 1.5.1 doesn't work in your case? Just
curious. (If there's a bug that was fixed in the meantime, that's understandable)

Cheers,
Radu.

On 06/19/2012 02:47 PM, Lesliecasas wrote:

> Hi everyone,
> I'm using the pcl-trunk surface library for compiling the resampling.cpp
> example but i get the following error. In general i used all the libraries
> from the pcl-trunk.
> ======================================
> Compiling: main.cpp
> In file included from /home/leslie/Documentos/Proyectos/mls/main.cpp:5:0:
> /home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58:
> error: expected template-name before ‘<’ token
> /home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58:
> error: expected ‘{’ before ‘<’ token
> /home/leslie/Documentos/PCL/MLS/resampling/build/pcl-trunk/surface/include/pcl/surface/mls.h:67:58:
> error: expected unqualified-id before ‘<’ token
> /home/leslie/Documentos/Proyectos/mls/main.cpp: En la función ‘int main(int,
> char**)’:
> /home/leslie/Documentos/Proyectos/mls/main.cpp:22:60: error: el agregado
> ‘pcl::MovingLeastSquares<pcl::PointXYZ, pcl::PointNormal>  mls’ tiene un tipo
> incompleto y no se puede definir
> Process terminated with status 1 (0 minutes, 4 seconds)
> 4 errors, 0 warnings
> ====================================
> What would be tha problem?
>
> Leslie
>
> --
> View this message in context: http://www.pcl-users.org/MLC-resamplig-tp4019453.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: MLS resampling

Lesliecasas
Thank for your answer.

I tried first with the official version but I got the error "MovingLeastSquares has no member named ‘process’ ".
So, i checked in http://www.pcl-users.org/MovingLeastSquares-has-no-member-named-process-td4018611.html, that i had to use the trunk version.
The code i'm compiling is the example post in http://www.pointclouds.org/documentation/tutorials/resampling.php

I' m using codeblocks to compile it. I linked all the libraries from the trunk version pcl 1.6 manually\

I am getting really confused about the linking and compiling directories using the trunk version because the folders doesn't have a common path as in the official version.:
-to get to mls.h
......./pcl-trunk/surface/include/pcl/surface/mls.h
-kdtree.h
....../pcl-trunk/kdtree/include/pcl/kdtree/kdtree.h
As all the libraries in the .h files are in the format /lib/file.h (surface/mls.h) , it doesn't work for this format.

but in pcl 1.5, there is a common path for all the .h files "usr/inlude/pcl1.5/pcl/"
usr/inlude/pcl1.5/pcl/kdtree/kdtree.h
usr/inlude/pcl1.5/pcl/surface/mls.h

Is there any other code to use as an example in order to test MLS using the official version?

Leslie
Reply | Threaded
Open this post in threaded view
|

Re: MLS resampling

aichim
Administrator
Hi,


You can find more details about compiling PCL from source here:
http://pointclouds.org/downloads/source.html
Just make sure you are linking against the right version of PCL. Easiest
would be to delete all traces of any older version of PCL you have
installed (i.e., usr/local/include/pcl-*/usr/local/lib/libpcl* )

The tutorial should work out of the box if everything is setup right.


Cheers,
Alex

On 6/20/12 6:43 PM, Lesliecasas wrote:

> Thank for your answer.
>
> I tried first with the official version but I got the error
> "MovingLeastSquares has no member named ‘process’ ".
> So, i checked in
> http://www.pcl-users.org/MovingLeastSquares-has-no-member-named-process-td4018611.html,
> that i had to use the trunk version.
> The code i'm compiling is the example post in
> http://www.pointclouds.org/documentation/tutorials/resampling.php
>
> I' m using codeblocks to compile it. I linked all the libraries from the
> trunk version pcl 1.6 manually\
>
> I am getting really confused about the linking and compiling directories
> using the trunk version because the folders doesn't have a common path as in
> the official version.:
> -to get to mls.h
> ......./pcl-trunk/surface/include/pcl/surface/mls.h
> -kdtree.h
> ....../pcl-trunk/kdtree/include/pcl/kdtree/kdtree.h
> As all the libraries in the .h files are in the format /lib/file.h
> (surface/mls.h) , it doesn't work for this format.
>
> but in pcl 1.5, there is a common path for all the .h files
> "usr/inlude/pcl1.5/pcl/"
> usr/inlude/pcl1.5/pcl/kdtree/kdtree.h
> usr/inlude/pcl1.5/pcl/surface/mls.h
>
> Is there any other code to use as an example in order to test MLS using the
> official version?
>
> Leslie
>
>
> --
> View this message in context: http://www.pcl-users.org/MLS-resamplig-tp4019453p4019487.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users