Algorithm selection for controlling a model vehicle
Please, do not use ANN, because what you are looking for actually is SLAM method. It is a set of algorithms working together to localize your ship in an environment and mapping it simultaneously.  

You can find an introduction on the Wikipedia:

https://en.wikipedia.org/wiki/Simultaneous_localization_and_mapping

This is what autonomous cars are using.