63 void run(
double x,
double y,
double r, std::vector<adore::env::BorderBased::ParkingSpot> &newSpots, std::vector<adore::env::BorderBased::ParkingSpot> &outdatedSpots,
int MAX_SEND_NUMBER = 5)
68 outdatedSpots.clear();
72 for(
auto it = outdatedSpots.begin(); it!=outdatedSpots.end(); it++)
85 newSpots.push_back(ps);
87 if(newCount>=MAX_SEND_NUMBER)
Definition: parkingspotset.h:39
void clear()
Definition: parkingspotset.h:172
bool insertParkingSpot(ParkingSpot parkingSpot)
Definition: parkingspotset.h:135
ItPairCoordinate2heading getParkingSpotsOutsideRegion(double x0, double x1, double y0, double y1)
Definition: parkingspotset.h:206
bool eraseParkingSpot(adore::env::BorderBased::Coordinate::boost_point bp)
Definition: parkingspotset.h:98
std::vector< ParkingSpot > itPair2ParkingSpotVector(ItPairCoordinate2heading itPair)
Definition: parkingspotset.h:245
ItPairCoordinate2heading getParkingSpotsInRegion(double x0, double x1, double y0, double y1)
Definition: parkingspotset.h:192
bool hasParkingSpot(adore::env::BorderBased::Coordinate::boost_point bp)
Definition: parkingspotset.h:84
This class definition is to represent parking spots.
Definition: parkingspot.h:31
automatically manage parking spot based on current vehicle position and last state of object
Definition: map_parkingspot_management.h:29
void run(double x, double y, double r, std::vector< adore::env::BorderBased::ParkingSpot > &newSpots, std::vector< adore::env::BorderBased::ParkingSpot > &outdatedSpots, int MAX_SEND_NUMBER=5)
get new and outdated parking spots based on vehicle position
Definition: map_parkingspot_management.h:63
adore::env::BorderBased::ParkingSpotSet m_localSet
Definition: map_parkingspot_management.h:31
void init(adore::env::BorderBased::ParkingSpotSet &globalSet)
initialization routine with global parking spot set
Definition: map_parkingspot_management.h:39
adore::env::BorderBased::ParkingSpotSet m_globalSet
Definition: map_parkingspot_management.h:30
void reset()
clear the local set
Definition: map_parkingspot_management.h:48
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
This struct represents 3-dimensional coordines.
Definition: coordinate.h:34
T1 first
Definition: parkingspotset.h:47