takePicture

This function gives you access to NAO's camera for taking pictures.

When called, 3 successive VGA pictures are shot (so you can choose the best one) and the jpeg files are placed in the user data section on the robot (home/nao/naoqi/share/naoqi/vision/ directory). To get them on your PC, you can use ssh or use the FTP browser in Choregraphe. Refer to Getting Started documentation for more detail.

Note:

A button is available in the Telepathe GUI for taking pictures by calling this function.

In addition, if you need to shorten the delay between calling the function and grabbing the first image, you can call the halfPress function. In a digital camera, this will set the autofocus. Here, it will turn on the frame grabber if it was off and set it in VGA mode if the resolution was lower. Calling again halfPress function or taking a picture will return to the previous mode.





Copyright © 2010 Aldebaran-Robotics - All rights reserved