Public Member Functions | Private Member Functions | Private Attributes | List of all members
cartographer::mapping_2d::ProbabilityGrid Class Reference

#include <probability_grid.h>

Public Member Functions

bool ApplyLookupTable (const Eigen::Array2i &xy_index, const std::vector< uint16 > &table)
 
void ComputeCroppedLimits (Eigen::Array2i *const offset, CellLimits *const limits) const
 
float GetProbability (const Eigen::Array2i &xy_index) const
 
float GetProbability (const double x, const double y) const
 
void GrowLimits (const double x, const double y)
 
bool IsKnown (const Eigen::Array2i &xy_index) const
 
const MapLimitslimits () const
 
 ProbabilityGrid (const MapLimits &limits)
 
 ProbabilityGrid (const proto::ProbabilityGrid &proto)
 
void SetProbability (const Eigen::Array2i &xy_index, const float probability)
 
void StartUpdate ()
 
proto::ProbabilityGrid ToProto () const
 

Private Member Functions

int GetIndexOfCell (const Eigen::Array2i &xy_index) const
 
void UpdateBounds (const Eigen::Array2i &xy_index)
 

Private Attributes

std::vector< uint16cells_
 
MapLimits limits_
 
int max_x_
 
int max_y_
 
int min_x_
 
int min_y_
 
std::vector< int > update_indices_
 

Detailed Description

Definition at line 40 of file probability_grid.h.

Constructor & Destructor Documentation

cartographer::mapping_2d::ProbabilityGrid::ProbabilityGrid ( const MapLimits limits)
inlineexplicit

Definition at line 42 of file probability_grid.h.

cartographer::mapping_2d::ProbabilityGrid::ProbabilityGrid ( const proto::ProbabilityGrid &  proto)
inlineexplicit

Definition at line 52 of file probability_grid.h.

Member Function Documentation

bool cartographer::mapping_2d::ProbabilityGrid::ApplyLookupTable ( const Eigen::Array2i &  xy_index,
const std::vector< uint16 > &  table 
)
inline

Definition at line 96 of file probability_grid.h.

void cartographer::mapping_2d::ProbabilityGrid::ComputeCroppedLimits ( Eigen::Array2i *const  offset,
CellLimits *const  limits 
) const
inline

Definition at line 132 of file probability_grid.h.

int cartographer::mapping_2d::ProbabilityGrid::GetIndexOfCell ( const Eigen::Array2i &  xy_index) const
inlineprivate

Definition at line 194 of file probability_grid.h.

float cartographer::mapping_2d::ProbabilityGrid::GetProbability ( const Eigen::Array2i &  xy_index) const
inline

Definition at line 112 of file probability_grid.h.

float cartographer::mapping_2d::ProbabilityGrid::GetProbability ( const double  x,
const double  y 
) const
inline

Definition at line 120 of file probability_grid.h.

void cartographer::mapping_2d::ProbabilityGrid::GrowLimits ( const double  x,
const double  y 
)
inline

Definition at line 142 of file probability_grid.h.

bool cartographer::mapping_2d::ProbabilityGrid::IsKnown ( const Eigen::Array2i &  xy_index) const
inline

Definition at line 125 of file probability_grid.h.

const MapLimits& cartographer::mapping_2d::ProbabilityGrid::limits ( ) const
inline

Definition at line 69 of file probability_grid.h.

void cartographer::mapping_2d::ProbabilityGrid::SetProbability ( const Eigen::Array2i &  xy_index,
const float  probability 
)
inline

Definition at line 82 of file probability_grid.h.

void cartographer::mapping_2d::ProbabilityGrid::StartUpdate ( )
inline

Definition at line 72 of file probability_grid.h.

proto::ProbabilityGrid cartographer::mapping_2d::ProbabilityGrid::ToProto ( ) const
inline

Definition at line 174 of file probability_grid.h.

void cartographer::mapping_2d::ProbabilityGrid::UpdateBounds ( const Eigen::Array2i &  xy_index)
inlineprivate

Definition at line 199 of file probability_grid.h.

Member Data Documentation

std::vector<uint16> cartographer::mapping_2d::ProbabilityGrid::cells_
private

Definition at line 207 of file probability_grid.h.

MapLimits cartographer::mapping_2d::ProbabilityGrid::limits_
private

Definition at line 206 of file probability_grid.h.

int cartographer::mapping_2d::ProbabilityGrid::max_x_
private

Definition at line 212 of file probability_grid.h.

int cartographer::mapping_2d::ProbabilityGrid::max_y_
private

Definition at line 213 of file probability_grid.h.

int cartographer::mapping_2d::ProbabilityGrid::min_x_
private

Definition at line 214 of file probability_grid.h.

int cartographer::mapping_2d::ProbabilityGrid::min_y_
private

Definition at line 215 of file probability_grid.h.

std::vector<int> cartographer::mapping_2d::ProbabilityGrid::update_indices_
private

Definition at line 208 of file probability_grid.h.


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


cartographer
Author(s):
autogenerated on Wed Jun 5 2019 21:58:00