AURobotServers
4
|
#include <uclientfuncsimscan.h>
Public Member Functions | |
virtual const char * | commandList () |
virtual void | handleNewData (USmlTag *tag, const char *ifname) |
virtual const char * | name () |
void | setLaserData (ULaserData *value) |
UClientFuncSimScan () | |
~UClientFuncSimScan () | |
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 | handleLaserScan (USmlTag *tag) |
Protected Member Functions inherited from UClientFuncBase | |
void | handleHelp (USmlTag *tag) |
void | printReply (USmlTagIn *tag, const char *preString) |
Protected Attributes | |
ULaserData * | scan |
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 |
Decode of laser scan from simulated laser scanner from visualized.
UClientFuncSimScan::UClientFuncSimScan | ( | ) |
Constructor
References scan.
UClientFuncSimScan::~UClientFuncSimScan | ( | ) |
Destructor
|
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.
|
protected |
Decode laser scan parameters
References USmlTag::getNBytes(), USmlTagIn::getNextAttribute(), USmlTag::getNextTag(), ULaserData::getSerial(), USmlTagIn::getTagName(), HEX, hex2int(), USmlTagIn::isAStartTag(), USmlTagIn::isTagA(), USmlTagIn::isTagAnEnd(), ULock::lock(), MAX_SML_NAME_LENGTH, maxi(), mini(), scan, ULaserData::setAngleResAndStart(), ULaserData::setRangeCnt(), ULaserData::setScanTime(), ULaserData::setSerial(), UTime::setTime(), ULaserData::setUnit(), ULaserData::setValue(), and ULock::unlock().
Referenced by handleNewData(), and setLaserData().
|
virtual |
Got fresh data destined to this function.
Reimplemented from UClientFuncBase.
References handleLaserScan(), USmlTagIn::isTagA(), and UClientFuncBase::printReply().
|
virtual |
Name of function The returned name is intended as informative to clients and should include a version number
Reimplemented from UClientFuncBase.
|
inline |
Set data structure to use
References handleLaserScan(), and scan.
Referenced by ULaserSim::ULaserSim().
|
protected |
Received laser data
Referenced by handleLaserScan(), setLaserData(), and UClientFuncSimScan().