ICAROUS
|
#include <GeneralState.h>
Public Member Functions | |
GeneralState (const std::string &name, const Position &s, const Velocity &v, double time) | |
GeneralState (const std::string &name, const SimpleMovingPoly &p, double time) | |
GeneralState (const std::string &name, const SimpleMovingPoly &p, double time, bool cont) | |
GeneralState (const std::string &name, const SimplePoly &p, const Velocity &v, double time, bool cont) | |
GeneralState (const MovingPolygon3D &p, bool containment) | |
GeneralState (const GeneralState &g) | |
Position | representativePosition () const |
Velocity | representativeVelocity () const |
std::string | getName () const |
GeneralState | copy () const |
bool | hasPointMass () const |
bool | hasPolygon () const |
Position | getPosition () const |
Velocity | getVelocity () const |
SimpleMovingPoly | getPolygon () const |
double | getTime () const |
bool | isContainment () const |
General3DState | get3DState (const EuclideanProjection &proj) |
General3DState | getLast3DState () const |
General3DState | pred (double t) const |
GeneralState | linearPred (double t) const |
GeneralState | linear (double dt) const |
bool | checkLatLon (bool ll) const |
bool | isLatLon () const |
bool | isInvalid () const |
std::string | toString () const |
Static Public Member Functions | |
static GeneralState | make (const General3DState &g, const std::string &name, double time) |
static GeneralState | make (const General3DState &g, const EuclideanProjection &proj, const std::string &name, double time) |
Static Public Attributes | |
static const GeneralState | INVALID = GeneralState() |
Private Attributes | |
std::string | id |
Position | si |
Velocity | vi |
SimpleMovingPoly | mp |
double | t |
bool | containment |
bool | pointDefined |
bool | polyDefined |
General3DState | state |
A "general state" object that holds Euclidean or Lat/Lon information about position and velocity for an object. Currently this can either be a (point-mass) aircraft or a (possible morphing) polygon. This is intended to be traffic information that will be converted to a General3DState object to be sent to a GeneralDetector object.
General3DState larcfm::GeneralState::getLast3DState | ( | ) | const |
Return the last computed 3D state (via get3DState)
GeneralState larcfm::GeneralState::linear | ( | double | dt | ) | const |
Return a new general state advanced by (relative) time dt
GeneralState larcfm::GeneralState::linearPred | ( | double | t | ) | const |
Return a new general state advanced to new (absolute) time t
|
static |
Creates a LatLon GeneralState
g | |
proj |
|
static |
Creates a Euclidean GeneralState
g |
General3DState larcfm::GeneralState::pred | ( | double | t | ) | const |
Return most recent 3d projection advanced to new time t (or invalid if get3DState has not been called)
Position larcfm::GeneralState::representativePosition | ( | ) | const |
Return a representative position for this state (averagePoint in the case of polygons)