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

Nav2 Costmap plugin - How to make cost changes persistent?

asked 2023-08-02 03:47:48 -0600

ChWa02 gravatar image

Hi all,

I'm currently writing a plugin for the Nav2 costmap. The goal is to set costs for the global costmap. Unfortunately, the costs need to be updated in the exact same place on every iteration. Is there a workaround so that I only have to set the costs once and the costmap keeps the changes for every other iteration?

Many thanks in andvance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-08-02 14:27:53 -0600

The internal data structure to the costmap layers stores your layer's information that is to persist. When we do update cycles to update the costs, that is what's called upon in the current window of updates to provide its values. If you want persistence, you need to persist the data in the layer so its updated as static information for each subsequent update cycle.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-08-02 03:47:48 -0600

Seen: 337 times

Last updated: Aug 02 '23