Public Member Functions | Private Member Functions | Private Attributes
web_video_server::WebVideoServer Class Reference

#include <web_video_server.h>

List of all members.

Public Member Functions

bool handle_list_streams (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
bool handle_snapshot (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
bool handle_stream (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
bool handle_stream_viewer (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
void spin ()
 Starts the server and spins.
 WebVideoServer (ros::NodeHandle &nh, ros::NodeHandle &private_nh)
 Constructor.
virtual ~WebVideoServer ()
 Destructor - Cleans up.

Private Member Functions

void cleanup_inactive_streams ()

Private Attributes

std::string address_
ros::Timer cleanup_timer_
async_web_server_cpp::HttpRequestHandlerGroup handler_group_
std::vector< boost::shared_ptr
< ImageStreamer > > 
image_subscribers_
ros::NodeHandle nh_
int port_
int ros_threads_
boost::shared_ptr
< async_web_server_cpp::HttpServer
server_
std::map< std::string,
boost::shared_ptr
< ImageStreamerType > > 
stream_types_
boost::mutex subscriber_mutex_

Detailed Description

Definition at line 19 of file web_video_server.h.


Constructor & Destructor Documentation

Constructor.

Returns:

Definition at line 38 of file web_video_server.cpp.

Destructor - Cleans up.

Definition at line 70 of file web_video_server.cpp.


Member Function Documentation

Definition at line 83 of file web_video_server.cpp.

bool web_video_server::WebVideoServer::handle_list_streams ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
)

Definition at line 161 of file web_video_server.cpp.

bool web_video_server::WebVideoServer::handle_snapshot ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
)

Definition at line 122 of file web_video_server.cpp.

bool web_video_server::WebVideoServer::handle_stream ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
)

Definition at line 102 of file web_video_server.cpp.

bool web_video_server::WebVideoServer::handle_stream_viewer ( const async_web_server_cpp::HttpRequest request,
async_web_server_cpp::HttpConnectionPtr  connection,
const char *  begin,
const char *  end 
)

Definition at line 134 of file web_video_server.cpp.

Starts the server and spins.

Definition at line 74 of file web_video_server.cpp.


Member Data Documentation

Definition at line 57 of file web_video_server.h.

Definition at line 54 of file web_video_server.h.

Definition at line 59 of file web_video_server.h.

std::vector<boost::shared_ptr<ImageStreamer> > web_video_server::WebVideoServer::image_subscribers_ [private]

Definition at line 61 of file web_video_server.h.

Definition at line 53 of file web_video_server.h.

Definition at line 56 of file web_video_server.h.

Definition at line 55 of file web_video_server.h.

Definition at line 58 of file web_video_server.h.

std::map<std::string, boost::shared_ptr<ImageStreamerType> > web_video_server::WebVideoServer::stream_types_ [private]

Definition at line 62 of file web_video_server.h.

Definition at line 63 of file web_video_server.h.


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


web_video_server
Author(s): Mitchell Wills
autogenerated on Thu Aug 27 2015 15:42:12