system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How exactly does Google's self-driving car know to stop for red lights, stop signs, other cars etc?

I have so many questions as to the technology behind this car. What if it runs out of petrol/battery? How does it know where to go?
gpt
Well, it knows to stop for lights and other cars because it has a sophisticated system of sensors that look for those things and then a software system that tells it to stop when it see them. The cars don't have the ability to refuel or plug themselves in. They do know, however, if their current path will take them beyond range of their gas tank and will alert the passenger.