通過(guò)ros系統(tǒng)中websocket中發(fā)送sensor_msgs::Image數(shù)據(jù)給web端顯示(一)
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-811077.html
?圖片數(shù)據(jù)轉(zhuǎn)成base64編碼方式文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-811077.html
#include <ros/ros.h>
#include <signal.h>
#include <sensor_msgs/Image.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/time_synchronizer.h>
#include <functional>
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
#include <iostream>
#include <chrono>// 頭文件用于時(shí)間相關(guān)操作
#include <thread>
#include <unordered_set>
#include <memory>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <cv_bridge/cv_bridge.h>
#include <boost/thread.hpp>
#include <std_msgs/String.h>
#include <future>
using namespace std;
class WebSocketServer {
pr
到了這里,關(guān)于通過(guò)ros系統(tǒng)中websocket中發(fā)送sensor_msgs::Image數(shù)據(jù)給web端顯示的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!