Distance functions and their application to robot path planning in the presence of obstacles | Synapse