or wall. This is an example of an event, as the Roomba is programmed to detect an obstacle and then turn around. This event is called a collision detection event, and it helps the Roomba to navigate around a room without getting stuck. Similarly, many cars are now equipped with collision detection events that can detect when the car is about to hit something and then automatically apply the brakes to prevent a collision.