Algorithm 1

From Control Systems Technology Group
Revision as of 16:58, 2 April 2018 by S165691 (talk | contribs)
Jump to navigation Jump to search

The behavior that the window cleaning robot would have when using algorithm 1 can be divided

in the following rough steps:

    # This process is repeated until the window is cleaned entirely.
  • The window cleaning robot is placed in a random position on the window, facing in a random direction.
  • Due to gravity sensors, the robot knows where to find the upper side of the window, so it moves upwards till its force sensors detect that the upper edge is touched.
  • The robot turns and moves to the upper left corner until it detects the left edge of the window with its force sensors. During this movement, the robot is already cleaning. When it reaches the upper left corner, it turns to face to the right.
  • The robot moves over a horizontal path and inspects and cleans this path. When the dirt detection sensors notice that a dirty spot remains, a reciprocating motion is initiated. This reciprocating motion is continued until the dirty spot is entirely clean or does not become any cleaner.
  • The window cleaning robot moves on to the next dirty spot and the behavior above is repeated.
  • When the upper right corner of the window is detected with the force sensors (Section 3.5.2), the robot turns and wipes the first row another time to make sure no stripes will remain on the window surface. In this back-going stroke, the cleaning mechanism is not used since the stroke is already clean and does only require the motion of the squeegee.
  • When the first row is entirely clean, the robot makes a certain movement to go to the second row.
  • The window cleaning robot turns and starts with the next horizontal path. The steps 4-7 are executed again. Note that the turning movement in the second horizontal path will take less time because the upper edge of the window is not an obstacle anymore.
  • This process is repeated until the window is cleaned entirely.