Shop OBEX P1 Docs P2 Docs Learn Events
Mental Map — Parallax Forums

Mental Map

Benbo231Benbo231 Posts: 26
edited 2009-04-23 18:35 in Robotics
ok, heres the case:
I am working on a robot to carry my books to class. i have an IR remote & reciever, a compass sensor too.

how would I go about making a cyber-map that lets it navigate the halls? it needs to check its location by seeing doorways, and have multiple destinations-the 4 or 5 different classes and my locker

i also have a PING))) sensor to make it stop before it hits a person

p.s. i m posting off of my Nintendo DSi

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When you're dating a pretty girl, an hour seems like a minute.

When you're sitting on an oven, a minute seems like an hour.
That's relativity.
-Albert Einstein

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-04-08 05:25
    Benbo231 said...
    how would I go about making a cyber-map that lets it navigate the halls? it needs to check its location by seeing doorways, and have multiple destinations-the 4 or 5 different classes and my locker

    First get a BS in Computer Engineering, then stack a PHD on top of that in Computer Science.

    But in all seriousness, it's a very difficult problem that you proposed, and one that doesn't have a viable solution at this time. You could make this easier on yourself if you make it remote controlled. A more difficult step up would be to have it follow you (via a IR beacon maybe). There was a gentleman here who had a golf caddie that followed him, but his design wouldn't work for you (more of an inspiration).
  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-08 05:26
    You need to accomplish several things:

    1) Measure approximately how far the robot moves. With the BoeBot, you can get a wheel encoder kit that counts the number of wheel slots that go by. You can do similar things with other robot designs

    2) Use the PING))) and the IR sensors to measure the approximate distance from the side of the robot to the closest wall. As the robot passes an open doorway, you should see a mostly infinite distance. You could either have PING))) and IR sensors on the sides and front of the robot or you can use something like the PING))) servo bracket. You could even mount the IR receiver / emitter on the PING))) bracket.

    3) Once you have these working properly, you can then couple the functions. As the robot moves forward, you'd use the distance measurements both to keep the robot from turning (the two wheels should move about the same amount) and to give you a distance measurement along the hallway. Every foot or so, you'd do a #2 operation to see if there's an open doorway there.

    4) A map would simply be a group of bytes in EEPROM for each hallway with one or several bytes holding some representation of what's "visible" at each point along the hallway. One byte might have bits for whether there's a doorway on either side or whether that spot is your locker or one of your classes. Where hallways come together, one or more bytes would have the address of the hallway array for the hallway you'd get to if you turned right or the address of the hallway array for the hallway you'd get to if you turned left. Maybe there'd be a bit to indicate that the hallway ends there.

    You'd develop the map by hand (more reliable) or by having the robot go down the hallway and record what it senses at each point in the hallway. If you develop the map yourself or hand correct a map recorded by the robot, the robot would use the hallway map in the future to navigate by comparing where it things it is with what it's finding along the way.
  • roadrunner3groadrunner3g Posts: 36
    edited 2009-04-20 09:20
    wheel encoders and a compass will be the best. but they will be limited to the memory you have left on the stamp chip. you my also thik about putting a laptop on the bot. with that you can get mapping software($$$) that can be used for robots or try www.roborealm.com(FREE) and add a camera and try out the many plugins thay have like path planning, movement, surface plot and many other plugins to navigate the vast jungle called school.
  • DgswanerDgswaner Posts: 795
    edited 2009-04-23 18:35
    I've been working on this for quite some time (I don't have my "BS in Computer Engineering or PHD" so I'm learning what I need to as I go)... and have put a lot of thought into it. I'm planning on the method Mike mentioned, creating a map by hand.

    Being that your in a school, the colors of walls, floors, lockers etc. are usually pretty diverse, and often different in various areas of your school. if you were to correspond the colors, with your map it could also be an indicator of your approx. location and also used for error correction. if your bot thinks it's in hall A, but the color of the floor is not right, something is wrong....recalculate position. if the colors were unique enough throughout your school you could almost navigate by color alone.

    if you build this, SLRM should have to call you DR. Benbo

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    DGSwaner

    "When in doubt, use C4" - Jamie Hyneman, Myth Buster
Sign In or Register to comment.