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

How can I change the map size and the origin?

asked 2013-12-20 02:28:17 -0500

Gerald gravatar image

updated 2013-12-20 13:48:23 -0500

Dear all,

   I have made a map successfully,but it was not so good. How can I change the map size through the gmapping parameters? 
   The map is useless because there are so many unknown regions , so the map looks so little in the middle of the picture. Although I modified the parameter (max_Range, max_Urange ,x_min and  so on(gmapping)),but I still can not get a good result. 
   Now my map :pan.baidu.com/s/1jGwnoto .
   the map I really want is just like : pan.baidu.com/s/1eQzdnea (sorry that's a link, please copy it).

By the way, How can I make the origin(.yaml file) [0 0 0]?

Best Regards!

Gerald

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2013-12-20 04:01:12 -0500

Tirjen gravatar image

You have to change the xmin, ymin, xmax, ymax parameters, maxRange and maxUrange (without underscore) are for laser!! You can find the complete list of parameters here.

edit flag offensive delete link more
0

answered 2013-12-20 13:25:41 -0500

Gerald gravatar image

Hi Tirjen,

    Here is my launch file:
    <launch>
    <param name="use_sim_time" value="false"/>
    <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen">
    <param name="xmin" value="-5.0"/>
    <param name="ymin" value="-5.0"/>
    <param name="xmax" value="5.0"/>
    <param name="ymax" value="5.0"/>
    <param name="maxUrange" value="30.0"/>
    <param name="delta" value="0.01"/>  
</node>

</launch> You know that although I have changed the parameters, the map was not 1000 * 1000 but a very strange size. In addition, I want to change the map to look more suitable for my html canvas, but there are so many unknown regions that surrounds the map(the gray one), that makes me crazy.

Best Regards!

Gerald

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2013-12-20 02:28:17 -0500

Seen: 3,280 times

Last updated: Dec 20 '13