Dynamically changing the origin of costmap2D
Hello everyone,
For a project I'm working on, we are using only the dwa_local_planner from the navigation stack. We generate and publish our own occupancy grid as a nav_msgs::OccupancyGrid message and give it to costmap2D. However, the origin of the occupancy grid and thus the costmap2D needs to change dynamically as the robot moves. What is a good way to change the origin of the cost map which it seems to be pulling from the costmap2D config file each time? Will the OccupancyGrid message change it automatically since I will be publishing the dynamically changing origin as a part of the map meta data in the message?