Let's Make Robots!

Simplest - yet most effective object avoidance

fritsl's picture
Primary image: 
Billede_1.png

Who can make the best object avoidance, using the simplest code?

In order to qualify, your robot must be able to reverse out of difficult corners, just zig-zagging on easy terrain is not enough. And code must be downloadable in a form that makes it easy to adapt to own project.

The challenge is: Make the best object avoindance with the simplest code.

As perhaps 75% of all our projects include object avoidance, it will be great to have a place with good examples for everyone to enjoy :)

 

Looking forward to see yours :)

 

Thanks to The_Black_Cat for inspiring me to make the challenge ;)

This is an open challenge, and the winner is never going to be appointed, because this is very much a matter of personal preferences, platform etc. But please do show us what you've got :)

To participate, please just post links to your (or your fellow LMR memba's) project below :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I can do it in three lines of code and use very complex image processing algorithms at the same time. (python psuedocode)

while true:
    serialPC.send(onBoardCamera.getRawImage())
    eval(serialPC.response())

GroG's picture

I'd be more interested in the lines of code being executed between :

 serialPC.send(onBoardCamera.getRawImage())

 and
    eval(serialPC.response())

anything can be wrapped up into a 

def doit ()
... tons of code ....

...

 

nice interface though... :) 

AaahhhAndrew's picture

Ill bite. Not a short code by anymeans, and its my first, but it seems to be the only one on here :p

http://letsmakerobots.com/node/28057

fritsl's picture

Aaahhh - Nice one, looking good :D

Thanks for starting the party!

GranTotem's picture

Not only to be simple but to be cheap you can utilize a LDR  aka light dependant resistor, just light fritsl´s project http://letsmakerobots.com/node/1823

which uses something like the Amanda LDR (Frits LDR)  http://letsmakerobots.com/node/1833

soon ill send the code.

fritsl's picture

Well, thank you for pointing at my humble stuff.. However, this is not any navigation code, as far as I remember?!

GranTotem's picture

Cmon Frits...

I dont mean that, I mean you could use the same method to navigate around using LDRs

I believe its the most simple... You just need to make some changes and DONE!

Something like:

readadc 0, b1

readadc 1, b2

if b1>b2 then gosub....

you know something like that

im working on the code, you know.... I´m a newb so taking some time! :)

The_Black_Cat's picture

I might do something like this with my brothers rc car

can we modify your code for something like this

fritsl's picture

.. something like "this"? Like what?

The_Black_Cat's picture

the rc car navagation