Class ImageStreamer

Inheritance Relationships

Derived Types

Class Documentation

class ImageStreamer

Subclassed by web_video_server::ImageTransportImageStreamer, web_video_server::RosCompressedStreamer

Public Functions

ImageStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::SharedPtr node)
virtual void start() = 0
virtual ~ImageStreamer()
inline bool isInactive()
virtual void restreamFrame(std::chrono::duration<double> max_age) = 0

Restreams the last received image frame if older than max_age.

inline std::string getTopic()

Protected Attributes

async_web_server_cpp::HttpConnectionPtr connection_
async_web_server_cpp::HttpRequest request_
rclcpp::Node::SharedPtr node_
bool inactive_
image_transport::Subscriber image_sub_
std::string topic_