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

How to change width of the map generated by Gmapping [closed]

asked 2013-02-24 00:31:01 -0500

updated 2013-02-24 00:31:33 -0500

When in use gmappung package to create a map it makes a map of 4000X000. Is there a way to change this value??? I need a smaller map like 512X512 . I have tried changing xmin,ymin,xmax,ymax parameters..but still map is of same size.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ayush_dewan
close date 2013-02-24 18:53:07

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-24 01:25:18 -0500

dornhege gravatar image

The parameters you mention are the correct ones to set. How exactly did you set them?

edit flag offensive delete link more


By default its -100 and 100 for both x and y so i changed them to -50 to 50 but still when i save map using map_saver it says received a map of size 4000x4000..

ayush_dewan gravatar image ayush_dewan  ( 2013-02-24 01:27:01 -0500 )edit

How do you set this up/run gmapping? Maybe you're setting the parameters somewhere, but not exactly where gmapping reads them. If you are setting those parameters correctly, it sounds like a bug in gmapping to me.

dornhege gravatar image dornhege  ( 2013-02-24 01:32:55 -0500 )edit

I am doing it in launch file ... i'll print the those values and see whether parameters are being set with right values or not..

ayush_dewan gravatar image ayush_dewan  ( 2013-02-24 01:54:18 -0500 )edit

I was not setting the parameters correctly..changing xmin,ymin etc changes the dimension of map.

ayush_dewan gravatar image ayush_dewan  ( 2013-02-24 18:52:37 -0500 )edit

Question Tools


Asked: 2013-02-24 00:31:01 -0500

Seen: 864 times

Last updated: Feb 24 '13