Karel the Robot
Karel (pronounced Carl) is a robot living in a simple world
who can perform simply stated, interesting tasks.
His world is a grid-work of streets and avenues
that Karel traverses, containing special objects that Karel
can sense and manipulate.
Wall sections can be used in Karel's world to represent, for example,
a maze that Karel must navigate or a stair case that Karel must climb.
Beepers can be picked up, moved, and put down by Karel; Karel can be
directed to, for example, pick up a row of beepers or lay down a
pattern using beepers.
- is bounded on the sides by impenetrable boundary walls.
- contains horizontal streets (running east-west)
and vertical avenues (running north-south).
- can contain interior wall sections that are positioned
between adjacent street corners and prevent Karel from
moving directly between these street corners.
- can contain beepers, small plastic cones emitting a quiet
beeping noise that Karel can sense, on any street corner.
One (example) arrangement of Karel's world is given below:
three video cameras focused to detect walls immediately to
the left, right, and straight ahead.
a microphone to hear if there are any beepers on the
corner that Karel is on.
an internal compass to determine Karel's direction,
either North, South, East, or West.
Karel carries a soundproof beeper-bag and has
a mechanical arm to pick up beepers and place them in
the bag or remove them from the bag and place them on
the street corner. Karel can use this mechanical arm
to detect if the bag contains beepers.
- Karel's jobs can be very different. They generally consist
of a task we want Karel to do,
and a situation that describes
exactly the current state of Karel's world (where are walls
and beepers, where is Karel, how many beepers are in his beeper-bag,
etc.) Here is an example:
||Every morning Karel is awakened in bed when the newspaper -
represented by a beeper - is thrown on the front porch of the house.
Program Karel to retrieve the paper and bring it back to bed. The
newspaper is always thrown to the same spot, and Karel's world,
including his bed, is as pictured.
Return to Karel home page
(Credits and Copyrights)