I'm playing around with making a self driving car in a pc game. I was thinking of using reinforcement learning, and giving the car a location on the map to get to. The reward would be a function of the distance from the waypoint, and something very negative if the car crashes.
I can't really wrap my head around how to add the waypoint in to the system though. I'm using the camera input from the car as the input to the model, and I can calculate the reward based on its current position and the waypoint... but I don't always want the car to drive to the same spot... I want to give it a waypoint and have it drive there without crashing into anything.
How do I incorporate the waypoint and current position into the state / model?