Gmapping建图后的定位问题

描述

问题:启动定位命令roslaunch ir100_navigation ir100_navigation.launch map_file:=/home/shansu/Maps/map_201221.yaml后,定位失败,该命令出现黄色错误提示

[ WARN] [1608643242.312506820]: Illegal bounds change, was [tl: (-9.987500, -37.187500), br: (713623846352979940529142984724747568191373312.000000, 23146046965300666183608945726444504251828513585971978454433792.000000)], but is now [tl: (-340282346638528859811704183484516925440.000000, -340282346638528859811704183484516925440.000000), br: (340282346638528859811704183484516925440.000000, 340282346638528859811704183484516925440.000000)]. The offending layer is global_costmap/inflation_layer

[ WARN] [1608645220.767420783]: The origin for the sensor at (-2854495385411919762116571938898990272765493248.00, 23146046367709354040493558439325444449698762638727658063527936.00) is out of map bounds. So, the costmap cannot raytrace for it.

rviz显示错误

rviz: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.
Aborted (core dumped)

解决方案

costmap_common_params.yaml文件添加一行inf_is_valid: true,结果无效

scan:
    data_type: LaserScan
    topic: /scan
    sensor_fram: base_link
    marking: true
    clearing: true
    min_obstacle_height: -0.5
    max_obstacle_height: 0.5
    inf_is_valid: true  # 添加此行

min_obstacle_height: -0.5更改为min_obstacle_height: 0,成功解决

参考链接

https://blog.csdn.net/u013468614/article/details/83386987

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值