Error while running B-Spline Fitting Example

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

Error while running B-Spline Fitting Example

anoops

Hi,

     I am trying to run the "B-Spline Fitting" example which was given by PCL. I am getting a Run-time error, I dont know whether the file is getting read properly or not. I have attached screenshots with this mail. Screenshot 1 shows till where the program gets executed and Screenshot 2 show where the program gets struck. Please Someone help me with a solution to this problem. I just need to see how the B-Spline fitting works in PCL.

Screen shot 1
Screen shot 2 

Thanks,
Anup
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

VictorLamoine
Administrator
Hello,

Which PCL version are you using? Have you tried with another version?
This code seems to run fine on Linux, so you might consider switching to Linux for the test.

Have you tried programs displaying point clouds/meshes, are they working?

Bye
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi Victor,
 
             My project is based on Windows Application, So i am using PCL-1.7.2 i have used PCL All-in-One Installer for VC2012. Even if i get passed this error i am facing one more Run-Time Error can you please tell me how i can resolve this?? I have attached the Screenshot wit this mail what error i am facing. I just need to test this example for now, If you have (.exe) file of "B-Spline" example can you please send it to my mail ID (anoop.s.aradhya@gmail.com) which i can test in my system.

It will get struck in the below Code

// surface refinement
  for (unsigned i = 0; i < refinement; i++)
  {
    fit.refine (0);
    fit.refine (1);
    fit.assemble (params);
    fit.solve ();
    pcl::on_nurbs::Triangulation::convertSurface2Vertices (fit.m_nurbs, mesh_cloud, mesh_vertices, mesh_resolution);

// The Below statement is causing the code to break
  viewer.updatePolygonMesh<pcl::PointXYZ> (mesh_cloud, mesh_vertices, mesh_id); // <-------
//
    viewer.spinOnce ();
  }

B-Spline error
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
Hi,

There is one thing I do not understand.
You wrote that you were using pcl 1.7.2 but as far as I know pcl 1.7.2 version does not have B-spline

You are, probably mixing different versions.

cheers
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi Nenadpol,

                  So it mean there is no B-Spline support in PCL-1.7.2?? I am using Visual Studio 2013 so i had to install the version compatible with Visual Compiler 2012 i used "PCL-1.7.2-AllInOne-msvc2012-win64". I just need to test the B-Spline example to see how it works. Do you have ".exe" file of the "B-Spline" example so that i can test in my system??

Thanks,
Anup
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
Hi,

There isn't any B-spline in pcl 1.7.2 so that means you can not "just" test how it works.
Only ".exe" file is not enough, you need dependences as well.

If you want to work and test B-spline than you need to install pcl 1.8 version and all dependences.
You need " "PCL-1.8.1-AllInOne-msvc2012-win64" or " "PCL-1.8.1-AllInOne-msvc2013-win64".

cheers
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi Nenadpol,

                 Oh so it s the issue with incompatibility, Actually PCL is not yet developed for VC2012, Even PCL-1.7.2 is not there in PCL Website. I downloaded All-in-One installed from the below link. Thanks you for your reply.

http://unanancyowen.com/?p=1255&lang=en

Thank you,
Anup S
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
Hi,

You have to compile pcl 1.8 by yourself.

Most of pcl users compile pcl ( any version) by themselves.


cheers
Nenad
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi Nenadpol,
 
                Can you send me link from where i can download PCl 1.8 All in on installer? I cant seem to find the download link.

Thanks,
Anup
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
Hi,

You can not find link because it does not exist.

You have to compile pcl 1.8 by yourself.

Nenad
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi,

   Oh ok can you send me the link for the PCl source code??

Thanks,
Anup
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi Nenadpol,

                 Thank you for your suggestion i built the PCL using the source code and was able to run the NURBS example. The NURBS is very slow program it took too long to finish, I wont be able to use this program on large data.

                  I have attached one video link with this message can you tell me is whether PCL can help me in any way to perform NURBS on an STL Model?? My task is to create a Surface model with STL model as a reference.

<nabble_embed> https://www.youtube.com/watch?v=E83iNsbpsPk </nabble_embed>

Thanks,
Anup S      
Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

nenadpol
This post was updated on .
Hi,

PCL is not software, it is open source. If you want to perform NURBS using PCL then you have to create your own application using PCL library. I guess this will take a lot of coding.

Example you tried is simple example made by PCL developers, it is not software you can use to perform NURBS. But, if you want to make your own application, it is a good start.

Creating software like Rhino takes years of coding and testing.
There are applications out there you can use but software like that is usually expensive.

cheers
Nenad

Reply | Threaded
Open this post in threaded view
|

Re: Error while running B-Spline Fitting Example

anoops
Hi,

     Ya what you said is true PCL is not a software, Actually i know the process flow of how to develop NURBS Surface on a Polygon Mesh. What i want to know is this in PCL is there any algorithm that can do "Mesh Segmentation" and create a polygons for me and then after that i want to perform "Convex Decomposition" and "Quadrilateral Partitioning" on these polygons. I have attached an image which shows the flow which i want to implement in my application.

      The Fig(a) shows the polygon obtained after "Mesh Segmentation". So what i want to know is that whether PCL has algorithms that i can use to implement "Mesh Segmentation", "Convex Decomposition" and "Quadrilateral Partitioning"??



Thanks,
Anup