ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org

Dear all,

i want to ask if someone has an idea of how to make my footprint dynamic depending on the speed. So for example, if the robot is traveling with high speed, the footprint size should increase and vice versa. In my configuration files for navigation i am using DWA (same as the turtlebot config files), but it would be really nice to control the footprint dynamically.

Any help?

Thanks

edit retag close merge delete

Sort by » oldest newest most voted

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.

more