恢复行为清除障碍层 [英] Recovery behavior clears the obstacle layer

查看:485
本文介绍了恢复行为清除障碍层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将RP-Lidar/scan主题与导航堆栈中的move_base一起使用.尽管已对障碍层进行了参数化以从/scan主题获取LaserScan类型数据,但我收到的消息是恢复行为将清除层'障碍'".我想提到在/scan主题和/odom主题上的UniTest运行正常.因此,在我的RVIZ中,没有显示障碍物,规划者也没有考虑到障碍物以防止碰撞. 为了清楚起见,这是我的常用配置文件:

I am using RP-Lidar /scan topic together with move_base from navigation stack. Although the obstacle layer is parameterized to get the LaserScan type data from /scan topic, I am recieving the message that "Recover behavior will clear layer 'obstacles'". I would like to mention that the UniTest over /scan topic and /odom topic are working fine. Thus in my RVIZ, the obstacle are not shown neither the planner takes them into account to prevent a collision. For clarity here is my common config file:

footprint: [ [-0.15,-0.15], [0.15,-0.15], [0.15,0.15], [-0.15,0.15] ]
transform_tolerance: 0.5
map_type: costmap
obstacle_layer:
 enabled: true
 obstacle_range: 3.0
 raytrace_range: 3.5
 inflation_radius: 0.2
 track_unknown_space: false
 combination_method: 1
 observation_sources: laser_scan_sensor
 laser_scan_sensor: {sensor_frame: scanmatcher_frame, data_type: LaserScan, topic: /scan, marking: true, clearing: false}
inflation_layer:
  enabled:              true
  cost_scaling_factor:  1.0  
  inflation_radius:     0.2
obstacle_layer:
     enabled: true
     obstacle_range: 5.0
     raytrace_range: 1.0
     observation_sources: "/scan"
     observation_persistence: 0.0
     inf_is_valid: false
     scan:
       data_type: LaserScan
       topic: scan  

推荐答案

您的observation_sources应该是scan而不是"/scan".

障碍层Wiki 中所述:

以空格分隔的观测源名称列表.这定义 下面定义的每个名称空间.每个source_name 在observation_sources中定义一个可以在其中命名参数的名称空间 设置:

A list of observation source names separated by spaces. This defines each of the namespaces defined below. Each source_name in observation_sources defines a namespace in which parameters can be set:

〜//topic(字符串,默认值:source_name)

~//topic (string, default: source_name)

为此来源输入传感器数据的主题.默认为 来源名称.

The topic on which sensor data comes in for this source. Defaults to the name of the source.

这篇关于恢复行为清除障碍层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆