Skip to content
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

Extracting a single line #1

Open
SebasPeters opened this issue Jul 11, 2017 · 6 comments
Open

Extracting a single line #1

SebasPeters opened this issue Jul 11, 2017 · 6 comments

Comments

@SebasPeters
Copy link

Hi!

I'm using your algorithm to detect lines in a factory environment for a graduation project on robotics. The code works very nice, so my compliments for that! Nevertheless, one problem I have is that I cannot seem to detect a line when only one line is present in the laserscan data. Can you advise me on which settings to change or where to adapt the code?

Best,
Sebas

@kam3k
Copy link
Owner

kam3k commented Jul 11, 2017

That's an interesting issue. Let's start by looking at some of the parameters in the launch file that could cause the problem:

max_line_gap: Lines may not be detected if the points in the line are spread out too far.
min_line_length: Is the line that isn't being detected shorter than this?
min_line_points: Does the line that isn't being detected have more points than this?
min_range: Are the points making up the line closer to than this?
min_split_dist: Are the points in the line further apart than this?

Note that a combination of settings may be the cause. When you look at the raw scan, there may appear to be enough points. But after the points have been filtered (e.g., outliers, min range), there may be less points left to create the line, perhaps less than min_line_points.

If you can't seem to resolve the problem by adjusting parameters, would it be possible to provide me a bag and launch file, and tell me where to look for the problem? If I can recreate the issue, it will be easier to track down.

Also, I haven't worked on this code in about three years, so bare with me if it takes me some time to get caught up on how things work!

@SebasPeters
Copy link
Author

SebasPeters commented Jul 11, 2017 via email

@kam3k kam3k closed this as completed Jul 11, 2017
@kam3k kam3k reopened this Jul 11, 2017
@kam3k
Copy link
Owner

kam3k commented Jul 11, 2017

Alright, good to hear it is working satisfactorily for you. I'll leave this ticket open because it sounds like there may still be an issue.

@SebasPeters
Copy link
Author

SebasPeters commented Jan 23, 2018 via email

@kam3k
Copy link
Owner

kam3k commented Jan 23, 2018

I'm interested in fixing your bug, would it be possible for you to provide a short bag file which reproduces the issue (i.e., without your hardcoded data)?

@SebasPeters
Copy link
Author

SebasPeters commented Jan 25, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants