Class ImageTransportImageStreamer

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class ImageTransportImageStreamer : public web_video_server::ImageStreamer

Subclassed by web_video_server::JpegSnapshotStreamer, web_video_server::LibavStreamer, web_video_server::MjpegStreamer, web_video_server::PngSnapshotStreamer, web_video_server::PngStreamer

Public Functions

ImageTransportImageStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::SharedPtr node)
virtual ~ImageTransportImageStreamer()
virtual void start()

Protected Functions

virtual cv::Mat decodeImage(const sensor_msgs::msg::Image::ConstSharedPtr &msg)
virtual void sendImage(const cv::Mat&, const std::chrono::steady_clock::time_point &time) = 0
virtual void restreamFrame(std::chrono::duration<double> max_age)

Restreams the last received image frame if older than max_age.

virtual void initialize(const cv::Mat&)

Protected Attributes

image_transport::Subscriber image_sub_
int output_width_
int output_height_
bool invert_
std::string default_transport_
std::string qos_profile_name_
std::chrono::steady_clock::time_point last_frame_
cv::Mat output_size_image
std::mutex send_mutex_