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

How are LaserScan and global_costmap related?

asked 2020-10-03 05:48:42 -0600

rosberrypi gravatar image

Hi all,

I am currently working on navigation and I have a question regarding understanding a concept. From what I understood so far, global_costmap is created based on the pre-loaded static map by adding an inflation layer using robot footprint. So I assumed that the real time sensor readings from the robot such as laserscanners are only included in local_costmap. But the diagram on move_base page shows that LaserScan topic is used both in global and local costmaps. Could someone explain me how exactly are we using laser data in global_costmap?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-10-05 02:36:37 -0600

mgruhler gravatar image

Well, you can configure the costmaps to include the respective sensors you want. So you can configure the global costmap to NOT have a laserscan, or to include it.

A use case for NOT INCLUDING the laser scan into the global costmap: The map is derived from a floor plan or mapped in a way that all possible routes are open (i.e. all doors you want to navigate through are open) and there is nothing blocking a potential path.

A use case for INCLUDING the laser scan into the global costmap: Your map has some objects that might have changed (e.g. some doors were closed during mapping). If you now integrate the laser scan into the global costmap, you can detect if a previously closed door is open and paths that have not been possible before are possible now.

edit flag offensive delete link more

Comments

Thank you for your answer Matthias. A follow up question to clear some of my hesitation, for the second use case example you gave, isn't it local costmap that needs to make sure if there are ome surprises or changes with respect to global costmap and global path? Or in another way, if we don't include laser scan into global costmap, wouldn't local costmap make sure about dynamic changes along the way?

rosberrypi gravatar image rosberrypi  ( 2020-10-10 13:42:18 -0600 )edit

well, yes, to some extend. The global path that move_base is planning is, however, planned on the global costmap. So if you want the global path to account for suddenly opened (or closed) doors, you need to reflect this in the global costmap, and not only in the local one. However, this only works if you actually see the door at the moment of planning...

mgruhler gravatar image mgruhler  ( 2020-10-12 01:30:20 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-10-03 05:48:42 -0600

Seen: 484 times

Last updated: Oct 05 '20