![](img/empty-box.jpg) |
Start with an empty box. It should be at least 11x11x6.5 inches. |
![](img/cut-flap.jpg) |
When using the box cutter, place another piece of cardboard
beneath the piece you're cutting, so you don't cut or scratch
the table. |
![](img/flaps-removed.jpg) |
Remove all four of the flaps. |
![](img/first-line.jpg) |
Use the width of the ruler to draw a line along the left and right edges of an interior wall. |
![](img/third-line.jpg) |
Align the ruler with the top and bottom edges of the box to make the third and fourth lines. |
![](img/lines-and-ruler.jpg) |
The four lines form the boundary of the window you should cut out. |
![](img/first-window.jpg) |
Use the box cutter to cut out the window. Remember to put
another piece of cardboard underneath to protect the table. |
![](img/second-window-lines.jpg) |
Draw four more lines on an adjacent wall for the second window. |
![](img/both-windows.jpg) |
Cut out the second window the same way you cut the first one. |
![](img/skylight-lines.jpg) |
Draw four more lines on the bottom of the box to create the skylight. |
![](img/windows-and-skylight.jpg) |
Cut out the skylight. |
![](img/packing-tape.jpg) |
Reinforce the skylight using packing tape to secure the
remnants of the flaps. (Regular adhesive tape will not
hold, so packing tape is required.) |
![](img/cut-template.jpg) |
Use a paper cutter or scissors to cut off the bottom edge of
the wall templates, following the dotted line. |
![](img/inside-walls.jpg) |
Use adhesive tape or a glue stick to affix the "back"
templates to the inside walls. "Wall 45 back" goes on the left,
and "Wall 39 back" goes on the right. The sheets should meet at
their common corner, and their bottom edges should be aligned
with the bottom edge of the box. |
![](img/first-door.jpg) |
Use the box cutters to cut out the first door, keeping another piece of cardboard
beneath the box to protect the table. |
![](img/second-door.jpg) |
Cut out the second door as well. |
![](img/finished-shack.jpg) |
Use a scissors to cut out the doorways from the "Wall 39
front" and "Wall 45 front" templates. Then use a glue stick or
adhesive tape to affix them to the outside walls of the box.
Wall 39 front goes on the left; Wall 45 front goes on the
right. |
![](img/decorated-shack.jpg) |
Decorate your shack according to taste. |
Walls serve as landmarks that allow Cozmo to accurately determine
his location on the world map. Since rooms are defined in world map
coordinates, having walls present ensures that rooms can be
accurately located even though the rooms themselves have no visible
markings.
|
Start a new program and go to the map layout view. (Press
the "down" direction on the D-Pad, or type Control+DownArrow on
the PC keyboard or Fn + DownArrow on the Mac). |
![](layout/s1.png) |
Drag Wall 39 from the palette onto the map, above the robot.
The yellow side is the front of the wall and should be facing
the robot. |
![](layout/s2.png) |
Drag Wall 45 from the palette onto the map. |
![](layout/s3.png) |
Use one of the rotation handles at either end to rotate Wall
45 by 90 degrees counter-clockwise so that the yellow side faces
right and the green side faces left. |
![](layout/s4.png) |
Click and drag on wall 45 until its bottom connector (red
dot) overlaps the right connector on wall 39. The connectors
should turn yellow and display concentric circles. If you
release the mouse at this point, the walls will snap together.
If either wall turns red, then the walls are in collision and
will not snap together when the left mouse button is released,
so move the mouse until you see only yellow, no red. |
![](layout/s5.png) |
When the walls are snapped together, they look like this. |
![](layout/s6.png) |
Drag two Wall A panels onto the layout and snap them in
place to complete the shack as shown. |
![](layout/s7.png) |
Drag a room from the palette into the shack. Use the red
resize dots to adjust the size and shape of the room. Right
click inside the room and change the room name to
"interior". |
![](layout/s8.png) |
Add two more rooms as shown. Name them "steps" and "side
porch". |
You can use the "visit" action to visit a room. The "visiting" predicate is
true whenever the robot's location falls within a room.
To visit each of the three rooms we defined above, use a state
machine with three pages. Here is the what the code should look
like.