AURobotServers
4
|
#include <uclientfuncsf.h>
Public Member Functions | |
virtual const char * | commandList () |
USFPool * | getSfPool () |
virtual void | handleNewData (USmlTag *tag, const char *ifname) |
virtual const char * | name () |
UClientFuncSF () | |
virtual | ~UClientFuncSF () |
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 () |
Protected Member Functions | |
bool | handlePass (USmlTag *tag) |
bool | handleRoad (USmlTag *sfTag) |
bool | handleSF (USmlTag *tag) |
Protected Member Functions inherited from UClientFuncBase | |
void | handleHelp (USmlTag *tag) |
void | printReply (USmlTagIn *tag, const char *preString) |
Protected Attributes | |
USFPool * | sfPool |
Protected Attributes inherited from UClientFuncBase | |
int | msgHandled |
char | serverNamespace [MAX_SML_NAME_LENGTH] |
int | serverNamespaceValue |
bool | verboseMessages |
Additional Inherited Members | |
Public Attributes inherited from UClientFuncBase | |
ULock | decodeLock |
Extract scanfeature lines
@author Christian Andersen <jca@oersted.dtu.dk>
UClientFuncSF::UClientFuncSF | ( | ) |
Constructor
References sfPool.
|
virtual |
Destructor
References sfPool.
|
virtual |
Function, that shall return a string with all handled commands, i.e. should return "gmk gmk2d guidemark", if commands starting with any of these three keywords are handled by this function
Reimplemented from UClientFuncBase.
|
inline |
Get a pointer to the scan feature pool
References handlePass(), handleRoad(), handleSF(), and sfPool.
Referenced by clientCmdLine().
|
virtual |
Got fresh data destined to this function.
Reimplemented from UClientFuncBase.
References USmlTagIn::getNextAttribute(), handlePass(), handleRoad(), handleSF(), USmlTagIn::isTagA(), MAX_SML_NAME_LENGTH, USmlTagIn::print(), UClientFuncBase::printReply(), USmlTagIn::reset(), and UClientFuncBase::verboseMessages.
|
protected |
Decode the received Passable interval message
References USFPool::addData(), USFData::addSegment(), UOnEvent::event(), USmlTagIn::getAttValue(), USmlTag::getLineSegment(), USmlTagIn::getNextAttribute(), USmlTag::getNextTag(), UPosRot::getPos(), USmlTag::getPose(), USmlTag::getPosition(), UPosRot::getRot(), USmlTag::getRotation(), USFPool::getSensorPose(), USmlTagIn::getTagName(), USmlTagIn::isAnEndTag(), USmlTagIn::isAStartTag(), USmlTagIn::isTagA(), MAX_SML_NAME_LENGTH, USFData::MAX_TYPE_LENGTH, USFData::moveLocalToMap(), USFData::pose, USFData::scanTime, USFPool::setSensorPose(), UTime::setTimeTod(), sfPool, USmlTag::skipToEndTag(), USFData::type, and UClientFuncBase::verboseMessages.
Referenced by getSfPool(), and handleNewData().
|
protected |
Decode road edge lines
References USFPool::addData(), USFData::addSegment(), UOnEvent::event(), USmlTagIn::getAttValue(), USmlTag::getLineSegment(), USmlTag::getNextTag(), USmlTagIn::getTagName(), USmlTagIn::isAnEndTag(), USmlTagIn::isAStartTag(), USmlTagIn::isTagA(), USFData::MAX_SEG_STR_LENGTH, USFData::MAX_TYPE_LENGTH, USFData::scanTime, UTime::setTimeTod(), sfPool, USmlTag::skipToEndTag(), str2bool(), and USFData::type.
Referenced by getSfPool(), and handleNewData().
|
protected |
Decode the received ScanFeature message
References USFPool::addData(), USFData::addSegment(), UPose::clear(), UOnEvent::event(), USmlTagIn::getAttValue(), USmlTagIn::getNextAttribute(), USmlTag::getNextTag(), UPosRot::getPos(), USmlTag::getPose(), USmlTag::getPosition(), UPosRot::getRot(), USmlTag::getRotation(), USFPool::getSensorPose(), USmlTagIn::getTagName(), USmlTagIn::isAnEndTag(), USmlTagIn::isAStartTag(), USmlTagIn::isTagA(), ULineSegment::length, USFData::MAX_SEG_STR_LENGTH, MAX_SML_NAME_LENGTH, USFData::MAX_TYPE_LENGTH, USFData::moveLocalToMap(), USFData::pose, USFData::scanTime, ULine::set2D(), USFPool::setSensorPose(), UTime::setTimeTod(), sfPool, USmlTag::skipToEndTag(), and USFData::type.
Referenced by getSfPool(), and handleNewData().
|
virtual |
Name of function The returned name is intended as informative to clients and should include a version number
Reimplemented from UClientFuncBase.
|
protected |
Group of line segments from scanfeatures
Referenced by getSfPool(), handlePass(), handleRoad(), handleSF(), UClientFuncSF(), and ~UClientFuncSF().