|
@@ -39,6 +39,11 @@ using org::jeecg::defsDetails::grpc::CtrlMode;
|
|
|
DataExchangeClient::DataExchangeClient(std::shared_ptr<Channel> channel)
|
|
|
{
|
|
|
stub_ = DataExchange::NewStub(channel);
|
|
|
+
|
|
|
+ mpa = new iv::modulecommext::modulecommmsg<iv::vision::rawpic>();
|
|
|
+
|
|
|
+ ModuleExtFun funext = std::bind(&DataExchangeClient::ListenPicMsg,this,std::placeholders::_1);
|
|
|
+ mpa->RegisterRecvPlus(shmPicFront.mstrmsgname,funext);
|
|
|
}
|
|
|
|
|
|
DataExchangeClient::~DataExchangeClient(void)
|
|
@@ -48,9 +53,7 @@ DataExchangeClient::~DataExchangeClient(void)
|
|
|
|
|
|
void DataExchangeClient::CameraPicRecv()
|
|
|
{
|
|
|
- mpa = new iv::modulecommext::modulecommmsg<iv::vision::rawpic>();
|
|
|
- ModuleExtFun funext = std::bind(&DataExchangeClient::ListenPicMsg,this,std::placeholders::_1);
|
|
|
- mpa->RegisterRecvPlus(shmPicFront.mstrmsgname,funext);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
void DataExchangeClient::ListenPicMsg(google::protobuf::Message &xmsg) // need a lock
|