ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Static Public Member Functions | List of all members
larcfm::TargetUrgency Class Reference

#include <TargetUrgency.h>

Static Public Member Functions

static bool mostUrgent (Detection3D *cd, const Vect3 &so, const Velocity &vo, const Vect3 &si1, const Velocity &vi1, const Vect3 &si2, const Velocity &vi2, double B, double T)
 
static double sortValue (double cdist, bool conflict, double tin, double tca, double dist_tca, double B, double T)
 

Detailed Description

This class is used to determine if one aircraft has priority over another aircraft. It is an encapsulation of the "right of way" rules.

Disclaimer: The current rules have been verified to have certain safety and liveness properties, but they have not been validated, that is, they may not behave "naturally." As we learn more about what is expected, these rules may evolve in the future.

Member Function Documentation

◆ sortValue()

double larcfm::TargetUrgency::sortValue ( double  cdist,
bool  conflict,
double  tin,
double  tca,
double  dist_tca,
double  B,
double  T 
)
static

Return a priority ranking value far an aircraft s.t. if two ranking values are compared, the lower (possibly negative) value will represent the most urgent aircraft.

Parameters
cdistcurrent distance between aircraft, in meters
conflicttrue if a conflict was detected
tintime in for the conflict, in seconds (if conflict)
tcacritical time of conflict, in seconds (if conflict)
dist_tcadistance at critical time, >= 0.0 (if conflict)
Bdetection start time (generally 0)
Tdetection lookahead time, t <= 0 is "no data"
Returns
urgency sorting value, with positive infinity being least urgent and negative infinity being most urgent

The documentation for this class was generated from the following files: