ROS Navigation-----costmap_2d之range_sensor_layer简介

1 概述

   range_sensor_layer是costmap_2d中LayeredCostmap的一个插件,使用消息类型是 sensor_msgs/Range ,适用于声呐和红外传感器数据传输。

   这种Range消息使用概率模型被引入到了代价地图中, 如果cell的概率比mark_threshold高则在主代价地图被标记为lethal obstacles,反之如果cell的概率比clear_threshold低则在主代价地图被标记为free space。

2 API

2.1 Subscribed Topics
"topics" ( sensor_msgs/Range)
  • 距离传感器数据
2.2 Parameters
ns ( string, default: "")
  • 命名空间,用作所有topic的前缀
topics ( Array of strings, default: ['/sonar'])
  • 列举可以订阅的距离topic
no_readings_timeout ( double, default: 0.0)
  • 如果是0,该参数不起作用,否则如果层在该参数指定时间内没有收到传感器任何数据,层会给出告警并被标记为没有数据流。
clear_threshold ( double, default: .2)
  • 概率比clear_threshold低的cell在master costmap被标记为free空间
mark_threshold ( double, default: .8)
  • 概率比mark_threshold高的cell在master costmap中被标记为lethal obstacles
clear_on_max_reading ( bool, default: false)
  • Whether to clear the sensor readings on max. range

3 用法

This layer can be used by adding the following values to the plugins parameter in your costmap.

      - {name: sonar,   type: "range_sensor_layer::RangeSensorLayer"}
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值