ros(29):a message of over a gigabyte was predicted in tcpros. that seems highly unlikely, so I‘ll as

(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)对比分析:

What does "message of over a gigabyte was predicted in tcpros" mean? - ROS Answers: Open Source Q&A Forum

认为原因是: 

 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等上的关于该问题的回复都没什么用 。。。

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值