For a personal learning project I'm making a simple neural network to control a simulated car trough a simple maze.
To provide the network with inputs to work with, I need virtual sensors around the car to indicate how close I am to any obstacles.
How would I go about this? I've seen examples where there are lines pertruding out of the vehicle that can sense how far they overlap with obstacles.
This means that for example if the front sensor line is 40% inside a wall, it will kick back the value 0.40 to the network so it knows how close the obstacle is to the front of the car. The same process would be repeated for the left, right and back sensors.
I really hope I explained myself well, I could post some pictures but I know you guys don't like links from strangers.
Any insight would be appreciated, thanks.