Society of Robots - Robot Forum
Software => Software => Topic started by: prolog on December 19, 2007, 10:50:31 PM
-
[youtube=425,350]jjDKgY7Cnsc[/youtube]
Does anyone know a simple algorithm to traverse a simple maze (which has no loops and has only one way out)....
As far as my high school C++ knowledge goes, I have to use the depth first search algorithm, just like traversing a tree.
How can I make the robot 'remember' the solution without using pointers?
By the way, my controller is pic16F877A, which has very limited RAM
-
Do a search on the forum, I posted pseudocode for that a while ago.
-
I did search the forum before posting
I entered "maze" but didn't find anything related to it
http://www.societyofrobots.com/robotforum/index.php?topic=2001.0
and
http://www.societyofrobots.com/robotforum/index.php?topic=1688.0
Thanks :)
-
the robot that you posted is just a line follower that turns around at the end of the line
also does the robot hafe to follow lines or stay inside the lines
-
the robot that you posted is just a line follower that turns around at the end of the line
I don't think it's just a line follower, bro
It 'remembers' the traversed paths. I guess it's using Stack
-
You could use a sharp IR range finder sensor if your maze is made of real walls instead of lines drawn in the floor. There is at least one good tutorial in the SoR that I read before explaining how to determine a wall and give good hints in terms of determining if a hole in the wall is big enough for your robot to pass through. Look at SENSORS - SHARP IR RANGE FINDER tutorial. It is out somewhere.
Paulo Brasko
-
http://www.societyofrobots.com/sensors_sharpirrange.shtml
-
The robot in the video looks like Mike Dvorsky's "WhoseLost" that took second place at last year's CIRC contest.
http://circ.mtco.com/competitions/2007/linemaze.htm
Mike has an excellent writeup on his algorithm on CIRC's Yahoo groups.
http://f1.grp.yahoofs.com/v1/cFV6R-zyypYUB4O7FfsJLGj9a0r7e_hKOUJAM8THtryJ0Pj-JVBfHKnmh7ODokJgjshY8ucis6PKxxL7DrXD5Jr-ygYamhOw_rBhYVRx/Line%20Maze%202.pdf
Additional questions could be posted to the CIRC's Yahoo groups for Mike.
Rick Brooks
-
The line maze is exactly what i'm looking for...
By the way, the second link is dead
Can I have the address of the yahoo group?
-
By the way, the second link is dead
Can I have the address of the yahoo group?
I got it..
http://tech.groups.yahoo.com/group/circgroup/
Thanks :)