19#ifndef EASYNAV_NAVMAP_MAPS_MANAGER__NAVMAP_MAPS_MANAGER_HPP_
20#define EASYNAV_NAVMAP_MAPS_MANAGER__NAVMAP_MAPS_MANAGER_HPP_
24#include "nav_msgs/msg/occupancy_grid.hpp"
25#include "navmap_ros_interfaces/msg/nav_map.hpp"
26#include "navmap_ros_interfaces/msg/nav_map_layer.hpp"
27#include "std_srvs/srv/trigger.hpp"
28#include "sensor_msgs/msg/point_cloud2.hpp"
30#include "easynav_core/MapsManagerBase.hpp"
31#include "navmap_core/NavMap.hpp"
34#include "pluginlib/class_loader.hpp"
79 virtual void update(::easynav::NavState & nav_state)
override;
98 ::navmap::NavMap navmap_;
103 rclcpp::Publisher<navmap_ros_interfaces::msg::NavMap>::SharedPtr navmap_pub_;
108 rclcpp::Publisher<navmap_ros_interfaces::msg::NavMapLayer>::SharedPtr layer_updates_pub_;
113 rclcpp::Subscription<nav_msgs::msg::OccupancyGrid>::SharedPtr incoming_occ_map_sub_;
118 rclcpp::Subscription<sensor_msgs::msg::PointCloud2>::SharedPtr incoming_pc2_map_sub_;
123 rclcpp::Service<std_srvs::srv::Trigger>::SharedPtr savemap_srv_;
128 navmap_ros_interfaces::msg::NavMap navmap_msg_;
130 std::unique_ptr<pluginlib::ClassLoader<NavMapFilter>> navmap_filters_loader_;
132 std::vector<std::shared_ptr<NavMapFilter>> navmap_filters_;
134 double resolution_ {1.0};
void set_static_map(const ::navmap::NavMap &new_map)
Replaces the current static map.
Definition NavMapMapsManager.cpp:207
NavMapMapsManager()
Default constructor.
Definition NavMapMapsManager.cpp:39
std::string map_path_
Full path to the map file.
Definition NavMapMapsManager.hpp:92
~NavMapMapsManager()
Destructor.
Definition NavMapMapsManager.cpp:60
virtual void on_initialize() override
Initializes the maps manager.
Definition NavMapMapsManager.cpp:63
virtual void update(::easynav::NavState &nav_state) override
Updates the internal maps using the current navigation state.
Definition NavMapMapsManager.cpp:213
Definition AMCLLocalizer.hpp:41
Provides a mapping for often used cost values.
Definition cost_values.hpp:41