local costmap是一个依赖于其他坐标系存在的坐标系统,它并不维护自己的坐标系,而是在另一个坐标系中设定坐标原点,然后记下自己的宽与高。它使用数据结构nav_msgs/OccupancyGrid来记录:

std_msgs/Header header
uint32 seq
time stamp
string frame_id
nav_msgs/MapMetaData info
time map_load_time
float32 resolution
uint32 width
uint32 height
geometry_msgs/Pose origin
geometry_msgs/Point position
float64 x
float64 y
float64 z
geometry_msgs/Quaternion orientation
float64 x
float64 y
float64 z
float64 w
int8[] data

值得注意的是,对于local costmap,这个数据结构中的position坐标指的是costmap的右下角的点在配置的frame中的坐标。

配置的示例如下:

local_costmap:
#We'll publish the voxel grid used by this costmap
publish_voxel_map: true #Set the global and robot frames for the costmap
global_frame: odom
robot_base_frame: base_link #Set the update and publish frequency of the costmap
update_frequency: 5.0
publish_frequency: 2.0 #We'll configure this costmap to be a rolling window... meaning it is always
#centered at the robot
static_map: false
rolling_window: true
width: 6.0
height: 6.0
resolution: 0.025
origin_x: 0.0
origin_y: 0.0

其中,global_frame即是依赖的坐标系的配置,默认是“odom”,但推荐改为“map”,因为可以方便的用于各种自定义的运算。

最新文章

  1. 【皇甫】☀ TreeSet
  2. X-Cart 学习笔记(二)X-Cart框架1
  3. 查询Oracle锁表和解决方法
  4. 数据结构与算法分析 - 最短路(Dijkstra+floyd_Warshall+bellman_ford)
  5. 转:jQuery插件开发精品教程,让你的jQuery提升一个台阶
  6. Spark源码系列(二)RDD详解
  7. SQL Server 2008 过期
  8. POJ 1006 - Biorhythms (中国剩余定理)
  9. Difference between _, __ and __xx__ in Python
  10. form和validate示例
  11. jQuery EasyUI Combobox无法检索中文输入的问题
  12. 畅谈Spring设计哲学
  13. 深入浅出scanf、getcha、gets、cin函数
  14. 简单的java mail发送邮件实例
  15. webpack 相关资料
  16. Database学习 - mysql 视图/触发器/函数
  17. jQuery+php+Ajax文章列表点击加载更多功能
  18. 微软的wp版remotedesktop第三方库居然用了openssl和苹果的东西
  19. [20171225]没有备份数据文件的恢复.txt
  20. 使用express框架和mongoose在MongoDB更新数据

热门文章

  1. windows下用easybcd引导ubuntu出现grub的解决方案
  2. 【Spring】org.springframework.web.context.ContextLoaderListen 报错
  3. Chrome 跨域 disable-web-security 关闭安全策略
  4. ProcessBuilder waitFor 调用外部应用
  5. git_stats安装及使用
  6. Linux基础用户管理
  7. 48.QT-网络通信讲解1
  8. 在 树莓派(Raspberry PI) 中使用 Docker 运行 aspnetcore/dotnetcore 应用
  9. sharding demo 读写分离 U (分库分表 & 不分库只分表)
  10. Spark 系列(八)—— Spark SQL 之 DataFrame 和 Dataset