Goal - Take pictures with the robot camera.
Typical usage - You want to take pictures of what Pepper is seeing.
How it works¶
Run the TakePicture action when you want to capture an image.
TakePicture action returns a
getTime() method of the returned
to get the timestamp associated with the image. See Timestamps.
To retrieve the data of an image captured with a
the image data needs to be remotely copied from the robot head to the tablet.
Copying remote data is an expensive operation, and it might take some time.
That is why the
run() method does not directly return a copy of the data,
but returns instead an object that acts as a proxy: this lets you control when
you want to make the copy.
getImage() method of the returned
to get an
EncodedImageHandle object; and use its
getValue() method to
effectively copy the image data.