-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linear Segemntation won't work #3099
Comments
I see at least one PR that has been merged since 1.9.1 fixing a regression with line segmentation #2767. Would you mind giving the current master a try? |
Hello @SergioRAgostinho, thanks for answering. I have been trying to compile the source code from the master branch but also those dependencies are a pain, I downloaded the branch and put all the 3rdParty libraries in my path pointing to my all-in-one installation directories so that Cmake can Generate properly.
and the errors are mostly :
with a lot others modules :
a lot...
Seems like there is something wrong with my FLANN.. is there a way to fix this ? Thanks. |
That looks messy indeed. Based on the errors you're having I would have expected CMake to not even get past the configuration stage. Once that gets through, there should be no more issues like the ones you have, otherwise our continuous integration builds would be failing as well.
You can follow #2772 too keep track of the release dates. Currently early July, but as you can see there's still a number of pending items to address, so the dates might derail. |
Found the fix to the FANN issue : Will test the linear segmentation tomorrow. |
Update : I have 3 errors left that are preventing me to successfully install the current branch. They concern :
And, for pcl_segmentation.vcxproj for instace it goes :
|
update, fixed some linkage issues, got some others : With Boost : thread module from Boost is not imported despite CMake clearly stating :
When I call :
I get :
With FLANN :
For some reason... Additional help is welcome. |
Boost Worth noting, I recently stripped all mentions to the Boost.Thread from the master branch. Depending on your current checkout, this could be what you are witnessing. You either include Boost Thread explicitly in your downstream cmake project or you make use of the FLANN |
Boost, what's the best alternative to I was using it to display my viewer like the tutorial uses it :
I was getting the FLANN error when compiling my own bit of code, fixed it by commenting this on the CMakeList :
I guess not making it static solved the issue.... |
Manage to get my installation to launch, sadly reader makes it crash :
I just get |
#include <chrono>
#include <thread>
using namespace std::chrono_literals;
while (!viewer->wasStopped())
{
viewer->spinOnce(100);
std::this_thread::sleep_for(100ms);
}
I won't be able to comment much here. You are modifying things without really understanding the root problem.
Threads producing verbose complaints is often the result of threads not being joined before their object runs out of scope. |
My bad, the reading on the disk was just taking some time. Everything is working fine now, including linear segmentation, master branch isn't concerned by this issue anymore. I'm closing this and thanks a lot @SergioRAgostinho for the help, sorry for spamming. |
Good to know 👍 Thanks for reporting. |
@edmondboulet How did you fix the linker errors you mentioned on May 28th? I am seeing those exact same errors while trying to do a different task, but I am unsure how to resolve them. |
Well I should have been more precise in y answer because I can't remember exactly, but most my errors was coming from bad PATH variable pointing to the wrong folder. Hope it helps. |
@edmondboulet could you please shows us a hint on how to solve the environment value for Flann i havent been able to solve the issue. |
Sorry, I really can't, it was long ago and I haven't done any CPL since. |
Thank you anyway. Will have to switch back to ubuntu then. |
Hello,
I tried using Line fitting using Ransac but I keep having the same issue regardless of how the method is called.
Your Environment
Context
I have the following point cloud :
Photo1
Photo 2
But I'm also testing with this point cloud :
photo 3
Expected Behavior
Ans you can guess these are the walls of a room projected onto the XY plan, and my goal was to perform a segmentation by line to get the coefficient of the walls orientation.
So my goal is to have a line for each part of walls with their model coefficient.
Current Behavior
when I try to get the to perform a linear segmentation i get the following result :
PointCloud input for line segmentation: 22394 data points. [pcl::RandomSampleConsensus::computeModel] No samples could be selected! [pcl::SACSegmentation::segment] Error segmenting the model! No solution found. Could not estimate a linear model for the given dataset. Unused Point Cloud of : 22394 data points. Line Segmentation Done.
Code to Reproduce
I've tried with this implementation :
But also this one :
and I played with the DistanceThreshold parameter but nothing worked.
Is it a bug or am I missing something ?
thanks for the answers.
The text was updated successfully, but these errors were encountered: