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

Should global costmap have an obstacle layer when using a SLAM node?

asked 2015-08-18 16:55:02 -0600

Sebastian gravatar image

I am trying to build a navigation system, but am a bit confused about the configuration of my global costmap for move_base.

I am using gmapping to create a map of the environment, which is published to /map.

I want global_costmap to use this map while planning, so I set static_map to true.

I find that global_costmap will load an obstacle layer and inflation layer by default.

Should I keep the obstacle layer? Wouldn't it just be redundant with the gmapping?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-08-19 10:22:42 -0600

David Lu gravatar image

I agree that it would most likely be redundant in the global_costmap, so you should not keep it.

edit flag offensive delete link more

Comments

Thank you very much.

Sebastian gravatar image Sebastian  ( 2015-08-19 12:43:30 -0600 )edit

Wouldn't it make sense to keep the obstacle layer, given it uses a VoxelLayer (2.5d obstacle info) while the SLAM node (gmapping) might not?

moooeeeep gravatar image moooeeeep  ( 2017-03-23 04:33:47 -0600 )edit

If the obstacle layer is a voxel layer, then possibly it might not be redundant.

David Lu gravatar image David Lu  ( 2017-03-26 10:40:26 -0600 )edit
-1

answered 2015-08-19 11:20:27 -0600

Should the static_map be set to true when using gmapping to create a map?If you do not use map server,it should be set to false.

Reference: The static_map attribute is used for the global costmap to know if a map or the map server is used to initialize the costmap. If you aren't using a static map, set this parameter to false .

edit flag offensive delete link more

Comments

2

static_map is a misnomer. It really means "external map."

It is only static because the map is not being modified locally, but externally it is being changed.

Search around and you will find a source for this. It confused me for a while as well.

Sebastian gravatar image Sebastian  ( 2015-08-19 12:43:05 -0600 )edit

Confused me as well. Sebastion is correct, and it seems the only way that people will know this is by searching ROS Answers.

kwiesz91 gravatar image kwiesz91  ( 2015-09-14 17:54:23 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-08-18 16:55:02 -0600

Seen: 1,210 times

Last updated: Aug 19 '15