moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle Class Reference

This class contains the ros interfaces for OccupancyMapMontior. More...

#include <occupancy_map_monitor_middleware_handle.hpp>

Inheritance diagram for occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle:
Inheritance graph
[legend]
Collaboration diagram for occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle:
Collaboration graph
[legend]

Public Member Functions

 OccupancyMapMonitorMiddlewareHandle (const rclcpp::Node::SharedPtr &node, double map_resolution, const std::string &map_frame)
 Constructor, reads the parameters.
 
OccupancyMapMonitor::Parameters getParameters () const override
 Gets the parameters struct.
 
OccupancyMapUpdaterPtr loadOccupancyMapUpdater (const std::string &sensor_plugin) override
 Loads an occupancy map updater using pluginlib.
 
void initializeOccupancyMapUpdater (OccupancyMapUpdaterPtr occupancy_map_updater) override
 Initializes the occupancy map updater. This must be called because of the interface of OccupancyMapUpdater.
 
void createSaveMapService (OccupancyMapMonitor::MiddlewareHandle::SaveMapServiceCallback callback) override
 Creates a save map service.
 
void createLoadMapService (OccupancyMapMonitor::MiddlewareHandle::LoadMapServiceCallback callback) override
 Creates a load map service.
 
- Public Member Functions inherited from occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle
virtual ~MiddlewareHandle ()=default
 Destroys the object. Needed because this is pure virtual interface.
 

Additional Inherited Members

- Public Types inherited from occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle
using SaveMapServiceCallback = std::function< bool(const std::shared_ptr< rmw_request_id_t > request_header, const std::shared_ptr< moveit_msgs::srv::SaveMap::Request > request, std::shared_ptr< moveit_msgs::srv::SaveMap::Response > response)>
 
using LoadMapServiceCallback = std::function< bool(const std::shared_ptr< rmw_request_id_t > request_header, const std::shared_ptr< moveit_msgs::srv::LoadMap::Request > request, std::shared_ptr< moveit_msgs::srv::LoadMap::Response > response)>
 

Detailed Description

This class contains the ros interfaces for OccupancyMapMontior.

Definition at line 55 of file occupancy_map_monitor_middleware_handle.hpp.

Constructor & Destructor Documentation

◆ OccupancyMapMonitorMiddlewareHandle()

occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::OccupancyMapMonitorMiddlewareHandle ( const rclcpp::Node::SharedPtr &  node,
double  map_resolution,
const std::string &  map_frame 
)

Constructor, reads the parameters.

Parameters
[in]nodeThe ros node
[in]map_resolutionThe map resolution, if not > 0 read from a parameter
[in]map_frameThe map frame, if not empty read from a parameter

Definition at line 53 of file occupancy_map_monitor_middleware_handle.cpp.

Member Function Documentation

◆ createLoadMapService()

void occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::createLoadMapService ( OccupancyMapMonitor::MiddlewareHandle::LoadMapServiceCallback  callback)
overridevirtual

Creates a load map service.

Parameters
[in]callbackThe callback closure

Implements occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle.

Definition at line 153 of file occupancy_map_monitor_middleware_handle.cpp.

◆ createSaveMapService()

void occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::createSaveMapService ( OccupancyMapMonitor::MiddlewareHandle::SaveMapServiceCallback  callback)
overridevirtual

Creates a save map service.

Parameters
[in]callbackThe callback closure

Implements occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle.

Definition at line 147 of file occupancy_map_monitor_middleware_handle.cpp.

◆ getParameters()

OccupancyMapMonitor::Parameters occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::getParameters ( ) const
overridevirtual

Gets the parameters struct.

Returns
The parameters.

Implements occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle.

Definition at line 120 of file occupancy_map_monitor_middleware_handle.cpp.

◆ initializeOccupancyMapUpdater()

void occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::initializeOccupancyMapUpdater ( OccupancyMapUpdaterPtr  occupancy_map_updater)
overridevirtual

Initializes the occupancy map updater. This must be called because of the interface of OccupancyMapUpdater.

Parameters
[in]occupancy_map_updaterThe occupancy map updater

Implements occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle.

Definition at line 139 of file occupancy_map_monitor_middleware_handle.cpp.

◆ loadOccupancyMapUpdater()

OccupancyMapUpdaterPtr occupancy_map_monitor::OccupancyMapMonitorMiddlewareHandle::loadOccupancyMapUpdater ( const std::string &  sensor_plugin)
overridevirtual

Loads an occupancy map updater using pluginlib.

Parameters
[in]sensor_pluginThe sensor plugin type string
Returns
The occupancy map updater pointer.

Implements occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle.

Definition at line 125 of file occupancy_map_monitor_middleware_handle.cpp.


The documentation for this class was generated from the following files: