Ecal基于wifi下跨机通讯

4. Network configuration — Eclipse eCAL™

UDP无法通信,改成TCP配置可以通信,但是没有重连。

Ecal版本:5.12稳定

Ecal基于wifi下跨机通讯_第1张图片

WIFI连接eCAL Cloud Configuration Not Sending/Receiving Data Correctly · Issue #650 · eclipse-ecal/ecal · GitHub

Ecal基于wifi下跨机通讯_第2张图片

一开始会出现这样的情况:

[libprotobuf ERROR D:\a\ecal\ecal\thirdparty\protobuf\src\google\protobuf\wire_format_lite.cc:577] String field 'eCAL.pb.LogMessage.content' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.

出现的原因:

代码里增加了配置:

m_point_pub->SetLayerMode(eCAL::TLayer::tlayer_all, eCAL::TLayer::smode_off);

// switch unicast layer on
m_point_pub->SetLayerMode(eCAL::TLayer::tlayer_tcp, eCAL::TLayer::smode_on);

报错:attribute 'dllimport' cannot be applied to a deleted function

Ecal基于wifi下跨机通讯_第3张图片

原因是因为MVSC使用clang编译器编译导致,屏蔽即可。

#set_target_properties(lidar_receiver PROPERTIES VS_PLATFORM_TOOLSET "ClangCL") 

你可能感兴趣的:(网络数据传输,编程,网络)