#include <rail_user_queue_manager.h>
Public Member Functions | |
UserQueueManager () | |
This starts the server, waits for param server and create clickable parking spots. | |
Static Public Attributes | |
static const int | DEFAULT_TRIAL = 600 |
static const int | LOOP_RATE = 1 |
Private Member Functions | |
bool | onUpdateQueue (rail_user_queue_manager::UpdateQueue::Request &req, rail_user_queue_manager::UpdateQueue::Response &res) |
Add or remove a user to the deque. | |
Private Attributes | |
int | countdown_ |
ros::NodeHandle | private_node_ |
std::deque< std::pair< int, int > > | queue_ |
bool | run_countdown_ |
Definition at line 16 of file rail_user_queue_manager.h.
This starts the server, waits for param server and create clickable parking spots.
Definition at line 20 of file rail_user_queue_manager.cpp.
bool UserQueueManager::onUpdateQueue | ( | rail_user_queue_manager::UpdateQueue::Request & | req, |
rail_user_queue_manager::UpdateQueue::Response & | res | ||
) | [private] |
Add or remove a user to the deque.
Definition at line 103 of file rail_user_queue_manager.cpp.
int rail::UserQueueManager::countdown_ [private] |
keeps track of the time left for the active user
Definition at line 33 of file rail_user_queue_manager.h.
const int rail::UserQueueManager::DEFAULT_TRIAL = 600 [static] |
default length of trial is 600 seconds. This will always be overwritten if the enqueue
Definition at line 22 of file rail_user_queue_manager.h.
const int rail::UserQueueManager::LOOP_RATE = 1 [static] |
brief The frequency of the loop in (1/seconds). This is how often we publish the queue
Definition at line 20 of file rail_user_queue_manager.h.
Private node handle.
Definition at line 37 of file rail_user_queue_manager.h.
std::deque<std::pair<int, int> > rail::UserQueueManager::queue_ [private] |
the queue to hold the user_ids and wait times in order.
Definition at line 31 of file rail_user_queue_manager.h.
bool rail::UserQueueManager::run_countdown_ [private] |
run countdown if there is someone in the queue
Definition at line 35 of file rail_user_queue_manager.h.