#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 () | |
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_ |
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.
Definition at line 13 of file ros_compressed_streamer.cpp.
void web_video_server::RosCompressedStreamer::imageCallback | ( | const sensor_msgs::CompressedImageConstPtr & | msg | ) | [private] |
Definition at line 74 of file ros_compressed_streamer.cpp.
void web_video_server::RosCompressedStreamer::restreamFrame | ( | double | max_age | ) | [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.
void web_video_server::RosCompressedStreamer::sendImage | ( | const sensor_msgs::CompressedImageConstPtr & | msg, |
const ros::Time & | time | ||
) | [protected, virtual] |
Definition at line 35 of file ros_compressed_streamer.cpp.
void web_video_server::RosCompressedStreamer::start | ( | ) | [virtual] |
Implements web_video_server::ImageStreamer.
Definition at line 19 of file ros_compressed_streamer.cpp.
Reimplemented from web_video_server::ImageStreamer.
Definition at line 29 of file ros_compressed_streamer.h.
Definition at line 30 of file ros_compressed_streamer.h.
sensor_msgs::CompressedImageConstPtr web_video_server::RosCompressedStreamer::last_msg [private] |
Definition at line 31 of file ros_compressed_streamer.h.
boost::mutex web_video_server::RosCompressedStreamer::send_mutex_ [private] |
Definition at line 32 of file ros_compressed_streamer.h.
Definition at line 28 of file ros_compressed_streamer.h.