|
@@ -1,35 +0,0 @@
|
|
|
-#include "mqtt_communication.h"
|
|
|
-
|
|
|
-void Tof3DMqttAsyncClient::init(const std::string &file) {
|
|
|
- m_message_arrived_callback_ = CloudDataArrived;
|
|
|
-
|
|
|
- MqttAsyncClient::init_from_proto(file);
|
|
|
-
|
|
|
-// condit = new Thread_condition();
|
|
|
-//
|
|
|
-// t = new std::thread(&Tof3DMqttAsyncClient::run, this);
|
|
|
-//
|
|
|
-// condit->notify_all(true);
|
|
|
-}
|
|
|
-
|
|
|
-// 识别结果数据包含识别结果、时间序号、具体识别信息
|
|
|
-int Tof3DMqttAsyncClient::CloudDataArrived(MqttAsyncClient *client, char *topicName, int topicLen,
|
|
|
- MQTTAsync_message *message) {
|
|
|
- // 1、查看识别结果
|
|
|
-
|
|
|
- // 2、队列取数据
|
|
|
-// cv::Mat merge_mat = cv::Mat::zeros(480 * 2, 640 * 2, CV_8UC1);
|
|
|
-// memcpy(merge_mat.data, message->payload, message->payloadlen);
|
|
|
-// cv::imshow("receive", merge_mat);
|
|
|
- LOG(INFO) << topicName;
|
|
|
-
|
|
|
- // 3、分离出四份点云
|
|
|
-
|
|
|
- // 4、发送对应队列
|
|
|
-
|
|
|
- return 1;
|
|
|
-}
|
|
|
-
|
|
|
-void Tof3DMqttAsyncClient::run() {
|
|
|
-
|
|
|
-}
|