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 :)
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 :)
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…”
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!