Let's Make Robots!

Simplest - yet most effective object avoidance

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.

If I'm not mistaken, in C/C++ you can write everything on one line except the preprocessors (and // comments and probably other stuff), so that would be cheating. In arduino, it isn't even necessary to use preprocessors (the libraries are pre-included), so...  If the goal changes to "a fewest characters of code", everyone will use one-char variables. I suggest the goal changes to "a fewest words of code".

Pardon my bad english. Point was to inspire to share smart little pieces of code to do a basic task that many struggle with, or make too complicated.

I have modified the post :)

Second, I was trying to lift people over the simple "my robot can drive around", to at least "And it does it simply", or possibly even beyond, like "And this is just the base. The thing it does when driving around is.."

Here is my entry.

Number of lines 0
Prosessor None

:-)

http://letsmakerobots.com/node/18035

 

Well, OK, one can make robots without MCU's. And that is a good point.

However, allow me to repeat myself:

"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."

I do not see this reverse out of difficult corners, and I cannot download any freakin code!

But being that there are so many languages, platforms, actuators, wheel drive & steering, sensors, boards, etc....

Maybe it would be worthwhile to submit different Algorithms to avoid obstacles.

From Geir Project it seems

2 forward facing switches cross connected to two motors

Wouldn't this be the universal symbol?

 

Hmmm... I wonder what the symbol is for , backup check left 45, check right 45 - what is further - go that way :D

I just couldn't resist :-)

 

My entry would have had one whole line. So your robot defeats mine. Plus it actually exists! My (Picaxe Basic) entry would read:

rem Sit still you stupid robot or you will run in all kinds of obstacles!

Ok, you are all very funny ;)

Point here was not to make a contest in fewest lines of code, but to inspire people to make simple routines and share them.

I think Rik was working on something very Zen.
He is a very smart guy you know.

Imagine if a person programs in asm.