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

◆ ImageStreamer()

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.

◆ ~ImageStreamer()

web_video_server::ImageStreamer::~ImageStreamer ( )
virtual

Definition at line 15 of file image_streamer.cpp.

Member Function Documentation

◆ getTopic()

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

Definition at line 34 of file image_streamer.h.

◆ isInactive()

bool web_video_server::ImageStreamer::isInactive ( )
inline

Definition at line 23 of file image_streamer.h.

◆ restreamFrame()

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.

◆ start()

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

Member Data Documentation

◆ connection_

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

Definition at line 38 of file image_streamer.h.

◆ image_sub_

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

Definition at line 44 of file image_streamer.h.

◆ inactive_

bool web_video_server::ImageStreamer::inactive_
protected

Definition at line 43 of file image_streamer.h.

◆ nh_

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

Definition at line 42 of file image_streamer.h.

◆ request_

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

Definition at line 41 of file image_streamer.h.

◆ topic_

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 Mar 2 2022 01:13:36