#ifndef AW_CROSSWALKMANAGER_H #define AW_CROSSWALKMANAGER_H #include #include #include //#include //#include #include #include namespace vlr { #define CROSSWALK_MIN_FREE_TIME 1.5 class Topology; class CrosswalkManager { public: CrosswalkManager(Topology* top); ~CrosswalkManager(); bool isOccupied(std::vector& pedestrians); inline static void minFree(double t) {min_free_time_ = t;} inline static double minFree() {return min_free_time_;} private: bool pedestriansOnCrosswalk(rndf::Crosswalk* crosswalk, std::vector& pedestrians); private: Topology* top_; RndfGraph* graph_; std::vector crosswalks_; double last_occupied_; static double min_free_time_; }; } // namespace vlr #endif // AW_CROSSWALKMANAGER_H