The Internet of Things is a new concept aimed to connect and control the things over the Internet. With a powerful prototyping board such as Raspberry Pi 2, you can control your robot wherever you are using a computer or a smartphone.
Your work to connect and control a Raspberry Pi 2 robot via IoT can be easier using the WebIOPi framework. The WebIOPi framework is developed to control, debug and use the GPIO pins of Pi from an application or a web browser.
As you can see in the video, with a simple application on a smartphone, you can control the robot movements and see in real-time images captured by a camera attached to the robot.