Jump to content

Bug algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dr. Greywolf (talk | contribs) at 04:04, 4 June 2021 (Nothing. Just noted that this topic lacks a wiki page.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Bug algorithm is a class of algorithm that helps robots deal with motion planning[1].

Basic assumptions

  • The robot is treated as a point inside a 2D world.
  • The obstacles (if any) are unknown and nonconvex.
  • There are clearly defined starting point and goal.
  • The robot is able to detect obstacle boundary from a distance of known length.
  • The robot always knows the direction and how far (in terms of Euclidean distance) it is from the goal.

Algorithm

  1. The robot moves towards the goal until an obstacle is encountered.
  2. Follow a canonical direction (clockwise) until the robot reaches the location of initial encounter with the obstacle (in short, walking around the obstacle).
  3. The robot then follows the obstacle's boundary to reach the point on the boundary that is closest to the goal.
  4. Go back to step 1. Repeat this until the goal is reached.

See also

Reference