Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
web_video_server::RosCompressedStreamer Class Reference

#include <ros_compressed_streamer.h>

Inheritance diagram for web_video_server::RosCompressedStreamer:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Definition at line 13 of file ros_compressed_streamer.h.


Constructor & Destructor Documentation

Definition at line 6 of file ros_compressed_streamer.cpp.

Definition at line 13 of file ros_compressed_streamer.cpp.


Member Function Documentation

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.

Implements web_video_server::ImageStreamer.

Definition at line 19 of file ros_compressed_streamer.cpp.


Member Data Documentation

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.

Definition at line 32 of file ros_compressed_streamer.h.

Definition at line 28 of file ros_compressed_streamer.h.


The documentation for this class was generated from the following files:


web_video_server
Author(s): Mitchell Wills
autogenerated on Thu Jun 6 2019 18:02:48