Is there a costmap_2d update callback?
I'm writing a global path planner as costmap_2d plugin and would like to create a callback function that gets called every update. Is there a way to do this through the C++ API? I looked through the docs but couldn't find anything related.
Basically, I'm looking for the C++ analog of subscribing to the costmap_updates
topic.