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

update_frequency vs publish_frequency (costmap parameters)

asked 2021-01-18 11:23:59 -0500

updated 2021-01-18 11:25:10 -0500

I have a costmap_common.yaml file which has update_frequency and publish_frequency parameters.

What is the significance of these parameters? I looked up costmap_2d wiki and found the following -

update_frequency - The frequency in Hz for the map to be updated.

publish_frequency - The frequency in Hz for the map to be publish display information.

What does map in the above definitions refer to? Do they refer to the costmap (global or local) or do they refer to the /map topic?

edit retag flag offensive close merge delete

Comments

2

the costmap for which the parameters are set.

mgruhler gravatar image mgruhler  ( 2021-01-19 02:56:33 -0500 )edit

What's the difference between update_frequency and publish_frequency ?

skpro19 gravatar image skpro19  ( 2021-01-19 10:40:58 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-01-20 13:26:03 -0500

mgruhler gravatar image

Going over to an answer now, instead of comments.

update_frequency and publish_frequency refer to the costmap for which the parameters are set.

As specified in the wiki, and as you cite yourself:

  • update_frequency is how fast the costmap should be updated. I.e. how often new sensor data is integrated.
  • publish_frequency is how fast the costmap is published.

note that for some applications (like move_base, e.g.) the costmap does not need to be published at all. As move_base accesses it via the API, publishing the costmap is only for visualization purposes. This is why there are two parameters, leaving you the choice to publish it, or not; publish it with very low frequency but integrate sensor data faster, or whatever you prefer.

edit flag offensive delete link more

Comments

Thank you.

skpro19 gravatar image skpro19  ( 2021-01-28 01:12:24 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-01-18 11:23:59 -0500

Seen: 978 times

Last updated: Jan 20 '21