Class RosCompressedSnapshotStreamerFactory

Inheritance Relationships

Base Type

Class Documentation

class RosCompressedSnapshotStreamerFactory : public web_video_server::SnapshotStreamerFactoryInterface

Public Functions

inline virtual std::string get_type()

Returns the type of streamer created by this factory.

This should match the “type” query parameter used to select the streamer.

virtual std::shared_ptr<StreamerInterface> create_streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::WeakPtr node)

Creates a new Streamer instance.

Parameters:
  • request – The HTTP request that initiated the streamer.

  • connection – The HTTP connection to use for streaming.

  • node – The ROS2 node to use for subscribing to topics.

Returns:

A shared pointer to the created Streamer instance.

virtual std::vector<std::string> get_available_topics(rclcpp::Node &node)

Returns a list of available topics that can be streamed by this streamer.

Parameters:

node – The ROS2 node to use for discovering topics.

Returns:

A vector of topic names.