#include <image_streamer.h>
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 () |
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_ |
Private Member Functions | |
void | imageCallback (const sensor_msgs::ImageConstPtr &msg) |
Private Attributes | |
bool | initialized_ |
image_transport::ImageTransport | it_ |
Definition at line 49 of file image_streamer.h.
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.
Definition at line 29 of file image_streamer.cpp.
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 & | ) | [protected, virtual] |
Reimplemented in web_video_server::LibavStreamer.
Definition at line 49 of file image_streamer.cpp.
void web_video_server::ImageTransportImageStreamer::restreamFrame | ( | double | max_age | ) | [protected, virtual] |
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 | ||
) | [protected, pure virtual] |
void web_video_server::ImageTransportImageStreamer::start | ( | ) | [virtual] |
Implements web_video_server::ImageStreamer.
Definition at line 33 of file image_streamer.cpp.
std::string web_video_server::ImageTransportImageStreamer::default_transport_ [protected] |
Definition at line 66 of file image_streamer.h.
Reimplemented from web_video_server::ImageStreamer.
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.
Definition at line 73 of file image_streamer.h.
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.