Public Member Functions | Private Attributes | List of all members
MapsManager Class Reference

#include <MapsManager.h>

Public Member Functions

void backwardCompatibilityParameters (ros::NodeHandle &pnh, rtabmap::ParametersMap &parameters) const
 
void clear ()
 
std::map< int, rtabmap::TransformgetFilteredPoses (const std::map< int, rtabmap::Transform > &poses)
 
cv::Mat getGridMap (float &xMin, float &yMin, float &gridCellSize)
 
cv::Mat getGridProbMap (float &xMin, float &yMin, float &gridCellSize)
 
const rtabmap::OccupancyGridgetOccupancyGrid () const
 
const rtabmap::OctoMapgetOctomap () const
 
bool hasSubscribers () const
 
void init (ros::NodeHandle &nh, ros::NodeHandle &pnh, const std::string &name, bool usePublicNamespace)
 
 MapsManager ()
 
void publishMaps (const std::map< int, rtabmap::Transform > &poses, const ros::Time &stamp, const std::string &mapFrameId)
 
void set2DMap (const cv::Mat &map, float xMin, float yMin, float cellSize, const std::map< int, rtabmap::Transform > &poses, const rtabmap::Memory *memory=0)
 
void setParameters (const rtabmap::ParametersMap &parameters)
 
std::map< int, rtabmap::TransformupdateMapCaches (const std::map< int, rtabmap::Transform > &poses, const rtabmap::Memory *memory, bool updateGrid, bool updateOctomap, const std::map< int, rtabmap::Signature > &signatures=std::map< int, rtabmap::Signature >())
 
virtual ~MapsManager ()
 

Private Attributes

bool alwaysUpdateMap_
 
pcl::PointCloud< pcl::PointXYZRGB >::Ptr assembledGround_
 
rtabmap::FlannIndex assembledGroundIndex_
 
std::map< int, rtabmap::TransformassembledGroundPoses_
 
rtabmap::FlannIndex assembledObstacleIndex_
 
std::map< int, rtabmap::TransformassembledObstaclePoses_
 
pcl::PointCloud< pcl::PointXYZRGB >::Ptr assembledObstacles_
 
ros::Publisher cloudGroundPub_
 
ros::Publisher cloudMapPub_
 
ros::Publisher cloudObstaclesPub_
 
bool cloudOutputVoxelized_
 
bool cloudSubtractFiltering_
 
int cloudSubtractFilteringMinNeighbors_
 
cv::Mat gridMap_
 
ros::Publisher gridMapPub_
 
std::map< int, std::pair< std::pair< cv::Mat, cv::Mat >, cv::Mat > > gridMaps_
 
std::map< int, cv::Point3f > gridMapsViewpoints_
 
std::map< int, rtabmap::TransformgridPoses_
 
ros::Publisher gridProbMapPub_
 
bool gridUpdated_
 
std::map< int, pcl::PointCloud< pcl::PointXYZRGB >::Ptr > groundClouds_
 
std::map< void *, bool > latched_
 
bool latching_
 
bool mapCacheCleanup_
 
double mapFilterAngle_
 
double mapFilterRadius_
 
std::map< int, pcl::PointCloud< pcl::PointXYZRGB >::Ptr > obstacleClouds_
 
rtabmap::OccupancyGridoccupancyGrid_
 
rtabmap::OctoMapoctomap_
 
ros::Publisher octoMapCloud_
 
ros::Publisher octoMapEmptySpace_
 
ros::Publisher octoMapFrontierCloud_
 
ros::Publisher octoMapGroundCloud_
 
ros::Publisher octoMapObstacleCloud_
 
ros::Publisher octoMapProj_
 
ros::Publisher octoMapPubBin_
 
ros::Publisher octoMapPubFull_
 
int octomapTreeDepth_
 
bool octomapUpdated_
 
rtabmap::ParametersMap parameters_
 
ros::Publisher projMapPub_
 
bool scanEmptyRayTracing_
 
ros::Publisher scanMapPub_
 

Detailed Description

Definition at line 46 of file MapsManager.h.

Constructor & Destructor Documentation

◆ MapsManager()

MapsManager::MapsManager ( )

Definition at line 59 of file MapsManager.cpp.

◆ ~MapsManager()

MapsManager::~MapsManager ( )
virtual

Definition at line 208 of file MapsManager.cpp.

Member Function Documentation

◆ backwardCompatibilityParameters()

void MapsManager::backwardCompatibilityParameters ( ros::NodeHandle pnh,
rtabmap::ParametersMap parameters 
) const

Definition at line 277 of file MapsManager.cpp.

◆ clear()

void MapsManager::clear ( )

Definition at line 385 of file MapsManager.cpp.

◆ getFilteredPoses()

std::map< int, Transform > MapsManager::getFilteredPoses ( const std::map< int, rtabmap::Transform > &  poses)

Definition at line 428 of file MapsManager.cpp.

◆ getGridMap()

cv::Mat MapsManager::getGridMap ( float &  xMin,
float &  yMin,
float &  gridCellSize 
)

Definition at line 1542 of file MapsManager.cpp.

◆ getGridProbMap()

cv::Mat MapsManager::getGridProbMap ( float &  xMin,
float &  yMin,
float &  gridCellSize 
)

Definition at line 1551 of file MapsManager.cpp.

◆ getOccupancyGrid()

const rtabmap::OccupancyGrid* MapsManager::getOccupancyGrid ( ) const
inline

Definition at line 83 of file MapsManager.h.

◆ getOctomap()

const rtabmap::OctoMap* MapsManager::getOctomap ( ) const
inline

Definition at line 82 of file MapsManager.h.

◆ hasSubscribers()

bool MapsManager::hasSubscribers ( ) const

Definition at line 409 of file MapsManager.cpp.

◆ init()

void MapsManager::init ( ros::NodeHandle nh,
ros::NodeHandle pnh,
const std::string name,
bool  usePublicNamespace 
)

Definition at line 83 of file MapsManager.cpp.

◆ publishMaps()

void MapsManager::publishMaps ( const std::map< int, rtabmap::Transform > &  poses,
const ros::Time stamp,
const std::string mapFrameId 
)

Definition at line 809 of file MapsManager.cpp.

◆ set2DMap()

void MapsManager::set2DMap ( const cv::Mat &  map,
float  xMin,
float  yMin,
float  cellSize,
const std::map< int, rtabmap::Transform > &  poses,
const rtabmap::Memory memory = 0 
)

Definition at line 337 of file MapsManager.cpp.

◆ setParameters()

void MapsManager::setParameters ( const rtabmap::ParametersMap parameters)

Definition at line 320 of file MapsManager.cpp.

◆ updateMapCaches()

std::map< int, rtabmap::Transform > MapsManager::updateMapCaches ( const std::map< int, rtabmap::Transform > &  poses,
const rtabmap::Memory memory,
bool  updateGrid,
bool  updateOctomap,
const std::map< int, rtabmap::Signature > &  signatures = std::map<int, rtabmap::Signature>() 
)

Definition at line 439 of file MapsManager.cpp.

Member Data Documentation

◆ alwaysUpdateMap_

bool MapsManager::alwaysUpdateMap_
private

Definition at line 93 of file MapsManager.h.

◆ assembledGround_

pcl::PointCloud<pcl::PointXYZRGB>::Ptr MapsManager::assembledGround_
private

Definition at line 115 of file MapsManager.h.

◆ assembledGroundIndex_

rtabmap::FlannIndex MapsManager::assembledGroundIndex_
private

Definition at line 116 of file MapsManager.h.

◆ assembledGroundPoses_

std::map<int, rtabmap::Transform> MapsManager::assembledGroundPoses_
private

Definition at line 112 of file MapsManager.h.

◆ assembledObstacleIndex_

rtabmap::FlannIndex MapsManager::assembledObstacleIndex_
private

Definition at line 117 of file MapsManager.h.

◆ assembledObstaclePoses_

std::map<int, rtabmap::Transform> MapsManager::assembledObstaclePoses_
private

Definition at line 113 of file MapsManager.h.

◆ assembledObstacles_

pcl::PointCloud<pcl::PointXYZRGB>::Ptr MapsManager::assembledObstacles_
private

Definition at line 114 of file MapsManager.h.

◆ cloudGroundPub_

ros::Publisher MapsManager::cloudGroundPub_
private

Definition at line 97 of file MapsManager.h.

◆ cloudMapPub_

ros::Publisher MapsManager::cloudMapPub_
private

Definition at line 96 of file MapsManager.h.

◆ cloudObstaclesPub_

ros::Publisher MapsManager::cloudObstaclesPub_
private

Definition at line 98 of file MapsManager.h.

◆ cloudOutputVoxelized_

bool MapsManager::cloudOutputVoxelized_
private

Definition at line 87 of file MapsManager.h.

◆ cloudSubtractFiltering_

bool MapsManager::cloudSubtractFiltering_
private

Definition at line 88 of file MapsManager.h.

◆ cloudSubtractFilteringMinNeighbors_

int MapsManager::cloudSubtractFilteringMinNeighbors_
private

Definition at line 89 of file MapsManager.h.

◆ gridMap_

cv::Mat MapsManager::gridMap_
private

Definition at line 122 of file MapsManager.h.

◆ gridMapPub_

ros::Publisher MapsManager::gridMapPub_
private

Definition at line 100 of file MapsManager.h.

◆ gridMaps_

std::map<int, std::pair< std::pair<cv::Mat, cv::Mat>, cv::Mat> > MapsManager::gridMaps_
private

Definition at line 123 of file MapsManager.h.

◆ gridMapsViewpoints_

std::map<int, cv::Point3f> MapsManager::gridMapsViewpoints_
private

Definition at line 124 of file MapsManager.h.

◆ gridPoses_

std::map<int, rtabmap::Transform> MapsManager::gridPoses_
private

Definition at line 121 of file MapsManager.h.

◆ gridProbMapPub_

ros::Publisher MapsManager::gridProbMapPub_
private

Definition at line 101 of file MapsManager.h.

◆ gridUpdated_

bool MapsManager::gridUpdated_
private

Definition at line 127 of file MapsManager.h.

◆ groundClouds_

std::map<int, pcl::PointCloud<pcl::PointXYZRGB>::Ptr > MapsManager::groundClouds_
private

Definition at line 118 of file MapsManager.h.

◆ latched_

std::map<void*, bool> MapsManager::latched_
private

Definition at line 136 of file MapsManager.h.

◆ latching_

bool MapsManager::latching_
private

Definition at line 135 of file MapsManager.h.

◆ mapCacheCleanup_

bool MapsManager::mapCacheCleanup_
private

Definition at line 92 of file MapsManager.h.

◆ mapFilterAngle_

double MapsManager::mapFilterAngle_
private

Definition at line 91 of file MapsManager.h.

◆ mapFilterRadius_

double MapsManager::mapFilterRadius_
private

Definition at line 90 of file MapsManager.h.

◆ obstacleClouds_

std::map<int, pcl::PointCloud<pcl::PointXYZRGB>::Ptr > MapsManager::obstacleClouds_
private

Definition at line 119 of file MapsManager.h.

◆ occupancyGrid_

rtabmap::OccupancyGrid* MapsManager::occupancyGrid_
private

Definition at line 126 of file MapsManager.h.

◆ octomap_

rtabmap::OctoMap* MapsManager::octomap_
private

Definition at line 129 of file MapsManager.h.

◆ octoMapCloud_

ros::Publisher MapsManager::octoMapCloud_
private

Definition at line 105 of file MapsManager.h.

◆ octoMapEmptySpace_

ros::Publisher MapsManager::octoMapEmptySpace_
private

Definition at line 109 of file MapsManager.h.

◆ octoMapFrontierCloud_

ros::Publisher MapsManager::octoMapFrontierCloud_
private

Definition at line 106 of file MapsManager.h.

◆ octoMapGroundCloud_

ros::Publisher MapsManager::octoMapGroundCloud_
private

Definition at line 107 of file MapsManager.h.

◆ octoMapObstacleCloud_

ros::Publisher MapsManager::octoMapObstacleCloud_
private

Definition at line 108 of file MapsManager.h.

◆ octoMapProj_

ros::Publisher MapsManager::octoMapProj_
private

Definition at line 110 of file MapsManager.h.

◆ octoMapPubBin_

ros::Publisher MapsManager::octoMapPubBin_
private

Definition at line 103 of file MapsManager.h.

◆ octoMapPubFull_

ros::Publisher MapsManager::octoMapPubFull_
private

Definition at line 104 of file MapsManager.h.

◆ octomapTreeDepth_

int MapsManager::octomapTreeDepth_
private

Definition at line 130 of file MapsManager.h.

◆ octomapUpdated_

bool MapsManager::octomapUpdated_
private

Definition at line 131 of file MapsManager.h.

◆ parameters_

rtabmap::ParametersMap MapsManager::parameters_
private

Definition at line 133 of file MapsManager.h.

◆ projMapPub_

ros::Publisher MapsManager::projMapPub_
private

Definition at line 99 of file MapsManager.h.

◆ scanEmptyRayTracing_

bool MapsManager::scanEmptyRayTracing_
private

Definition at line 94 of file MapsManager.h.

◆ scanMapPub_

ros::Publisher MapsManager::scanMapPub_
private

Definition at line 102 of file MapsManager.h.


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


rtabmap_ros
Author(s): Mathieu Labbe
autogenerated on Tue Jan 24 2023 04:04:40