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

Revision history [back]

In the documentation for the costmap_2d they mention that there is a subscription to the footprint topic. This led me to believe that you ought to be able to publish on one of the <costmap>/footprint and have everything be automatically updated. A quick test shows that this does appear to be the case (although I haven't thoroughly tested). In the source code you can see they do indeed subscribe to the topic, and that the subscribed footprint eventually changes the local attribute, and further, this eventually is published back to the topic.

Additionally, note that in the Trajectory scoring parameters of dwa_local_planner, they mention that there is a parameter to scale the size of the footprint based on how fast the robot is going. The actual implementation of this (which is easier to understand than the docs) is here. This may also fit your use case.