AURobotServers
4
|
#include <au2dlineseg.h>
Public Member Functions | |
AU2DLineSeg () | |
virtual const char * | getDataType () |
Get type of this structure. More... | |
void | getOtherEnd (double *x2, double *y2) |
get x,y coordinates ot the other end of line More... | |
void | setLine (double vx, double vy, double vth, double vlen, double vresSQ) |
set line from direct values More... | |
char * | toXMLString (char *target, const int targetCnt, const char *extra=NULL) |
Code line as an XML tag to this target string. More... | |
virtual | ~AU2DLineSeg () |
Public Member Functions inherited from UDataBase | |
bool | isA (const char *typeString) |
virtual bool | isAlsoA (const char *typeString) |
virtual void | snprint (const char *preString, char *buff, const int buffCnt) |
UDataBase () | |
virtual | ~UDataBase () |
Public Attributes | |
double | length |
length of line in meters More... | |
double | resSQ |
mean square error (square residual) when fitted More... | |
double | th |
orientation of line in radians More... | |
double | x |
start point of line x in meter More... | |
double | y |
start point of line y in meter More... | |
2D line segment - invented as result type for 'scan features', and is compatible with inter resource data transfer (as it has a UDataBase source type
@author Christian <chrand@mail.dk>
AU2DLineSeg::AU2DLineSeg | ( | ) |
Constructor
|
virtual |
Destructor
|
inlinevirtual |
Get type of this structure.
Reimplemented from UDataBase.
References getOtherEnd(), setLine(), and toXMLString().
void AU2DLineSeg::getOtherEnd | ( | double * | x2, |
double * | y2 | ||
) |
get x,y coordinates ot the other end of line
References length, th, x, and y.
Referenced by getDataType().
void AU2DLineSeg::setLine | ( | double | vx, |
double | vy, | ||
double | vth, | ||
double | vlen, | ||
double | vresSQ | ||
) |
set line from direct values
References length, resSQ, th, x, and y.
Referenced by UResAuEf::findFeatures(), getDataType(), and UResAuEf::updateWalls().
char * AU2DLineSeg::toXMLString | ( | char * | target, |
const int | targetCnt, | ||
const char * | extra = NULL |
||
) |
Code line as an XML tag to this target string.
target | char buffer, where to put coded data. |
targetCnt | is the length of the target buffer. |
References length, resSQ, th, x, and y.
Referenced by getDataType(), UFuncEfLine::sendAllLines(), and UFuncEfLine::sendBoxLines().
double AU2DLineSeg::length |
length of line in meters
Referenced by UResAuEf::findFeatures(), getOtherEnd(), UResAuEf::initializeWalls(), setLine(), toXMLString(), and UResAuEf::updateWalls().
double AU2DLineSeg::resSQ |
mean square error (square residual) when fitted
Referenced by UResAuEf::findFeatures(), setLine(), and toXMLString().
double AU2DLineSeg::th |
orientation of line in radians
Referenced by UResAuEf::findFeatures(), getOtherEnd(), setLine(), and toXMLString().
double AU2DLineSeg::x |
start point of line x in meter
Referenced by UResAuEf::findFeatures(), getOtherEnd(), UFuncEfLine::sendAllLines(), setLine(), toXMLString(), and UResAuEf::updateWalls().
double AU2DLineSeg::y |
start point of line y in meter
Referenced by UResAuEf::findFeatures(), getOtherEnd(), UFuncEfLine::sendAllLines(), setLine(), toXMLString(), and UResAuEf::updateWalls().