This page is located in archive. Go to the latest version of this course pages.

Task09 - Data collection path planning

Deadline 8. December 2018, 23:59 PST
Points 4 + 3
Label in BRUTE Task09
Files to submit archive with MGMPSolver.py
Resources Task09 resource package (Version 3)

Task09a - Data collection path planning - obstacle aware planning

Short theory - Graph based planning

In contrast to a classical path planning (from A to B), we need to estimate all distances between the given points in the multi-goal path planning problem. It can be done by existing algorithm:

  • From point A to point B
    • Breadth First Search (BFS)
    • Depth first search (DFS)
    • A* algorithm
  • From 1 point to N points
    • Dijkstra's algorithm
  • From N points to N points

Notice that algorithms from the first two groups have to be called multiple times to get the full distance matrix.

Installation of the prepared codes

Download prepared codes and configuration files. Then download and compile LKH solver (implementation of the Lin–Kernighan heuristic algorithm) as follows:

cd lkh
cd -

Now, you should be able to run Packman example.


The result should be similar to:

Pac-man scenario

This scenario is prepared with a working example which finds the shortest tour (TSP solution) based on the Euclidean distance. However, the obstacles in the environment are not considered and, therefore, the final trajectory collides with the walls, see the image above.

Our task is to replace the Euclidean distance by the shortest feasible trajectory in the maze. Since the original Pac-man can move only in 4 direction, we also utilizes the same 4 moves during the planning phase and discard all diagonal moves. In the prepared codes, a naive implementation is provided using A* from previous lectures. The A* algorithm needs to be called $\mathcal(n^2)$ times which is the main drawback of this approach.

Use 4 neighborhood for planning.

Tasks (4 points) - Task09a

  1. Implement the pre-prepared Floyd–Warshall algorithm for finding shortest paths between all places with “dots” (should be eaten by Packman) and store the values into distance matrix. Use Euclidean distance and prepared 4-neighborhood utilized in previous laboratories. (2 points)
  2. Solve TSP instance of the created distance matrix using existing LKH Solver.
  3. Create the final path from the found sequence by connecting corresponding shortest paths between visited dots.
  4. Extend this approach to solve open-loop problem from start (first goal) to end (last goal) which collect a subset of “dots”. (2 point)

Expected result in GIF (3.2 MB + 1.1 MB)

  • An example of a closed-loop path of 50 goals (left) and an open-loop path of 10 goals (right).

Task09b - Data collection path planning with remote sensing (TSPN) - decoupled approach

Neighborhoods in maze scenario

Use 8 neighborhood for planning.
  1. Decoupled approach (3 points)
    1. First, find the goal sequence by the ETSP. Then, find the final trajectory.
    2. First, find the goal sequence by the TSP utilizing the found shortest paths between centres of the given regions. Then, find the final trajectory as the shortest tour connecting the neighborhood samples in the given sequence.

  1. Sampling-based approach (BONUS - 5 points)
    1. Create samples in the goal neighborhoods and all shortest paths. Then, transform the problem to the ATSP by the Noon-Bean transformation

Noon-Bean transformation

courses/b4m36uir/hw/task09.txt · Last modified: 2018/12/06 23:14 by vanapet1