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

#include <image_streamer.h>

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

Public Member Functions

 ImageTransportImageStreamer (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
 
virtual void start ()
 
virtual ~ImageTransportImageStreamer ()
 
- Public Member Functions inherited from web_video_server::ImageStreamer
std::string getTopic ()
 
 ImageStreamer (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
 
bool isInactive ()
 
virtual ~ImageStreamer ()
 

Protected Member Functions

virtual void initialize (const cv::Mat &)
 
virtual void restreamFrame (double max_age)
 
virtual void sendImage (const cv::Mat &, const ros::Time &time)=0
 

Protected Attributes

std::string default_transport_
 
image_transport::Subscriber image_sub_
 
bool invert_
 
ros::Time last_frame
 
int output_height_
 
cv::Mat output_size_image
 
int output_width_
 
boost::mutex send_mutex_
 
- Protected Attributes inherited from web_video_server::ImageStreamer
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_
 

Private Member Functions

void imageCallback (const sensor_msgs::ImageConstPtr &msg)
 

Private Attributes

bool initialized_
 
image_transport::ImageTransport it_
 

Detailed Description

Definition at line 49 of file image_streamer.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file image_streamer.cpp.

web_video_server::ImageTransportImageStreamer::~ImageTransportImageStreamer ( )
virtual

Definition at line 29 of file image_streamer.cpp.

Member Function Documentation

void web_video_server::ImageTransportImageStreamer::imageCallback ( const sensor_msgs::ImageConstPtr &  msg)
private

Definition at line 84 of file image_streamer.cpp.

void web_video_server::ImageTransportImageStreamer::initialize ( const cv::Mat &  )
protectedvirtual

Reimplemented in web_video_server::LibavStreamer.

Definition at line 49 of file image_streamer.cpp.

void web_video_server::ImageTransportImageStreamer::restreamFrame ( double  max_age)
protectedvirtual

Restreams the last received image frame if older than max_age.

Implements web_video_server::ImageStreamer.

Definition at line 53 of file image_streamer.cpp.

virtual void web_video_server::ImageTransportImageStreamer::sendImage ( const cv::Mat &  ,
const ros::Time time 
)
protectedpure virtual
void web_video_server::ImageTransportImageStreamer::start ( )
virtual

Implements web_video_server::ImageStreamer.

Definition at line 33 of file image_streamer.cpp.

Member Data Documentation

std::string web_video_server::ImageTransportImageStreamer::default_transport_
protected

Definition at line 66 of file image_streamer.h.

image_transport::Subscriber web_video_server::ImageTransportImageStreamer::image_sub_
protected

Definition at line 62 of file image_streamer.h.

bool web_video_server::ImageTransportImageStreamer::initialized_
private

Definition at line 74 of file image_streamer.h.

bool web_video_server::ImageTransportImageStreamer::invert_
protected

Definition at line 65 of file image_streamer.h.

image_transport::ImageTransport web_video_server::ImageTransportImageStreamer::it_
private

Definition at line 73 of file image_streamer.h.

ros::Time web_video_server::ImageTransportImageStreamer::last_frame
protected

Definition at line 68 of file image_streamer.h.

int web_video_server::ImageTransportImageStreamer::output_height_
protected

Definition at line 64 of file image_streamer.h.

cv::Mat web_video_server::ImageTransportImageStreamer::output_size_image
protected

Definition at line 69 of file image_streamer.h.

int web_video_server::ImageTransportImageStreamer::output_width_
protected

Definition at line 63 of file image_streamer.h.

boost::mutex web_video_server::ImageTransportImageStreamer::send_mutex_
protected

Definition at line 70 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