Moving the car with gestures
It would be interesting to be able to move the model car with hand gestures. In this section, we explore the possibilities of the same. An additional piece of hardware is needed to track hand movements or gestures and convert them to events that our code can use. We can use a Leap Motion (https://www.leapmotion.com/) controller for this purpose. The Leap Motion controller uses two monochromatic infrared cameras and three infrared LEDs. The device can track up to 10 fingers in real time, and transmit the data to a computer using USB.
The following image shows a Leap Motion controller in use:

How it works
We use the spherical radius of palm output parameter of the Leap Motion controller as the input which drives the model car. We do this by continuously monitoring the spherical radius value as seen by the controller. When the palm of your hand is stretched, that is, the spherical radius is large, the car starts moving, and when the...