#include <image_streamer.h>
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_ |
Definition at line 13 of file image_streamer.h.
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.
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] |
Implemented in web_video_server::ImageTransportImageStreamer, and web_video_server::RosCompressedStreamer.
Definition at line 38 of file image_streamer.h.
Reimplemented in web_video_server::ImageTransportImageStreamer, and web_video_server::RosCompressedStreamer.
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.
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.