Public Member Functions | Protected Attributes | List of all members
web_video_server::ImageStreamer Class Referenceabstract

#include <image_streamer.h>

Inheritance diagram for web_video_server::ImageStreamer:
Inheritance graph
[legend]

Public Member Functions

std::string getTopic ()
 
 ImageStreamer (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
 
bool isInactive ()
 
virtual void restreamFrame (double max_age)=0
 
virtual void start ()=0
 
virtual ~ImageStreamer ()
 

Protected Attributes

async_web_server_cpp::HttpConnectionPtr connection_
 
image_transport::Subscriber image_sub_
 
bool inactive_
 
ros::NodeHandle nh_
 
async_web_server_cpp::HttpRequest request_
 
std::string topic_
 

Detailed Description

Definition at line 13 of file image_streamer.h.

Constructor & Destructor Documentation

web_video_server::ImageStreamer::ImageStreamer ( const async_web_server_cpp::HttpRequest &  request,
async_web_server_cpp::HttpConnectionPtr  connection,
ros::NodeHandle nh 
)

Definition at line 8 of file image_streamer.cpp.

web_video_server::ImageStreamer::~ImageStreamer ( )
virtual

Definition at line 15 of file image_streamer.cpp.

Member Function Documentation

std::string web_video_server::ImageStreamer::getTopic ( )
inline

Definition at line 34 of file image_streamer.h.

bool web_video_server::ImageStreamer::isInactive ( )
inline

Definition at line 23 of file image_streamer.h.

virtual void web_video_server::ImageStreamer::restreamFrame ( double  max_age)
pure virtual

Restreams the last received image frame if older than max_age.

Implemented in web_video_server::ImageTransportImageStreamer, and web_video_server::RosCompressedStreamer.

virtual void web_video_server::ImageStreamer::start ( )
pure virtual

Member Data Documentation

async_web_server_cpp::HttpConnectionPtr web_video_server::ImageStreamer::connection_
protected

Definition at line 38 of file image_streamer.h.

image_transport::Subscriber web_video_server::ImageStreamer::image_sub_
protected

Definition at line 44 of file image_streamer.h.

bool web_video_server::ImageStreamer::inactive_
protected

Definition at line 43 of file image_streamer.h.

ros::NodeHandle web_video_server::ImageStreamer::nh_
protected

Definition at line 42 of file image_streamer.h.

async_web_server_cpp::HttpRequest web_video_server::ImageStreamer::request_
protected

Definition at line 41 of file image_streamer.h.

std::string web_video_server::ImageStreamer::topic_
protected

Definition at line 45 of file image_streamer.h.


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


web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Jun 5 2019 20:38:04