ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to access yaml map data?

asked 2022-07-16 08:42:23 -0500

peyman1372 gravatar image

generally, the yaml file of map is something like below,

image: map.pgm
resolution: 0.050000
origin: [-3,-3,0]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196

now i need the map for localization, to solve localization problem i need to access the data of map and compare to laser scan in each iteration, however the yaml map does include data of map. how can i access the data of a saved map in yaml format? thank you in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2022-07-16 15:11:09 -0500

Mike Scheutzow gravatar image

The map_server publishes the most useful metadata. The wiki documentation is clearly written.

http://wiki.ros.org/map_server#Publis...

edit flag offensive delete link more
0

answered 2022-07-16 09:24:30 -0500

BlakeAnderson gravatar image

The yaml file only contains the metadata about the map. The actual map data is in a separate png file referenced by the metadata. This is the ‘image’ parameter of the yaml file.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-07-16 08:42:23 -0500

Seen: 154 times

Last updated: Jul 16 '22