Public Member Functions | Protected Member Functions | Private Attributes | List of all members
map_saver::MapSaver Class Reference

#include <map_saver.hpp>

Public Member Functions

 MapSaver (ros::NodeHandle &nh, const std::string &service_name)
 

Protected Member Functions

void mapCallback (const nav_msgs::OccupancyGrid &msg)
 
bool saveMapCallback (slam_toolbox_msgs::SaveMap::Request &req, slam_toolbox_msgs::SaveMap::Response &resp)
 

Private Attributes

std::string map_name_
 
ros::NodeHandle nh_
 
bool received_map_
 
ros::ServiceServer server_
 
std::string service_name_
 
ros::Subscriber sub_
 

Detailed Description

Definition at line 30 of file map_saver.hpp.

Constructor & Destructor Documentation

◆ MapSaver()

map_saver::MapSaver::MapSaver ( ros::NodeHandle nh,
const std::string &  service_name 
)

Definition at line 25 of file map_saver.cpp.

Member Function Documentation

◆ mapCallback()

void map_saver::MapSaver::mapCallback ( const nav_msgs::OccupancyGrid &  msg)
protected

Definition at line 34 of file map_saver.cpp.

◆ saveMapCallback()

bool map_saver::MapSaver::saveMapCallback ( slam_toolbox_msgs::SaveMap::Request &  req,
slam_toolbox_msgs::SaveMap::Response &  resp 
)
protected

Definition at line 41 of file map_saver.cpp.

Member Data Documentation

◆ map_name_

std::string map_saver::MapSaver::map_name_
private

Definition at line 44 of file map_saver.hpp.

◆ nh_

ros::NodeHandle map_saver::MapSaver::nh_
private

Definition at line 41 of file map_saver.hpp.

◆ received_map_

bool map_saver::MapSaver::received_map_
private

Definition at line 45 of file map_saver.hpp.

◆ server_

ros::ServiceServer map_saver::MapSaver::server_
private

Definition at line 42 of file map_saver.hpp.

◆ service_name_

std::string map_saver::MapSaver::service_name_
private

Definition at line 44 of file map_saver.hpp.

◆ sub_

ros::Subscriber map_saver::MapSaver::sub_
private

Definition at line 43 of file map_saver.hpp.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56