Go to the documentation of this file. 1 #ifndef WEB_VIDEO_SERVER_H_
2 #define WEB_VIDEO_SERVER_H_
12 #define ROS_HAS_STEADYTIMER (ROS_VERSION_MINIMUM(1, 13, 1) || ((ROS_VERSION_MINOR == 12) && (ROS_VERSION_PATCH >= 8)))
57 #if ROS_HAS_STEADYTIMER || defined USE_STEADY_TIMER
70 std::map<std::string, boost::shared_ptr<ImageStreamerType> >
stream_types_;
bool handle_stream_viewer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
void cleanup_inactive_streams()
boost::mutex subscriber_mutex_
virtual ~WebVideoServer()
Destructor - Cleans up.
boost::shared_ptr< async_web_server_cpp::HttpServer > server_
bool handle_list_streams(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
bool handle_stream(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
WebVideoServer(ros::NodeHandle &nh, ros::NodeHandle &private_nh)
Constructor.
std::vector< boost::shared_ptr< ImageStreamer > > image_subscribers_
ros::Timer cleanup_timer_
void spin()
Starts the server and spins.
std::map< std::string, boost::shared_ptr< ImageStreamerType > > stream_types_
void restreamFrames(double max_age)
bool handle_snapshot(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end)
async_web_server_cpp::HttpRequestHandlerGroup handler_group_
web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Mar 2 2022 01:13:36