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

◆ ImageTransportImageStreamer()

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.

◆ ~ImageTransportImageStreamer()

web_video_server::ImageTransportImageStreamer::~ImageTransportImageStreamer ( )
virtual

Definition at line 29 of file image_streamer.cpp.

Member Function Documentation

◆ imageCallback()

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

Definition at line 84 of file image_streamer.cpp.

◆ initialize()

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.

◆ restreamFrame()

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.

◆ sendImage()

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

◆ start()

void web_video_server::ImageTransportImageStreamer::start ( )
virtual

Implements web_video_server::ImageStreamer.

Definition at line 33 of file image_streamer.cpp.

Member Data Documentation

◆ default_transport_

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

Definition at line 66 of file image_streamer.h.

◆ image_sub_

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

Definition at line 62 of file image_streamer.h.

◆ initialized_

bool web_video_server::ImageTransportImageStreamer::initialized_
private

Definition at line 74 of file image_streamer.h.

◆ invert_

bool web_video_server::ImageTransportImageStreamer::invert_
protected

Definition at line 65 of file image_streamer.h.

◆ it_

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

Definition at line 73 of file image_streamer.h.

◆ last_frame

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

Definition at line 68 of file image_streamer.h.

◆ output_height_

int web_video_server::ImageTransportImageStreamer::output_height_
protected

Definition at line 64 of file image_streamer.h.

◆ output_size_image

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

Definition at line 69 of file image_streamer.h.

◆ output_width_

int web_video_server::ImageTransportImageStreamer::output_width_
protected

Definition at line 63 of file image_streamer.h.

◆ send_mutex_

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