|
EasyFleet
A simple-by-default framework for multi-robot, multi-capability fleets built on ROS 2
|
Publishes an OccupancyGrid map on /global_map. More...
#include <costmap_map_publisher.hpp>
Public Member Functions | |
| void | publish (rclcpp::Node &node) override |
| Read "map.package"/"map.map_path_file" from node, load the map they name, and publish it once on /global_map (QoS: depth 1, transient_local, reliable – matching what "incoming_map" subscribers expect). | |
Publishes an OccupancyGrid map on /global_map.
Loaded the same way easynav_costmap_maps_manager's own CostmapMapsManager loads its local map_path_file, via easynav::loadMapFromYaml() – every robot's own "costmap" maps_manager_node need only remap its "incoming_map" topic to /global_map to receive this centrally instead of loading its own copy (see easyfleet_navigation_manager's README).
|
overridevirtual |
Read "map.package"/"map.map_path_file" from node, load the map they name, and publish it once on /global_map (QoS: depth 1, transient_local, reliable – matching what "incoming_map" subscribers expect).
| node | Node to declare parameters on and to create the publisher from. Must outlive this CostmapMapPublisher. |
| std::runtime_error | if the parameters are unset, the named package doesn't exist, or the map YAML/image fails to load. |
Implements MapPublisherBase.