1 / 24

Roomba!

Roomba!. Goal: whole-environment coverage . Roomba. Goal: whole-environment coverage with only local sensing …. Challenges: Can only sense it’s immediate surroundings – doesn’t see global picture Can't tell "vacuumed" from " unvacuumed " area – no memory. Roomba is a computer!.

oralia
Download Presentation

Roomba!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Roomba! Goal: whole-environment coverage

  2. Roomba Goal: whole-environment coverage with only local sensing… • Challenges: • Can only sense it’s immediate surroundings – doesn’t see global picture • Can't tell "vacuumed" from "unvacuumed" area – no memory

  3. Roomba is a computer! • We will use a special programming language that can instruct a computer similar to Roomba. • This programming language contains instructions with the aforementioned challenges in mind. • We call this special computer “Picobot.”

  4. Another language? Really? Picobot! Python General-purpose language you might see 50% by the end of the semester Picobot Special-purpose language you'll see 100% by the end Of the lecture The Picobotsimulator http://www.eg.bucknell.edu/~csci203/common-files/course-docs/picobot/picobot.html

  5. Picobot! walls Picobot area not covered (yet!) area already covered Goal: whole-environment coverage with only local sensing…

  6. Surroundings Picobot can only sense things directly to the N, E, W, and S N E W S For example, here the surroundings are NxWx N E W S Surroundings are always in NEWS order.

  7. What are these surroundings? Surroundings are always in NEWS order. N E W S NxWx

  8. Surroundings How many distinct surroundings are there? E.g., the one to the left would be described as “xxxx” or “all open.” N E W S

  9. Surroundings How many distinct surroundings are there? N E W S 24 == 16 possible … xxxx Nxxx xExx xxWx xxxS NExx NxWx NxxS xEWx xExS xxWS NEWx NExS NxWS xEWS NEWS (won’t happen)

  10. Rules When I’m blocked like this, I want to move N I should move N. Picobot moves according to a set of rules: surroundings direction xxWS N If I see xxWS, Then I move North Note: X in direction means don’t move.

  11. Wildcards Asterisks *are wild cards. They match walls or empty space: surroundings direction x*** N EWS may be wall or empty space N must be empty Wild stars? You should visit Alpha Centauri!

  12. Rules As long as north isn’t blocked, go north I should move N. Asterisks *are wild cards. They match walls or empty space: surroundings direction x*** N If I see North is free (no matter what other walls there are) Then I move North Note: X in direction means don’t move.

  13. Picobot checks all of its rules. If it finds a matching rule, that rule runs. Model Only one rule is allowed per state and surroundings. What will this set of rules do to Picobot? Not allowed surroundings direction surroundings direction -> N x*** -> X x*** x*** N -> N*** -> X How can we get back down the screen?

  14. State in picobot State describes what it will do. Picobot can have many rules (you decide!). "Moving East until I can't" All computers have state: The internal context of its computation. It represents what the computer is doing.

  15. State I am in state 0. My surroundings are xxWS. We use a number to represent the state of picobot. (i.e., picobot has memory to store a single number) Picobot always starts in state0. State and surroundings represent everything Picobot knows about the world

  16. Rules I am in state 0. My surroundings are xxWS. Aha! I should move N. I should enter state 0. Picobot moves according to a set of rules: state surroundings direction new state 0 xxWS N 0 If I'm in state 0 seeing xxWS, Then I move North, and "change" to state 0. Note: X in direction means don’t move.

  17. Picobot checks all of its rules. If it finds a matching rule, that rule runs. Model Only one rule is allowed per state and surroundings. What will Picobot do following this set of rules? Try it out! state surroundings direction new state 0 x*** N 0 -> 0 N*** -> X 0 How can we get back down the screen?

  18. Picobot checks all of its rules. If it finds a matching rule, that rule runs. Model Only one rule is allowed per state and surroundings. Ping-Pong Picobot Rules state surroundings direction new state 0 x*** N 0 -> 0 N*** -> X 1 -> 1 ***x S 1 -> 1 ***S X 0

  19. To do Write rules that will always cover this room. hw0, Problem #3 your rules should work regardless of Picobot's starting location

  20. To do Write rules that will always cover this room. hw0, Problem #4 your rules should work regardless of Picobot's starting location

  21. Tips for Picobot problems • Thinking about the CS questions before diving into the programming will help! • Imagine you’re blindfolded in the room. How would you solve it? • Solve it FIRST in English, then try to figure out the algorithm (don’t worry about code!). • For each sentence in English, that might be a different state. • If you find that rules conflict with each other, you might need a different state.

  22. CS ~ complexity science Information is intrinsic to every system… How can we benefit from this information? “construct with” Representing it … Transforming it … Measuring it efficiently? effectively? possibly? How might we measure these rooms' complexity?

  23. CS ~ complexity science Information is intrinsic to every system… How can we benefit from this information? “construct with” Representing it … Transforming it … Measuring it efficiently? effectively? possibly? How might we measure these rooms' complexity? How many states and rules are necessary ? How much information does each room contain ? our best:4 states, 8 rules our best:3 states, 6 rules

  24. CS ~ complexity science Information is intrinsic to every system… How can we benefit from this information? “construct with” Representing it … Transforming it … Measuring it efficiently? effectively? possibly? How might we measure these rooms' complexity? How many states and rules are necessary ? How much information does each room contain ? As a file:~20,000 bytes! As a file:~5000 bytes

More Related