Page 196 - Hacking Roomba
P. 196

Chapter 9 — Creating Art with Roomba               177



                             If you want to ensure the Roomba stays within the canvas, make a frame out of lengths of cheap
                             2 × 4 lumber. You could nail or screw the 2 × 4s together or even just lay the loose 2 × 4s at the
                             canvas edge. If you modify your code to watch for the bump sensors you could even have it
                             bump of the frame in artistically pleasing ways.

                             To make Roomba more stable and less likely to smudge the line it’s drawing, remove the Roomba
                             brushes and brush guard.












































                             FIGURE 9-9: Results of drawing the spot algorithm and an aggravated robot
   191   192   193   194   195   196   197   198   199   200   201