AURobotServers
4
|
#include <ucamdevieee1394.h>
Public Member Functions | |
UCamDevIeee1394 () | |
~UCamDevIeee1394 () | |
Public Member Functions inherited from UCamDevBase | |
virtual void | callGotNewDataWithObject () |
virtual void | closeDevice () |
virtual void | createVars () |
virtual bool | deviceExist () |
virtual int | getBrightness (bool) |
char * | getCameraName () |
int | getCamFd () |
virtual int | getColour (bool) |
virtual int | getCompPref (bool) |
virtual int | getContour (bool) |
virtual int | getContrast (bool) |
virtual int | getDataChannel () |
virtual const char * | getDataChannelName () |
int | getDeviceNumber () |
virtual bool | getExternalTrigger (bool *supported) |
virtual int | getFrameRate () |
virtual int | getGain (bool, bool *, bool *) |
virtual int | getGamma (bool) |
unsigned int | getHeight () |
unsigned long | getImageNumber () |
virtual bool | getImageSnapshot (UImage *image) |
bool | getLockedNewImage (UImage **raw) |
char * | getName () |
double | getPixelSize () |
virtual int | getShutter (bool, bool *, bool *) |
int | getWBModeFromString (const char *mode) |
virtual bool | getWhiteBalance (bool, int *, int *, int *) |
unsigned int | getWidth () |
void | gotNewImage (UImage *rgb) |
void | imageSizeChanged (double iResFactor) |
void | imgUpdated () |
bool | isCameraOpen () |
bool | isLog () |
bool | isReplay () |
virtual bool | isThisA (USupportedCamTypes thisType) |
virtual bool | makeTriggerPulse () |
bool | needNewPushData () |
virtual bool | openDevice () |
virtual bool | openDeviceDefault () |
virtual bool | setBrightness (int brightness) |
void | setCam (UCamBase *camRef) |
virtual bool | setColour (int colour) |
virtual bool | setCompPref (int value) |
virtual bool | setContour (int value=0x1000) |
virtual bool | setContrast (int contrast) |
virtual bool | setDataChannel (int) |
virtual bool | setDevice (const int width, const int height, const int framesPerSec) |
void | setDeviceNumber (int deviceNum) |
virtual bool | setExternalTrigger (bool, bool *supported) |
virtual bool | setGain (int) |
virtual bool | setGamma (int gamma) |
void | setImageNumber (unsigned long serial) |
void | setInitialized (bool value) |
void | setLog (bool value) |
virtual void | setPushBuffer (UImage *) |
void | setReplay (bool value) |
virtual bool | setShutter (int) |
void | setTypeName (const char *newName) |
void | setVarPool (UVarPool *vpd) |
virtual bool | setVideoCap (int, int, int, int) |
virtual bool | setWhiteBalance (int, int, int) |
UCamDevBase () | |
virtual | ~UCamDevBase () |
Public Member Functions inherited from ULock | |
bool | lock () |
void | lockInit () |
void | post () |
bool | tryLock () |
bool | tryWait () |
ULock () | |
void | unlock () |
bool | wait () |
~ULock () | |
Additional Inherited Members | |
Public Types inherited from UCamDevBase | |
enum | camTypes { CAM_DEV_REPLAY, CAM_DEV_PWC, CAM_DEV_IEEE1394, CAM_DEV_GRAPPER, CAM_DEV_GIGE } |
typedef enum UCamDevBase::camTypes | USupportedCamTypes |
Static Public Member Functions inherited from UCamDevBase | |
static char * | getWBModeAsString (int mode, char *strBuff) |
Static Public Attributes inherited from UCamDevBase | |
static const int | MAX_CAM_DEV_NAME_LENGTH = 100 |
static const int | MAX_IMAGE_WIDTH = 640 |
Protected Attributes inherited from UCamDevBase | |
UCamBase * | cam |
int | cam_fd |
bool | cameraOpen |
char | camName [MAX_CAM_DEV_NAME_LENGTH] |
USupportedCamTypes | camType |
int | devNum |
file descriptor for camera device More... | |
int | frameHeight |
int | frameRate |
int | frameWidth |
unsigned long | imageNumber |
int | imCnt |
UImage * | imgBuff [RAW_IMAGEBUFFER_MAX_CNT] |
int | imgBuffNext |
bool | initialized |
UVariable * | varCamName |
camera name from camera More... | |
UVariable * | varLog |
Variable for log flag. More... | |
UVariable * | varReplay |
Variable for replay. More... | |
UVarPool * | vars |
int | vbrightness |
int | vcolour |
int | vcompressionPref |
int | vcontour |
int | vcontrast |
int | vgain |
int | vgamma |
int | vshutter |
Static Protected Attributes inherited from UCamDevBase | |
static const int | RAW_IMAGEBUFFER_MAX_CNT = 5 |
Camera device type that controls one IEEE1394 DCI camera Device number is from 10 to 19 - defined in URob4/UCamPool
@author Christian Andersen <jca@oersted.dtu.dk>
UCamDevIeee1394::UCamDevIeee1394 | ( | ) |
Constructor
References UCamDevBase::CAM_DEV_IEEE1394, and UCamDevBase::camType.
UCamDevIeee1394::~UCamDevIeee1394 | ( | ) |
Constructor
References UVarPool::addVar(), UImage::cam, UImage::camDevice, UCamDevBase::cameraOpen, UCamDevBase::camName, UCamDevBase::closeDevice(), UCamDevBase::createVars(), UCamDevBase::deviceExist(), UCamDevBase::devNum, UCamDevBase::frameHeight, UCamDevBase::frameRate, UCamDevBase::frameWidth, UImage::getBufferSize(), UCamDevBase::getCameraName(), UImage::getData(), UCamDevBase::getDeviceNumber(), UCamDevBase::getFrameRate(), UCamDevBase::getGain(), UCamDevBase::getImageSnapshot(), UTime::getMicrosec(), UCamDevBase::getName(), UTime::getSec(), UCamDevBase::getShutter(), UTime::getTimePassed(), UImage::getWidth(), UCamDevBase::gotNewImage(), UCamDevBase::imageNumber, UImage::imageNumber, UCamDevBase::imageSizeChanged(), img, UCamDevBase::imgBuff, UImage::imgTime, UCamDevBase::initialized, UCamDevBase::isCameraOpen(), ULock::lock(), UCamDevBase::MAX_CAM_DEV_NAME_LENGTH, UCamDevBase::MAX_IMAGE_WIDTH, min, UCamDevBase::needNewPushData(), UTime::now(), UCamDevBase::openDevice(), UCamDevBase::openDeviceDefault(), PIX_PLANES_BGGR, PIX_PLANES_BW, PIX_PLANES_GBRG, PIX_PLANES_GRBG, PIX_PLANES_RGGB, ULock::post(), UImage::setColorType(), UCamDevBase::setDevice(), UCamDevBase::setGain(), UCamDevBase::setPushBuffer(), UCamDevBase::setShutter(), UImage::setSize(), UTime::setTimeU(), UImage::toHalf(), ULock::unlock(), UImage::updated(), UImage::valid, UCamDevBase::vars, UCamDevBase::vbrightness, UCamDevBase::vcolour, UCamDevBase::vcontour, UCamDevBase::vgamma, UCamDevBase::vshutter, and Wait().