标签:几何 定位 原来 div lam code range channels bmp
ros-mapserver
ArMap Map file format
Resize the static map
setup map yaml file
Aria Docs: Maps
ArMap file formats
image: testmap.png
# 使用相对或绝对路径
resolution: 0.1
# 分辨率 0.1m/pixel
origin: [0.0, 0.0, 0.0]
# 图像的左下角(边界)在地图中的坐标
occupied_thresh: 0.65
# 判断像素格是否为障碍的阈值
free_thresh: 0.196
# 判断是否为自由空间的阈值
negate: 0
# 一般情况下,黑色为障碍物,白色为自由空间
width: 20 # m Don‘t forget to create a file with 2000 pixel width
height: 20 # m Don‘t forget to create a file with 2000 pixel height
global_costmap:
global_frame: /map
robot_base_frame: /base_link
update_frequency: 3.0
publish_frequency: 0.0 # For a static global map, there is generally no need to continually publish it
static_map: true # This parameter and the next are always set to opposite values. The global map is usually static so we set static_map to true
rolling_window: false # The global map is generally not updated as the robot moves to we set this parameter to false
resolution: 0.01
transform_tolerance: 1.0
map_type: costmap
width: 20 # m Don‘t forget to create a file with 2000 pixel width
height: 20 # m Don‘t forget to create a file with 2000 pixel width
rosrun map_server map_server mymap.yaml
<!-- Run the map server -->
<node name="map_server" pkg="map_server" type="map_server" args="/tmp/my_map_waalre.yaml" />
image: 4F-sim.png
resolution: 0.050000
origin: [0, 0, 0]
negate: 0
occupied_thresh: 0.65 # 无关紧要
free_thresh: 0.196 # # 无关紧要
width: 141.75
height: 118.8
注意:Windows自带画图程序,也可以修改图片分辨率,但是并没有将已有像素图形放大,而是简单扩展了图片边界,使得图形外围全部是白色像素
标签:几何 定位 原来 div lam code range channels bmp
原文地址:https://www.cnblogs.com/lizhensheng/p/11117543.html