Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ROS Python Save Snapshot from Camera

Hi All, I am developing a module in Python to control a Baxter Robot from Rethink Robotics in solving a rubik's cube.

The problem I am having is that there doesn't seem to be any documentation on how to save a snapshot from one of the camera's to a Jpeg file (or any format usable by OpenCV). I currently have a module which I wish to call after saving a snapshot from Baxter's head camera into the working directory, is there a way to automate the capturing of a snapshot in python? I am aware that Imageview lets you save snapshots by right-clicking on the camera feed it opens but I am after code which I can put into a function and call automatically as required.

Any help would be greatly appreciated.

Cheers, J