Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
web_video_server::RosCompressedStreamer Class Reference

#include <ros_compressed_streamer.h>

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

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_
 

Detailed Description

Definition at line 13 of file ros_compressed_streamer.h.

Constructor & Destructor Documentation

◆ RosCompressedStreamer()

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.

◆ ~RosCompressedStreamer()

web_video_server::RosCompressedStreamer::~RosCompressedStreamer ( )

Definition at line 13 of file ros_compressed_streamer.cpp.

Member Function Documentation

◆ imageCallback()

void web_video_server::RosCompressedStreamer::imageCallback ( const sensor_msgs::CompressedImageConstPtr &  msg)
private

Definition at line 74 of file ros_compressed_streamer.cpp.

◆ restreamFrame()

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.

◆ sendImage()

void web_video_server::RosCompressedStreamer::sendImage ( const sensor_msgs::CompressedImageConstPtr &  msg,
const ros::Time time 
)
protectedvirtual

Definition at line 35 of file ros_compressed_streamer.cpp.

◆ start()

void web_video_server::RosCompressedStreamer::start ( )
virtual

Implements web_video_server::ImageStreamer.

Definition at line 19 of file ros_compressed_streamer.cpp.

Member Data Documentation

◆ image_sub_

ros::Subscriber web_video_server::RosCompressedStreamer::image_sub_
private

Definition at line 29 of file ros_compressed_streamer.h.

◆ last_frame

ros::Time web_video_server::RosCompressedStreamer::last_frame
private

Definition at line 30 of file ros_compressed_streamer.h.

◆ last_msg

sensor_msgs::CompressedImageConstPtr web_video_server::RosCompressedStreamer::last_msg
private

Definition at line 31 of file ros_compressed_streamer.h.

◆ send_mutex_

boost::mutex web_video_server::RosCompressedStreamer::send_mutex_
private

Definition at line 32 of file ros_compressed_streamer.h.

◆ stream_

MultipartStream web_video_server::RosCompressedStreamer::stream_
private

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 Wed Mar 2 2022 01:13:36