Class StreamerBase
Defined in File streamer.hpp
Inheritance Relationships
Base Type
public web_video_server::StreamerInterface(Class StreamerInterface)
Derived Types
public web_video_server::streamers::ImageTransportStreamerBase(Class ImageTransportStreamerBase)public web_video_server::streamers::RosCompressedSnapshotStreamer(Class RosCompressedSnapshotStreamer)public web_video_server::streamers::RosCompressedStreamer(Class RosCompressedStreamer)
Class Documentation
-
class StreamerBase : public web_video_server::StreamerInterface
A base class providing common functionality for streamers.
Subclassed by web_video_server::streamers::ImageTransportStreamerBase, web_video_server::streamers::RosCompressedSnapshotStreamer, web_video_server::streamers::RosCompressedStreamer
Public Functions
-
StreamerBase(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::WeakPtr node, std::string logger_name = "streamer")
-
inline virtual bool is_inactive() override
Returns true if the streamer is inactive and should be deleted.
This could be because the connection was closed or snapshot was successfully sent (in case of snapshot streamers).
-
inline virtual std::string get_topic() override
Returns the topic being streamed.
Protected Functions
-
rclcpp::Node::SharedPtr lock_node() const
-
StreamerBase(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::WeakPtr node, std::string logger_name = "streamer")