72 double x,
double y,
double r,
73 std::vector<adore::env::TrafficControlDevice*> &newTCD,
74 std::vector<adore::env::TrafficControlDevice*> &outdatedTCD,
75 std::vector<adore::env::TTCDTrafficLightTuple> &newTL,
76 std::vector<adore::env::TTCDTrafficLightTuple> &outdatedTL,
77 int MAX_NEW_NUMBER = 5
88 std::vector<int> delTcdId;
91 delTcdId.push_back(it.first->second);
99 outdatedTCD.push_back(tcd);
102 for(
auto it = delTcdId.begin(); it!=delTcdId.end();it++)
110 auto tcdId = it.first->second;
121 newTL.push_back(tcdt);
126 newTCD.push_back(tcd);
manage visible traffic control devices based on vehicle position and last state of the object
Definition: map_tcd_management.h:29
void run(double x, double y, double r, std::vector< adore::env::TrafficControlDevice * > &newTCD, std::vector< adore::env::TrafficControlDevice * > &outdatedTCD, std::vector< adore::env::TTCDTrafficLightTuple > &newTL, std::vector< adore::env::TTCDTrafficLightTuple > &outdatedTL, int MAX_NEW_NUMBER=5)
get new/outdated traffic control devices / traffic lights based on last object state and current vehi...
Definition: map_tcd_management.h:71
adore::env::TCDSet m_globalSet
Definition: map_tcd_management.h:30
MapTCDManagement()
Construct a new Map T C D Management object.
Definition: map_tcd_management.h:37
void init(adore::env::TCDSet &globalSet)
initialization routine
Definition: map_tcd_management.h:46
void reset()
clear local set
Definition: map_tcd_management.h:55
adore::env::TCDSet m_localSet
Definition: map_tcd_management.h:31
bool insertTCD(env::TrafficControlDevice *tcd)
Definition: tcdset.h:128
void setMovementId(int tcdId, int movementId)
Definition: tcdset.h:149
void clear()
Definition: tcdset.h:185
bool eraseTCD(int tcdID)
Definition: tcdset.h:165
bool hasTCD(int tcdID)
Definition: tcdset.h:259
void setJunctionId(int movementId, int junctionId)
Definition: tcdset.h:154
ItCoordinate2tcdID getTCDsInRegion(double x0, double x1, double y0, double y1)
Definition: tcdset.h:214
env::TrafficControlDevice * getTCD(int tcdID)
Definition: tcdset.h:264
void setIsOwner(bool b)
Definition: tcdset.h:108
env::TTCDTrafficLightTuple getTCDTrafficLight(int tcdID)
Definition: tcdset.h:273
ItCoordinate2tcdID getTCDsOutsideRegion(double x0, double x1, double y0, double y1)
Definition: tcdset.h:228
Definition: trafficcontroldevice.h:24
int getID() const
Definition: trafficcontroldevice.h:146
TCDType getType() const
Definition: trafficcontroldevice.h:155
@ TRAFFIC_LIGHT
Definition: trafficcontroldevice.h:29
std::vector< double > getCornerPoints(double x, double y, double r)
Get corner points vector from center point and radius.
Definition: map_auxiliary.h:34
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
T1 first
Definition: tcdset.h:43