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

map.yaml resolution parameter

asked 2021-04-25 20:52:07 -0500

Chan gravatar image

Hi all, I want to know what is the resolution parameter in map.yaml file. I read the documentation and it just says that "it is the resolution of the map, meters/pixels". I don't really understand what it means. What happens if I change the resolution? Does it increase or decrease the size or the map or it just increases the number of pixels? Also, what is the range of values that can be given here? There is no proper explanation in the documentation. Please help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-04-26 06:33:42 -0500

aarsh_t gravatar image

updated 2021-04-26 08:03:38 -0500

It is mapping in between real size and pixelated size.

Resolution parameter used to define your mapped area virtually. suppose you has room of size 10m x 10m and you have mapped that room with your robot. so now you have occupancy grid of that room and want to use it in simulation.

Suppose your Occupancy grid image size is 1000 pixel by 1000 pixel.

now to adjust your pixelated occupancy grid to original size, your resolution should be 10/1000 = 0.01

In conclusion, resolution = Real size(in meters) / pixelated size

edit flag offensive delete link more

Comments

Great explanation. How does the size of the occupancy grid gets determined?

Chan gravatar image Chan  ( 2021-04-26 08:28:33 -0500 )edit

go through this. Hope you will find your answer here.

aarsh_t gravatar image aarsh_t  ( 2021-04-26 11:13:06 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-04-25 20:52:07 -0500

Seen: 840 times

Last updated: Apr 26 '21