#include <ros_compressed_streamer.h>
Public Member Functions | |
virtual void | restreamFrame (double max_age) |
RosCompressedStreamer (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh) | |
virtual void | start () |
~RosCompressedStreamer () | |
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 | sendImage (const sensor_msgs::CompressedImageConstPtr &msg, const ros::Time &time) |
Private Member Functions | |
void | imageCallback (const sensor_msgs::CompressedImageConstPtr &msg) |
Private Attributes | |
ros::Subscriber | image_sub_ |
ros::Time | last_frame |
sensor_msgs::CompressedImageConstPtr | last_msg |
boost::mutex | send_mutex_ |
MultipartStream | stream_ |
Additional Inherited Members | |
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_ |
Definition at line 13 of file ros_compressed_streamer.h.
web_video_server::RosCompressedStreamer::RosCompressedStreamer | ( | const async_web_server_cpp::HttpRequest & | request, |
async_web_server_cpp::HttpConnectionPtr | connection, | ||
ros::NodeHandle & | nh | ||
) |
Definition at line 6 of file ros_compressed_streamer.cpp.
web_video_server::RosCompressedStreamer::~RosCompressedStreamer | ( | ) |
Definition at line 13 of file ros_compressed_streamer.cpp.
|
private |
Definition at line 74 of file ros_compressed_streamer.cpp.
|
virtual |
Restreams the last received image frame if older than max_age.
Implements web_video_server::ImageStreamer.
Definition at line 24 of file ros_compressed_streamer.cpp.
|
protectedvirtual |
Definition at line 35 of file ros_compressed_streamer.cpp.
|
virtual |
Implements web_video_server::ImageStreamer.
Definition at line 19 of file ros_compressed_streamer.cpp.
|
private |
Definition at line 29 of file ros_compressed_streamer.h.
|
private |
Definition at line 30 of file ros_compressed_streamer.h.
|
private |
Definition at line 31 of file ros_compressed_streamer.h.
|
private |
Definition at line 32 of file ros_compressed_streamer.h.
|
private |
Definition at line 28 of file ros_compressed_streamer.h.