AURobotServers
4
|
#include <ucambase.h>
Public Member Functions | |
virtual void | createVars () |
const char * | getCamName () |
UCamDevBase * | getDev () |
int | getDevNum () |
virtual void | gotNewImage (UImage *) |
virtual void | imageSizeChanged (double) |
virtual void | imgUpdated () |
virtual bool | needNewPushData () |
void | setTypeName (const char *newName) |
void | setVarPool (UVarPool *vpd) |
UCamBase (UCamDevBase *device) | |
virtual | ~UCamBase () |
Protected Attributes | |
UCamDevBase * | dev |
UVarPool * | vars |
This class holds the camera device pointer and possibly related cameras that are to be synchronized with this camera.
@author Christian Andersen <jca@oersted.dtu.dk>
UCamBase::UCamBase | ( | UCamDevBase * | device | ) |
Constructor - and set the device driver
References dev, device, and UCamDevBase::setCam().
|
virtual |
Destructor
|
inlinevirtual |
Create locally maintained variables - if any
Reimplemented in UCamMounted, UCamRad, and UCamPush.
References setTypeName().
Referenced by UCamRad::createVars(), and setVarPool().
|
inline |
Set camera type name
References dev, and UCamDevBase::getCameraName().
|
inline |
Get pointer to camera device
References dev.
Referenced by UFuncCog::centerOfGravity(), UFuncFocus::doFocus(), UCalibrate::findGmk(), UCamPool::getCam(), UCamPool::getFirstCamDevice(), UFunctionCam::handleCamPushCommand(), UFunctionCam::handleCamSetCommand(), UFunctionCam::handleCamsGetCommand(), UFunctionCamGmk::handleGmkGetCommand(), UFunctionCamPath::handlePathGetCommand(), UImageLog::logImage(), UCamPool::makeDevice(), UCamPush::print(), UCamRad::removeRadialError(), UFuncKinect::run(), UComCamSml::setCamDevice(), UComCamSml::setFromCam(), UCamPool::setResource(), setVarPool(), testVideo3(), UCamRad::updateLensParams(), and UCamPool::~UCamPool().
|
inline |
Get device number (as known by cam pool) for camera
References dev, and UCamDevBase::getDeviceNumber().
Referenced by UFunctionCamBase::getImage(), and UFuncPiCam::run().
|
inlinevirtual |
Got this new image.
NB! This function is called by the image read thread and should not do anything but copy the image to another buffer as needed, and no other major processing.
Reimplemented in UCamPush.
Referenced by UCamDevBase::gotNewImage().
|
inlinevirtual |
Set the parameters derived from resolution, i.e. conversion matrix, radial error valeues etc. but at this level just the resolution factor.
Reimplemented in UCamRad.
Referenced by UCamDevBase::imageSizeChanged().
|
inlinevirtual |
Image is updated now, note this in client handler
Reimplemented in UCamPush.
Referenced by UCamDevBase::imgUpdated().
|
inlinevirtual |
Request to test push commands for need of new data. If new data is needed then 'gotNewImage()' should be called.
Reimplemented in UCamPush.
Referenced by UCamDevBase::needNewPushData().
void UCamBase::setTypeName | ( | const char * | newName | ) |
Set camera type name
References dev, and UCamDevBase::setTypeName().
Referenced by createVars(), UFuncPiCam::run(), and UFuncKinect::run().
|
inline |
Set pointer to established var-pool structure for locally maintained variables
References createVars(), getDev(), UCamDevBase::setVarPool(), and vars.
Referenced by UCamPool::findDevices(), and UCamPool::makeDevice().
|
protected |
The device handler pointer
Referenced by getCamName(), getDev(), getDevNum(), UCamRad::getImageSnapshot(), UCamMounted::getMtoPix(), UCamMounted::logImage(), UCamPanTiltDevice::pantiltSetPosition(), UCamPanTiltDevice::pantiltToHomePosition(), UCamPanTiltDevice::pantiltUpdatePosition(), UCamPush::print(), UCamPanTiltDevice::protPantiltGetPosition(), UCamPanTiltDevice::protPantiltGetRange(), UCamPanTiltDevice::protPantiltReset(), UCamRad::saveRadialCorrectionMatrix(), UCamRad::setCameraParameters(), setTypeName(), and UCamBase().
|
protected |
Maximum number of related cameras to this device - mainly for stereo processing Related devices Number of available related cams Var pool structure for the globally available variables for this camera - i.e. position focallength etc.
Referenced by UCamPush::createVars(), UCamRad::createVars(), UCamMounted::createVars(), and setVarPool().