EasyNav Costmap Stack
|
A plugin-based map manager using the SimpleMap data structure. More...
#include <CostmapMapsManager.hpp>
Public Member Functions | |
CostmapMapsManager () | |
Default constructor. | |
virtual std::expected< void, std::string > | on_initialize () override |
Initializes the maps manager. | |
void | set_static_map (const Costmap2D &new_map) |
Replaces the current static map. | |
virtual void | update (NavState &nav_state) override |
Updates the internal maps using the current navigation state. | |
~CostmapMapsManager () | |
Destructor. | |
Protected Attributes | |
std::string | map_path_ |
Full path to the map file. | |
A plugin-based map manager using the SimpleMap data structure.
This manager implements a minimal mapping approach using boolean grid maps (SimpleMap) for both static and dynamic maps. It supports publishing and receiving ROS occupancy grids.
Default constructor.
~CostmapMapsManager | ( | ) |
Destructor.
|
overridevirtual |
Initializes the maps manager.
Creates necessary publishers/subscribers and initializes the map instances.
void set_static_map | ( | const Costmap2D & | new_map | ) |
Replaces the current static map.
new_map | Shared pointer to a new map object. Must be of type SimpleMap. |
|
overridevirtual |
Updates the internal maps using the current navigation state.
Intended to be called periodically. May perform dynamic map updates based on new sensor data or internal state.
nav_state | Current state of the navigation system. |
|
protected |
Full path to the map file.