启动仿真环境及各种节点(amcl,move_base,map_server)后,在rviz中设定机器人的目标位置,后台日志报错
[ INFO] [1571974242.864525935, 40.511000000]: Got new plan
[ERROR] [1571974242.964186066, 40.612000000]: Extrapolation Error: Lookup would require extrapolation into the future. Requested time 40.585000000 but the latest data is at time 40.521000000, when looking up transform from frame [odom] to frame [map]
解决:move_base的包的版本有问题(用的是melodic),用kinetic的版本,重新加到navigation的文件夹下,重新编译即可
下载地址:https://github.com/ros-planning/navigation
问题2:
[WARN]Map update loop missed its desired rate of 10.0000Hz... the loop actually to took 0.1665 seconds
解决:修改move_base.launch文件中的频率,使其低于实际的回环的频率即可,这里改为5Hz就可以了
<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
<param name="base_local_planner" value="dwa_local_planner/DWAPlannerROS" />
<param name="controller_frequency" value="5.0"/>
<param name="controller_patiente" value="15.0"/>
问题4:
gazebo仿真可以用来建图,但是进行amcl定位的时候,不需要开gazebo仿真环境(重点是很耗内存,电脑风扇一度呼呼直响~~),还必须得开高性能模式,不然根本起不来
-----------更新
问题3:
[ WARN] [1571977808.693309245, 5.969000000]: local_costmap: Parameter "plugins" not provided, loading pre-Hydro parameters
时间比较久,复现不了问题,建议移步下面的链接解决
https://answers.ros.org/question/343886/plugin-warning-in-move_base/