AURobotServers
4
|
#include <urescamifcam.h>
Public Member Functions | |
void | createBaseVar () |
virtual const char * | print (const char *preString, char *buff, int buffCnt) |
virtual const char * | snprint (const char *preString, char *buff, int buffCnt) |
UResCamIfCam () | |
virtual | ~UResCamIfCam () |
Public Member Functions inherited from UClientFuncCam | |
virtual const char * | commandList () |
UClientCams * | getCams () |
virtual void | handleNewData (USmlTag *tag, const char *ifname) |
virtual const char * | name () |
UClientFuncCam () | |
virtual | ~UClientFuncCam () |
Public Member Functions inherited from UResIfBase | |
UResIfBase () | |
~UResIfBase () | |
Public Member Functions inherited from UClientFuncBase | |
virtual void | changedNamespace (const char *newNamespace) |
virtual void | doTimeTick () |
int | getMsgCnt () |
bool | getVerbose () |
bool | sendMsg (UClientPortSml *cnn, const char *buff, int buffCnt) |
bool | sendMsg (UClientPortSml *cnn, const char *buff) |
void | setVerbose (bool value) |
UClientFuncBase () | |
virtual | ~UClientFuncBase () |
Public Member Functions inherited from UResVarPool | |
int | addMethod (const char *formalName, const char *paramTypes, const char *comment) |
int | addMethodV (const char *formalName, const char *paramTypes, const char *comment) |
UVarPool * | addStruct (const char *name, const char *comment, bool copy=false) |
UVariable * | addVar (const char *name, const double initialValue, const char *type, const char *comment) |
UVariable * | addVar (const char *name, const char *initialValue, const char *type, const char *comment) |
UVariable * | addVarA (const char *name, const char *initialValue, const char *type, const char *comment) |
bool | callGlobal (const char *name, const char *paramOrder, char **strings, const double *doubles, double *value, UDataBase **returnStruct, int *returnStructCnt) |
bool | callGlobalV (const char *name, const char *paramOrder, UVariable **params, UDataBase **returnStruct, int *returnStructCnt) |
Call a method from the root var pool scope It may be in the structure direct (no '.') or in any sub-structure that the 'name.subname' indicate. More... | |
bool | callLocal (const char *name, const char *paramOrder, char **strings, const double *doubles, double *value, UDataBase **returnStruct, int *returnStructCnt) |
bool | callVS (const char *function, const char *stringParam) |
int | callVSCD (const char *function, const char *strPar, UDataBase *data, int cooSys) |
void | createBaseVar () |
virtual bool | createVarSpace (const int varCnt, const int structCnt, const int methCnt, const char *note, bool copy=false) |
bool | getGlobalString (const char *name, const char **value) |
bool | getGlobalValue (const char *name, double *value) |
bool | getGlobalValue (const char *name, const char **value) |
bool | getGlobalValue (const char *name, bool *value) |
bool | getGlobalValue (const char *name, UTime *value) |
bool | getLocalValue (const char *name, double *value) |
get a value in this variable tree More... | |
bool | getLocalValue (const char *name, bool *value) |
bool | getLocalValue (const char *name, UTime *value) |
double | getLocalValue (int idx) |
UPosition | getLocalValue3D (int idx) |
UPosRot | getLocalValue6D (int idx) |
bool | getLocalValueBool (int idx) |
int | getLocalValueInt (int idx) |
UTime | getLocalValueTime (int idx) |
const char * | getLogFileName () |
const char * | getVarDescription (int idx) |
UVarCalc * | getVarPool () |
virtual bool | gotAllResources (char *missingThese, int missingTheseCnt) |
bool | isLogFileOpen () |
bool | isLogFileOpen (const char *structName) |
bool | isVarPoolUpdated (int lastCnt, int *newCnt) |
void | logFileClose () |
bool | logFileOpen () |
void | logFileStart (const char *structName, bool open) |
virtual bool | methodCall (const char *name, const char *paramOrder, char **strings, const double *doubles, double *value, UDataBase **returnStruct=NULL, int *returnStructCnt=NULL) |
bool | setGlobalVar (const char *name, const double value, bool mayAdd) |
Assigns a value to a variable. The variable may be a part of a structure. More... | |
bool | setLocalVar (int idx, double value, const int element) |
bool | setLocalVar (const char *name, const double value, bool mayAdd) |
Assigns a value to a variable. The variable may be a part of a structure. More... | |
bool | setLocalVar3D (int idx, UPosition *value) |
bool | setLocalVar6D (int idx, UPosRot *value) |
bool | setLocalVarAdd (int idx, double value, const int element) |
bool | setLocalVarPose (int idx, UPose *value) |
virtual bool | setResource (UResBase *resource, bool remove) |
void | setVarPool (UVarCalc *sharedVarPool) |
int | updateQTvars (int structIdx) |
UResVarPool () | |
virtual | ~UResVarPool () |
Public Member Functions inherited from UResBase | |
void | createReplayVar (UVarPool *pool) |
virtual void | createResources () |
UCmdExe * | getCorePointer () |
char * | getLogFileName (char *fn, const int fnCnt) |
int | getResFuncIdx () |
const char * | getResID () |
int | getResVersion () |
bool | isA (const char *idStr) |
bool | isAlsoA (const char *id) |
virtual void | print (const char *preString) |
virtual void | saveSettings () |
void | setCorePointer (UCmdExe *serverCore) |
void | setResFuncIdx (int idx) |
virtual void | setResID (const char *id, const int version) |
virtual void | stop (bool) |
virtual void | updateReplayStatus () |
UResBase () | |
virtual | ~UResBase () |
Public Member Functions inherited from UReplay | |
void | addChild (UReplay *child) |
virtual bool | decodeReplayLine (char *) |
char * | getLogFileName (char *fn, const int fnCnt) |
char * | getReplayFileName (char *fn, const int fnCnt) |
int | getReplayLogLine () |
bool | isReplay () |
bool | isReplayFileOpen () |
void | removeChild (UReplay *child) |
virtual void | replayAdvanceTime (UTime untilTime) |
void | replaySetBaseFileName (const char *name, const char *preName="") |
void | replaySetFileName (const char *name) |
virtual bool | replayStep () |
int | replayStep (int steps) |
virtual bool | replayToTime (UTime untilTime) |
void | setParent (UReplay *parent) |
bool | setReplay (bool value) |
UReplay () | |
virtual | ~UReplay () |
Public Member Functions inherited from ULock | |
bool | lock () |
void | lockInit () |
void | post () |
bool | tryLock () |
bool | tryWait () |
ULock () | |
void | unlock () |
bool | wait () |
~ULock () | |
Public Member Functions inherited from UVarMethodImplement | |
virtual bool | methodCallV (const char *name, const char *paramOrder, UVariable *params[], UDataBase **returnStruct, int *returnStructCnt) |
virtual | ~UVarMethodImplement () |
Static Public Member Functions | |
static const char * | getResClassID () |
Static Public Member Functions inherited from UResVarPool | |
static const char * | getResClassID () |
Protected Member Functions | |
virtual void | gotNewData (int device) |
Protected Member Functions inherited from UClientFuncCam | |
bool | handleCamGet (USmlTag *tag, const char *ifname) |
Protected Member Functions inherited from UClientFuncBase | |
void | handleHelp (USmlTag *tag) |
void | printReply (USmlTagIn *tag, const char *preString) |
Protected Member Functions inherited from UResVarPool | |
void | setDescription (const char *note, bool copy=false) |
Protected Member Functions inherited from UResBase | |
UResBase * | getStaticResource (const char *resName, bool mayCreate, bool staticOnly=true) |
get a pointer to a static resource. More... | |
Additional Inherited Members | |
Public Attributes inherited from UClientFuncBase | |
ULock | decodeLock |
Public Attributes inherited from UReplay | |
bool | replayTimeAdvancePending |
UTime | replayTimeNow |
Static Protected Attributes inherited from UReplay | |
static const int | MAX_LOG_LINE_LENGTH = 10000 |
static const int | REPLAY_FILE_NAME_LENGTH = 264 |
max length of replay filename More... | |
A guidemark data structure holder for (especially) the camera client plugin. The data is extracted to a var-pool structure.
|
inline |
Constructor
References createBaseVar(), UResVarPool::createVarSpace(), getResClassID(), UResBase::getResVersion(), UResBase::resVersion, UResBase::setResID(), and ~UResCamIfCam().
|
virtual |
Destructor
Referenced by UResCamIfCam().
void UResCamIfCam::createBaseVar | ( | ) |
Create base variables in varPool for this interface type
References UVarPool::addVar(), UResVarPool::getVarPool(), varCallDisp, varCamDevNum, varUpdCnt, and varUpdTime.
Referenced by UResCamIfCam().
|
inlinestatic |
Fixed name of this resource type
References snprint().
Referenced by UFunctionCamData::setResource(), UNavPaint::setResource(), UNavView::setResource(), and UResCamIfCam().
|
protectedvirtual |
Is this resource missing any base ressources Set ressource as needed (probably not used by this resource) debug Called when a data set is received
Reimplemented from UClientFuncCam.
References UVariable::add(), UVarPool::addStructLocal(), UVarPool::addVar(), UResVarPool::callGlobal(), device, UVariable::getBool(), UClientCams::getCam(), UClientCams::getCamData(), UClientFuncCam::getCams(), UCamPar::getFocalLength(), UVarPool::getStruct(), UResVarPool::getVarPool(), UClientCamData::height, URotation::Kappa, UTime::now(), URotation::Omega, URotation::Phi, UClientCamData::pos, UClientCamData::rot, UPosRot::set(), UVariable::set6D(), UVariable::setDouble(), UVariable::setInt(), UVariable::setTime(), UClientCamData::updTime, varCallDisp, varCamDevNum, varFocal, varHeight, varPosK, varPosO, varPosP, varPosX, varPosY, varPosZ, varUpdCnt, varUpdTime, varWidth, UClientCamData::width, UPosition::y, and UPosition::z.
Referenced by print().
|
inlinevirtual |
Print status for this resource
Reimplemented from UResVarPool.
References gotNewData(), and snprint().
|
virtual |
Fixed varsion number for this resource type. Should follow release version, i.e. version 1.28 gives number 128. Should be incremented only when there is change to this class definition, i.e new or changed functions or variables. Print status for this resource
References UClientCams::getCam(), UClientFuncCam::getCams(), UClientCams::getCamsCnt(), UVariable::getTime(), UTime::getTimeAsString(), UVariable::getValued(), UClientCamData::snprint(), varCamDevNum, varUpdCnt, and varUpdTime.
Referenced by getResClassID(), UFunctionCamData::handleCommand(), and print().
|
protected |
Call display on data update
Referenced by createBaseVar(), and gotNewData().
|
protected |
Index to variable with destination for last image
Referenced by createBaseVar(), gotNewData(), and snprint().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
index to camera details
Referenced by gotNewData().
|
protected |
Index to variable with number of images received
Referenced by createBaseVar(), gotNewData(), and snprint().
|
protected |
Index to variable with last update time
Referenced by createBaseVar(), gotNewData(), and snprint().
|
protected |
index to camera details
Referenced by gotNewData().