Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
rail::UserQueueManager Class Reference

#include <rail_user_queue_manager.h>

List of all members.

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_

Detailed Description

Definition at line 16 of file rail_user_queue_manager.h.


Constructor & Destructor Documentation

This starts the server, waits for param server and create clickable parking spots.

Definition at line 20 of file rail_user_queue_manager.cpp.


Member Function Documentation

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.


Member Data Documentation

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.

run countdown if there is someone in the queue

Definition at line 35 of file rail_user_queue_manager.h.


The documentation for this class was generated from the following files:


rail_user_queue_manager
Author(s): Peter Mitrano
autogenerated on Fri Aug 28 2015 12:20:24