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

Find obstacle #7

Open
nicjar opened this issue Jan 25, 2017 · 1 comment
Open

Find obstacle #7

nicjar opened this issue Jan 25, 2017 · 1 comment

Comments

@nicjar
Copy link

nicjar commented Jan 25, 2017

@nicjar commented on Wed Jan 25 2017

@pontus
Copy link

pontus commented Jan 25, 2017

When we see an obstacle (perhaps do at a fixed distance?):

Turn right until we don't see the obstacle [1].
Note our direction
Turn left until we don't see the obstacle [1]
Calculate how wide the angle the obstacle occupies is
If the angles is < 180 degrees, the obstacle is a box, otherwise we are looking at a wall.

1: There may be a box in front of a wall, so we can't just look for something detectable or not - we probably need to look differences greater than a certain value.

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