104 if(area>100.0 && form_factor>0.8)
114 set.push_back(prediction);
132 const double cospsi =
std::cos(psi);
133 const double sinpsi =
std::sin(psi);
141 dx = cospsi * p.
getVx()/v - sinpsi * p.
getVy()/v;
142 dy = sinpsi * p.
getVx()/v + cospsi * p.
getVy()/v;
148 const double ds = 2.0 * std::sqrt(
r*
r-b*b);
149 const double dt = t1-t0;
151 const double k = (int)std::ceil(l/ds);
152 const double s0 = -k*ds*0.5 + 0.5*ds;
154 const double s1 = +k*ds*0.5 + v*dt + 0.5*
a_max_*t_acc*t_acc - 0.5*ds;
167 for(
double s = s0;s<=s1;s+=ds)
169 const double x = pos0(0) + dx * s;
170 const double y = pos0(1) + dy * s;
180 set.push_back(prediction);
Definition: occupancycylinderprediction.h:47
virtual bool predict(const T &p, OccupancyCylinderPredictionSet &set) const =0
Definition: occupancycylinderprediction.h:62
double lat_error_
Definition: occupancycylinderprediction.h:66
double a_min_
Definition: occupancycylinderprediction.h:70
double width_lb_
Definition: occupancycylinderprediction.h:74
double lat_precision_
Definition: occupancycylinderprediction.h:65
void setWidthLB(double value)
Definition: occupancycylinderprediction.h:87
void setVMax(double value)
Definition: occupancycylinderprediction.h:81
void setLatError(double value)
Definition: occupancycylinderprediction.h:79
double lon_error_
Definition: occupancycylinderprediction.h:67
double width_ub_
Definition: occupancycylinderprediction.h:73
void setLatPrecision(double value)
Definition: occupancycylinderprediction.h:78
void setWidthUB(double value)
Definition: occupancycylinderprediction.h:86
void setTimeLeeway(double value)
Definition: occupancycylinderprediction.h:85
void setTMaxUTC(double value)
Definition: occupancycylinderprediction.h:77
double a_max_
Definition: occupancycylinderprediction.h:69
double t_max_utc_
Definition: occupancycylinderprediction.h:64
double time_leeway_
Definition: occupancycylinderprediction.h:72
void setAMax(double value)
Definition: occupancycylinderprediction.h:82
virtual bool predict(const traffic::Participant &p, OccupancyCylinderPredictionSet &set) const override
Definition: occupancycylinderprediction.h:90
OCStraightLinePrediction()
Definition: occupancycylinderprediction.h:88
void setAMin(double value)
Definition: occupancycylinderprediction.h:83
void setLonError(double value)
Definition: occupancycylinderprediction.h:80
double v_max_
Definition: occupancycylinderprediction.h:68
double time_headway_
Definition: occupancycylinderprediction.h:71
void setTimeHeadway(double value)
Definition: occupancycylinderprediction.h:84
Definition: velocityprediction.h:22
void predict_s_tva(double s0, double v0, double a0, double delay, double a1, double vbound, double t0, double dt, double t1, adore::mad::LLinearPiecewiseFunctionM< double, 3 > &result)
Definition: velocityprediction.h:24
virtual CT f(DT x) const override
Definition: llinearpiecewisefunction.h:251
virtual DT limitLo() const override
Definition: llinearpiecewisefunction.h:264
virtual DT limitHi() const override
Definition: llinearpiecewisefunction.h:259
Definition: occupancycylinder.h:84
void insert(const VolumeType &volume)
Definition: vectorbasedvolumetree.h:90
std::vector< OccupancyCylinderPrediction > OccupancyCylinderPredictionSet
Definition: occupancycylinderprediction.h:40
interval< T > cos(interval< T > x)
Definition: intervalarithmetic.h:225
T bound(T lb, T value, T ub)
Definition: adoremath.h:569
T min(T a, T b, T c, T d)
Definition: adoremath.h:663
void set(T *data, T value, int size)
Definition: adoremath.h:39
interval< T > sin(interval< T > x)
Definition: intervalarithmetic.h:204
adoreMatrix< T, N, M > max(adoreMatrix< T, N, M > a, const adoreMatrix< T, N, M > &b)
Definition: adoremath.h:686
x
Definition: adore_set_goal.py:30
y
Definition: adore_set_goal.py:31
r
Definition: adore_suppress_lanechanges.py:209
Definition: areaofeffectconverter.h:20
Definition: occupancycylinderprediction.h:27
int branchID_
Definition: occupancycylinderprediction.h:31
int trackingID_
Definition: occupancycylinderprediction.h:30
int v2xStationID_
Definition: occupancycylinderprediction.h:29
adore::mad::OccupancyCylinderTree occupancy_
Definition: occupancycylinderprediction.h:33
float confidence_
Definition: occupancycylinderprediction.h:34
int predecessorID_
Definition: occupancycylinderprediction.h:32
Struct for representing a participant in traffic.
Definition: participant.h:30
double getLength() const
Definition: participant.h:155
TTrackingID getTrackingID() const
Definition: participant.h:109
double getObservationTime() const
Definition: participant.h:112
const adoreMatrix< double, 3, 1 > & getCenter() const
Definition: participant.h:124
double getYaw() const
Definition: participant.h:154
TV2XStationID getStationID() const
Definition: participant.h:110
double getWidth() const
Definition: participant.h:156
double getVy() const
Definition: participant.h:158
double getVx() const
Definition: participant.h:157
Definition: occupancycylinder.h:25