ros仿真过程中可能会出现类似错误,雷达数据收不到。
MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.gmapping.message_filter] rosconsole logger to DEBUG for more information.
原因主要有:
1.turtlebot3_lds_2d.lua没有按需求更改
turtlebot3_lds_2d.lua文件中
tracking_frame = "base_footprint", -- imu_link, If you are using gazebo, use 'base_footprint' (libgazebo_ros_imu's bug)
根据后面的提示更改frame
2. 仿真时间设置问题
在文件中添加以下语句:(使用仿真时间)
<arg name="use_sim_time" value="true"/>
记录一下,防止忘记。
本文探讨了在ROS仿真过程中雷达数据收不到的常见问题,涉及turtlebot3_lds_2d.lua配置调整和仿真时间设置。通过修改tracking_frame并启用use_sim_time,解决可能遇到的bug和调试技巧。
4884





