|
Fawkes API
Fawkes Development Version
|
Video4Linux 2 camera with Nao-specific extensions. More...
#include <>>

Public Member Functions | |
| NaoCamera (const CameraArgumentParser *cap) | |
| Constructor. | |
| virtual unsigned char | source () |
| Return which cam is currently being used. | |
| virtual void | set_source (unsigned char source) |
| Switch currently used camera. | |
| virtual bool | auto_exposure () |
| Return whether auto exposure is enabled. | |
| virtual void | set_auto_exposure (bool enabled) |
| Enable/disable auto exposure. | |
Public Member Functions inherited from firevision::V4L2Camera | |
| V4L2Camera (const char *device_name="/dev/video0") | |
| Constructor. | |
| V4L2Camera (const CameraArgumentParser *cap) | |
| Constructor. | |
| virtual | ~V4L2Camera () |
| Destructor. | |
| virtual void | open () |
| Open the camera. | |
| virtual void | start () |
| Start image transfer from the camera. | |
| virtual void | stop () |
| Stop image transfer from the camera. | |
| virtual void | close () |
| Close camera. | |
| virtual void | flush () |
| Flush image queue. | |
| virtual void | capture () |
| Capture an image. | |
| virtual void | print_info () |
| Print out camera information. | |
| virtual bool | ready () |
| Camera is ready for taking pictures. | |
| virtual unsigned char * | buffer () |
| Get access to current image buffer. | |
| virtual unsigned int | buffer_size () |
| Size of buffer. | |
| virtual void | dispose_buffer () |
| Dispose current buffer. | |
| virtual unsigned int | pixel_width () |
| Width of image in pixels. | |
| virtual unsigned int | pixel_height () |
| Height of image in pixels. | |
| virtual colorspace_t | colorspace () |
| Colorspace of returned image. | |
| virtual fawkes::Time * | capture_time () |
| Get the Time of the last successfully captured image. | |
| virtual void | set_image_number (unsigned int n) |
| Set image number to retrieve. | |
| virtual bool | auto_gain () |
| Return whether auto gain is enabled. | |
| virtual void | set_auto_gain (bool enabled) |
| Enable/disable auto gain. | |
| virtual bool | auto_white_balance () |
| Return whether auto white balance is enabled. | |
| virtual void | set_auto_white_balance (bool enabled) |
| Enable/disable auto white balance. | |
| virtual int | red_balance () |
| Get current red balance. | |
| virtual void | set_red_balance (int red_balance) |
| Set red balance. | |
| virtual int | blue_balance () |
| Get current blue balance. | |
| virtual void | set_blue_balance (int blue_balance) |
| Set blue balance. | |
| virtual int | u_balance () |
| Get current u balance. | |
| virtual void | set_u_balance (int u_balance) |
| Set u balance. | |
| virtual int | v_balance () |
| Get current v balance. | |
| virtual void | set_v_balance (int v_balance) |
| Set v balance. | |
| virtual unsigned int | brightness () |
| Get current brightness. | |
| virtual void | set_brightness (unsigned int brightness) |
| Set new brightness. | |
| virtual unsigned int | contrast () |
| Get current contrast. | |
| virtual void | set_contrast (unsigned int contrast) |
| Set new contrast. | |
| virtual unsigned int | saturation () |
| Get current saturation. | |
| virtual void | set_saturation (unsigned int saturation) |
| Set new saturation. | |
| virtual int | hue () |
| Get current hue. | |
| virtual void | set_hue (int hue) |
| Set new hue. | |
| virtual unsigned int | exposure () |
| Get current exposure. | |
| virtual void | set_exposure (unsigned int exposure) |
| Set new exposure. | |
| virtual unsigned int | gain () |
| Get current gain. | |
| virtual void | set_gain (unsigned int gain) |
| Set new gain. | |
| virtual const char * | format () |
| Get the image format the camera currently uses. | |
| virtual void | set_format (const char *format) |
| Set the image format the camera should use. | |
| virtual unsigned int | width () |
| Get the current width of the image. | |
| virtual unsigned int | height () |
| Get the current height of the image. | |
| virtual void | set_size (unsigned int width, unsigned int height) |
| Set the image size the camera should use. | |
| virtual bool | horiz_mirror () |
| Return whether the camera image is horizontally mirrored. | |
| virtual bool | vert_mirror () |
| Return whether the camera image is vertically mirrored. | |
| virtual void | set_horiz_mirror (bool enabled) |
| Set whether the camera should mirror images horizontally. | |
| virtual void | set_vert_mirror (bool enabled) |
| Set whether the camera should mirror images vertically. | |
| virtual unsigned int | fps () |
| Get the number of frames per second that have been requested from the camera. | |
| virtual void | set_fps (unsigned int fps) |
| Set the number of frames per second the camera tries to deliver. | |
| virtual unsigned int | lens_x_corr () |
| Get current lens x correction. | |
| virtual unsigned int | lens_y_corr () |
| Get current lens y correction. | |
| virtual void | set_lens_x_corr (unsigned int x_corr) |
| Set lens x correction. | |
| virtual void | set_lens_y_corr (unsigned int y_corr) |
| Set lens y correction. | |
Public Member Functions inherited from firevision::Camera | |
| virtual | ~Camera () |
| Virtual empty destructor. | |
Public Member Functions inherited from firevision::CameraControlColor | |
| virtual | ~CameraControlColor () |
| Empty virtual destructor. | |
| virtual void | set_auto_all (bool enabled) |
| Enable/disable all automatic settings. | |
Public Member Functions inherited from firevision::CameraControl | |
| virtual | ~CameraControl () |
| Virtual empty destructor. | |
Public Member Functions inherited from firevision::CameraControlImage | |
| virtual | ~CameraControlImage () |
| Empty virtual destructor. | |
| virtual void | size (unsigned int &width, unsigned int &height) |
| Get the current image size. | |
| virtual void | mirror (bool &horiz, bool &vert) |
| Get information about current camera image mirroring. | |
| virtual void | set_mirror (bool horiz, bool vert) |
| Set whether the camera should mirror images. | |
| virtual void | lens_corr (unsigned int &x_corr, unsigned int &y_corr) |
| Get current lens correction. | |
| virtual void | set_lens_corr (unsigned int x_corr, unsigned int y_corr) |
| Set lens correction. | |
Public Member Functions inherited from firevision::CameraControlSource | |
| virtual | ~CameraControlSource () |
| Empty virtual destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from firevision::V4L2Camera | |
| V4L2Camera (const char *device_name, int dev) | |
| Protected Constructor. | |
| virtual void | set_one_control (const char *ctrl, unsigned int id, int value) |
| Set one Camera control value. | |
| virtual int | get_one_control (const char *ctrl, unsigned int id) |
| Get one Camera control value. | |
Protected Attributes inherited from firevision::V4L2Camera | |
| char * | _device_name |
| Device name. | |
| firevision::NaoCamera::NaoCamera | ( | const CameraArgumentParser * | cap | ) |
Constructor.
Initialize camera with parameters from camera argument parser. Supported arguments (additionally to V4L2Camera arguments): *Required:
| cap | camera argument parser |
Definition at line 117 of file nao.cpp.
References firevision::V4L2Camera::_device_name, firevision::CameraArgumentParser::get(), and firevision::CameraArgumentParser::has().
|
virtual |
Return whether auto exposure is enabled.
Reimplemented from firevision::V4L2Camera.
Definition at line 282 of file nao.cpp.
References firevision::V4L2Camera::get_one_control().
|
virtual |
Enable/disable auto exposure.
| enabled | whether auto exposure should be enabled |
Reimplemented from firevision::V4L2Camera.
Definition at line 291 of file nao.cpp.
References firevision::V4L2Camera::set_one_control().
|
virtual |
Switch currently used camera.
Valid arguments: 1: brow-cam 2: mouth-cam
| source | ID of the camera to use |
Implements firevision::CameraControlSource.
Definition at line 264 of file nao.cpp.
References firevision::V4L2Camera::_device_name.
|
virtual |
Return which cam is currently being used.
1: brow-cam 2: mouth-cam
Implements firevision::CameraControlSource.