ros_rtsp/include/image2rtsp.h

27 lines
822 B
C
Raw Normal View History

2018-09-24 03:15:17 -03:00
#ifndef IMAGE_TO_RTSP_H
#define IMAGE_TO_RTSP_H
namespace image2rtsp {
class Image2RTSPNodelet : public nodelet::Nodelet {
public:
GstRTSPServer *rtsp_server;
void onInit();
2018-09-27 01:34:48 -03:00
void url_connected(std::string url);
2018-09-24 03:15:17 -03:00
void url_disconnected(std::string url);
void print_info(char *s);
void print_error(char *s);
private:
2018-09-27 01:34:48 -03:00
std::map<std::string, ros::Subscriber> subs;
std::map<std::string, GstAppSrc*> appsrc;
std::map<std::string, int> num_of_clients;
2018-09-24 03:15:17 -03:00
GstCaps* gst_caps_new_from_image(const sensor_msgs::Image::ConstPtr &msg);
2018-09-27 01:34:48 -03:00
void imageCallback(const sensor_msgs::Image::ConstPtr& msg, const std::string& topic);
2018-09-24 03:15:17 -03:00
void video_mainloop_start();
void rtsp_server_add_url(const char *url, const char *sPipeline, GstElement **appsrc);
GstRTSPServer *rtsp_server_create();
};
}
#endif