Planning · University · about 40 min
Throwing darts at the free space instead of enumerating it, and what probabilistic completeness does and does not promise.
[1 mark]A robot on the 200 by 200 cm mat plans over (x, y, heading) with 10 cm cells and 10 degree heading steps. How many cells does the grid have?
[1 mark]There is no route from the start to the goal. What does a plain RRT do?
[1 mark]Why does an RRT grow outwards into unexplored space without being told to?
[1 mark]What does this program print?
def free(x, y):
return not (60.0 <= x <= 80.0 and 0.0 <= y <= 100.0)
a, b = (50.0, 50.0), (90.0, 50.0)
print(free(*a), free(*b))
n = 20
points = [(a[0] + (b[0] - a[0]) * k / n, a[1] + (b[1] - a[1]) * k / n) for k in range(n + 1)]
print(all(free(x, y) for x, y in points))
[1 mark]The goal bias is set so the RRT samples the goal most of the time. What happens?
[1 mark]Which of these statements are true?
Tick every answer that is true.
Build an RRT from (30, 30) to (170, 170) through the same two walls, inflated by 10 cm. Print nodes:, how many nodes the tree had when it reached the goal, and path:, the length in centimetres of the route through the tree.
from bugbot import * import math import random connect() INFLATE = 10.0 STEP = 12.0 BIAS = 0.1 START = (30.0, 30.0) GOAL = (170.0, 170.0) WALLS = [(70.0, 0.0, 8.0, 115.0), (125.0, 85.0, 8.0, 115.0)]
Plan your program here, then type it in and press Run.