(1)报错:
a message of over a gigabyte was predicted in tcpros. that seems highly unlikely, so I’ll assume protocol synchronization is lost.
意思是:据预测,ros通过tcp协议传输的的信息超过1千兆字节(1G字节)。这似乎极不可能,因此我假设协议同步丢失。
于是就看不到自己用ros传输的消息、话题等数据了。
(2)原因分析:
查找自己写的c++文件,发现起点和终点构成一个矩形且需要起点的x、y值均小于终点的x、y值,本次终端打印起点和终点坐标如下,发现并不满足上述条件(起点y值大于终点y值),即出现数组溢出或需要出现正值的地方出现了负值。
起点坐标:(15.6724, 90.3983)
终点坐标:(64.9742, 46.3123)
[ERROR] [1662091113.323537561]: a message of over a gigabyte was predicted in tcpros. that seems highly unlikely, so I'll assume protocol synchronization is lost.
于是我把起点都放在终点的左下角就没有问题了
建议自己去对照查看一下源码
(3)对比分析:
认为原因是:
As the error message indicates, it means that the connection some how became out-of-sync. This could potentially happen if streaming between multiple computers and somehow the libraries are not the same, or something even more esoteric.
如错误消息所示,这意味着连接在某种程度上变得不同步。如果在多台计算机之间进行流式传输并且库以某种方式不相同,或者更深奥的东西,这可能会发生。
即ros在多台计算机、不同步传输等情况下传输数据时,会出现这些情况
其他github等上的关于该问题的回复都没什么用 。。。
评论(0)
您还未登录,请登录后发表或查看评论