Using a Khepera with a Camera
To use a Khepera robot with a camera you need a serial/video connection module. This connection module provides a power supply for both the robot and the camera, it makes a standard serial link available, and it does the necessary signal processing to make a standard video signal available. The connection module is a small white box with three colored lights. The yellow light is a power indicator, the green light indicates activity on the serial link for data going from the robot to the computer, and the red light indicates activity on the serial link for data going from the computer to the robot.
All of the following connections must be made to operate a Khepera with a camera:
Power cable, from the wall socket to the connection module.
Video cable, from the computer to the connection module.
Serial cable, from the computer to the connection module.
Khepera cable, from the robot to the connection module.
You should disconnect the power cable when you are done using the Khepera. All of the other cables should remain in place. If all of the connections are properly in place, only the yellow light on the connection module should be illuminated. To check that the connection between the robot and the connection module is working, press the reset button on the back of the Khepera robot several times and watch for the for the green light on the connection module to flash. There is typically a several second delay between the button press and the flash.
After testing (below) you are ready to try connecting to the Khepera from Pyro. From Pyro, load the robot Khepera.py. Then try moving the robot through the Pyro menu. If you are able to do this successfully, then you are ready to load a brain.
Testing the Camera
To be sure that the camera is working you can use the program xawtv. First create a file called .xawtv in your home directory containing the following three lines.
[default] norm = ntsc input = Composite1
Then execute the xawtv -device /dev/video0 program. A window should pop up showing you the live video stream from the khepera.