1 #ifndef ROS_COMPRESSED_STREAMERS_H_ 2 #define ROS_COMPRESSED_STREAMERS_H_ 4 #include <sensor_msgs/CompressedImage.h> 6 #include "async_web_server_cpp/http_request.hpp" 7 #include "async_web_server_cpp/http_connection.hpp" 16 RosCompressedStreamer(
const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection,
24 virtual void sendImage(
const sensor_msgs::CompressedImageConstPtr &msg,
const ros::Time &time);
27 void imageCallback(
const sensor_msgs::CompressedImageConstPtr &msg);
39 async_web_server_cpp::HttpConnectionPtr connection,
41 std::string create_viewer(
const async_web_server_cpp::HttpRequest &request);
virtual void restreamFrame(double max_age)
virtual void sendImage(const sensor_msgs::CompressedImageConstPtr &msg, const ros::Time &time)
sensor_msgs::CompressedImageConstPtr last_msg
RosCompressedStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
void imageCallback(const sensor_msgs::CompressedImageConstPtr &msg)
ros::Subscriber image_sub_