75 std::unordered_set<Participant::TTrackingID> idset;
76 for(
auto pborder: borders )
79 for(
auto it = range.first; it != range.second; ++it)
84 if(idset.find(
id)!=idset.end())
continue;
105 double ds = (ctheta*cpsi+stheta*spsi) * par.
vx_
106 + (-ctheta*spsi+stheta*cpsi) * par.
vy_;
108 object.setEntranceSpeed(ds);
109 object.setCurrentSpeed(ds);
110 object.setCurrentProgress(s);
111 object.setCurrentAcceleration(0.0);
112 object.setExitProgress(1.0e5);
122 {return a.getCurrentProgress()
123 <b.getCurrentProgress();});
Definition: egolanetraffic.h:34
const TrafficMap * getTrafficMap() const
Get the traffic map.
Definition: egolanetraffic.h:59
const adore::view::TrafficQueue & getQueue() const
Get the traffic queue.
Definition: egolanetraffic.h:50
TrafficMap * trafficMap_
Definition: egolanetraffic.h:37
EgoLaneTraffic(TrafficMap *trafficMap)
Construct a new EgoLaneTraffic object.
Definition: egolanetraffic.h:44
void mapVehiclesOnBorders(adore::view::ALane *lfv, const adore::env::BorderBased::BorderSubSet &borders)
Map vehicles on borders.
Definition: egolanetraffic.h:69
adore::view::TrafficQueue queue_
Definition: egolanetraffic.h:36
Definition: trafficmap.h:36
const TBorderToParticipant & getBorderToParticipant() const
Get the border to participant map.
Definition: trafficmap.h:72
const TTrackingIDToParticipant & getTrackingIDToParticipant() const
Get the tracking id to participant map.
Definition: trafficmap.h:90
virtual void toRelativeCoordinates(double xe, double ye, double &s, double &n)=0
virtual bool isValid() const =0
virtual double getHeading(double s)=0
std::vector< Border * > BorderSubSet
Definition: borderset.h:92
interval< T > cos(interval< T > x)
Definition: intervalarithmetic.h:225
interval< T > sin(interval< T > x)
Definition: intervalarithmetic.h:204
std::vector< TrafficObject > TrafficQueue
Definition: trafficobject.h:183
Definition: areaofeffectconverter.h:20
Struct for representing a participant in traffic.
Definition: participant.h:30
double vy_
Definition: participant.h:104
double yaw_
Definition: participant.h:99
double vx_
Definition: participant.h:103
adoreMatrix< double, 3, 1 > center_
Definition: participant.h:98
TTrackingID trackingID_
Definition: participant.h:78
int TTrackingID
Definition: participant.h:32
TV2XStationID v2xStationID_
Definition: participant.h:79
double length_
Definition: participant.h:100
double observation_time_
Definition: participant.h:81
Definition: trafficobject.h:27
void setEntranceProgress(double value)
Definition: trafficobject.h:150