Docsity

Path Planning Project Report - Artificial Intelligence | 22C 145, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
Path-Planning∗
22c:145 Project
Fall 2001
Consider the problem of finding the shortest path between two points on
a plane that has polygonal obstacles, as shown in Figure 4.17 of our text.
This is an idealization of the problem a robot has to solve to navigate its
way around a crowded environment.
Suppose the state space consists of a m×ngrid of points in the plane.
For simplicity—but without loss of generality if you admit polygons with
only one vertex—assume that the robot always starts on a polygon vertex in
the grid and its goal is to reach some other polygon vertex.
It is not difficult to show that the shortest path from one polygon vertex
to any other polygon vertex in the grid must consist of straight-line seg-
ments joining a number of polygon vertices. Keeping this in kind, define the
necessary functions to implement this problem as a search problem. Your
functions should include a successor function that takes a vertex vas input
and returns the set of vertices that can be reached from vin a straight line,
without intersecting any other vertices or internal points of a polygon in the
grid.
In this problem a solution is a (possibly non-straight line) between an
initial and a final point, described by the sequence of its segments. The cost
of a solution is its length.
Part 1
Implement the search algorithm using any among the search strategy A*,
IDA* and SMA* described in the course text. Except for the data structures
∗Adapted from [RN95].
1
pf3

Partial preview of the text

Download Path Planning Project Report - Artificial Intelligence | 22C 145 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Path-Planning

22c:145 Project

Fall 2001

Consider the problem of finding the shortest path between two points on a plane that has polygonal obstacles, as shown in Figure 4.17 of our text. This is an idealization of the problem a robot has to solve to navigate its way around a crowded environment. Suppose the state space consists of a m × n grid of points in the plane. For simplicity—but without loss of generality if you admit polygons with only one vertex—assume that the robot always starts on a polygon vertex in the grid and its goal is to reach some other polygon vertex. It is not difficult to show that the shortest path from one polygon vertex to any other polygon vertex in the grid must consist of straight-line seg- ments joining a number of polygon vertices. Keeping this in kind, define the necessary functions to implement this problem as a search problem. Your functions should include a successor function that takes a vertex v as input and returns the set of vertices that can be reached from v in a straight line, without intersecting any other vertices or internal points of a polygon in the grid. In this problem a solution is a (possibly non-straight line) between an initial and a final point, described by the sequence of its segments. The cost of a solution is its length.

Part 1

Implement the search algorithm using any among the search strategy A, IDA and SMA* described in the course text. Except for the data structures ∗Adapted from [RN95].

that implement a state, the heuristic function and the procedures that ma- nipulate states, your implementation should be independent from the specific domain. You can use any admissible heuristics you deem appropriate for the prob- lem, but you should prove in your report that the heuristics is in fact admis- sible. Use your implementation to run a number of test cases (no less than 10) of different complexity in terms of number, shape and size of the polygons, and difficulty of the solution. Make sure your test cases include non-convex polygons as well. For each test case report the same kind of statistics required in the 8- puzzle project.

Part 2

Now implement the search algorithm using k-look-ahead hill-climbing. This is a variation of hill-climbing that generates the set D of all the descendants of the current node that are at depth dc + k in the search tree, where dc is the depth of the current node. Then it chooses as the next node the immediate successor of the current node that is the ancestor of the best node in D^1. Note that standard hill-climbing is the same as 1-look-ahead hill-climbing. Run this implementation on the same test cases you selected for Part 1 and collect the same sort of statistics for a number of values of the parameter k. For each test case, compare the solution you obtained in Part 1 with the ones in Part 2 in terms of computation and of execution cost of the solutions.

Hints

To implement the various domain specific functions in this problem, it is useful to make the following observations.

  • A point B is unreachable from a point A iff there a polygon on the grid one of whose sides intersects with an internal point of the segment AB without coinciding with AB. (^1) Provided, of course, that the best node in D is better than the current node.