Distance Transform

A toy demo showing how the Distance Transform works for path planning.

Download

DistanceTransformDemo.zip

Installation

To compile on Linux type make after unpackaging or optionally load the project in Codeblocks and compile from there. You will need the following libraries to compile:

  • Freelgut
  • OpenCV

Usage

  • LEFT click – set start point
  • RIGHT click – set goal point
  • SPACEBAR – find shortest path
  • s – find safer path
  • l – linearise the path
  • 1,2,3 – toggle between normal view, Distance Transform map, and Potential Field map
  • ESC – quit

Screenshot

Leave a Reply

Your email address will not be published. Required fields are marked *