“ARNING: no messages received and simulated time is active”解决办法

本文探讨了在使用ROS节点时遇到的问题,其中一个节点发布scan消息,另一个为polar_scan_matcher。当两个节点同时运行时,发布scan消息的节点被阻塞,并提示警告信息:未收到消息且模拟时间已激活。文章分析了问题原因可能是由于use_sim_time参数被误设为true,但系统中没有合适的时间源(如rosbag play --clock或Gazebo)。文中提供了检查use_sim_time参数状态的方法及如何修正此设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I am running 2 nodes. One is polar_scan_matcher and the other one is my own node that publishes scan messages. Something is wrong somewhere because when the 2 nodes run at the same time, the publisher of the scan messages is being block as I received an error saying "WARNING: no messages received and simulated time is active. Is /clock being published?" when I run "rostopic echo -c /scan"

It looks like you've somehow set the "use_sim_time" parameter to true, but you don't have a clock source (ie: rosbag play --clock or some other source, like Gazebo).

Since you're using tf, WallTime isn't an option.

You can check the status of the use_sim_time parameter by using rosparam.

rosparam get use_sim_time

And if it is set somehow, you can reverse it by running:

rosparam set use_sim_time false
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值