AURobotServers
4
|
#include <LEL_commons.h>
Public Member Functions | |
LEL_ARLine () | |
LEL_ARLine (double alphaIn, double rIn) | |
LEL_ARLine (double startX, double startY, double endX, double endY, const char *linename) | |
double | pointX (double pointAlongLine) |
double | pointY (double pointAlongLine) |
double | positionAlongLine (double x, double y) |
Public Attributes | |
double | alpha |
double | lb |
double | le |
bool | limited |
char | name [MNL] |
double | p1 [2] |
double | p2 [2] |
double | r |
Static Public Attributes | |
static const int | MNL = 32 |
|
inline |
constructor - initialize
|
inline |
setline as simpel angle (A), distance (R) line ( line is thus not limited.
|
inline |
set line from start - end psitions. Makes the line limited.
linename | is a max 32 character name - is copied, and may not be NULL. |
References lb, le, positionAlongLine(), and r.
|
inline |
get the X position on the line from a relative position
|
inline |
get the Y position on the line from a relative position
|
inline |
Get relative position on the line closest to this point.
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), LEL_ARLine(), UFuncLocalize::projectToLaser(), and UFuncLoca2::projectToLaser().
double LEL_ARLine::alpha |
angle of line from origo to closest point on line (radians)
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), UFuncLocalize::projectToLaser(), UFuncLoca2::projectToLaser(), and LEL_GFLine::toARLine().
double LEL_ARLine::lb |
relative start position on line
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), LEL_ARLine(), UFuncLocalize::projectToLaser(), and UFuncLoca2::projectToLaser().
double LEL_ARLine::le |
relative end position on line
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), LEL_ARLine(), UFuncLocalize::projectToLaser(), and UFuncLoca2::projectToLaser().
bool LEL_ARLine::limited |
line is start-end limited
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), UFuncLocalize::projectToLaser(), and UFuncLoca2::projectToLaser().
|
static |
max length of line name
Referenced by UFuncLocalize::handleAddLine(), and UFuncLoca2::handleAddLine().
char LEL_ARLine::name[MNL] |
double LEL_ARLine::p1[2] |
start point if limited
Referenced by ULineMatch::addToPoly(), UFuncLocalize::handleLocalize(), and ULineMatch::print().
double LEL_ARLine::p2[2] |
end point if limited
Referenced by ULineMatch::addToPoly(), UFuncLocalize::handleLocalize(), and ULineMatch::print().
double LEL_ARLine::r |
distance from line to origo (meters)
Referenced by UFuncLoca2::correlateLines(), UFuncLocalize::handleLocalize(), UFuncLocalize::handleLocalizeMHF(), UFuncLocalize::handleLocalizeUKF(), LEL_ARLine(), UFuncLocalize::projectToLaser(), UFuncLoca2::projectToLaser(), and LEL_GFLine::toARLine().