ros_navigation 加入禁区辅助导航

北城以北 提交于 2020-10-02 02:33:44

1

一种方法尝试david lu, costmap_forbidden_layer

2

加入一张禁区的static map, 一些机器人公司也用了这个思路设计, 比如fetch

## costmap
map_layer:
  map_topic: /map
nogo_layer:
  map_topic: /map_nogo

## config
global_costmap:
  update_frequency: 5.0
  static_map: true
  rolling_window: false
  plugins:  
    - {
   
   name: map_layer, type: "costmap_2d::StaticLayer"}
    - {
   
   name: nogo_layer, type: "costmap_2d::StaticLayer"}
    - {
   
   name: obstacle_layer, type: "costmap_2d::VoxelLayer"}
    - {
   
   name: inflation_layer, type: "costmap_2d::InflationLayer"}


local_costmap:
  update_frequency: 5.0
  publish_frequency: 2.0
  static_map: false
  rolling_window: true
  width: 4.0
  height: 4.0
  resolution: 0.02
  plugins:  
    - {
   
   name: obstacle_layer, type: "costmap_2d::VoxelLayer"}
    - {
   
   name: inflation_layer, type: "costmap_2d::InflationLayer"}

3

costmap中的光线投射方法两个点之间划线 raytrace cast, Bresenham

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!