Public Member Functions | List of all members
cartographer::mapping::ProbabilityGrid Class Reference

#include <probability_grid.h>

Inheritance diagram for cartographer::mapping::ProbabilityGrid:
Inheritance graph
[legend]

Public Member Functions

bool ApplyLookupTable (const Eigen::Array2i &cell_index, const std::vector< uint16 > &table)
 
virtual std::unique_ptr< Grid2DComputeCroppedGrid () const override
 
virtual bool DrawToSubmapTexture (proto::SubmapQuery::Response::SubmapTexture *const texture, transform::Rigid3d local_pose) const override
 
float GetProbability (const Eigen::Array2i &cell_index) const
 
 ProbabilityGrid (const MapLimits &limits)
 
 ProbabilityGrid (const proto::Grid2D &proto)
 
void SetProbability (const Eigen::Array2i &cell_index, const float probability)
 
virtual proto::Grid2D ToProto () const override
 
- Public Member Functions inherited from cartographer::mapping::Grid2D
void ComputeCroppedLimits (Eigen::Array2i *const offset, CellLimits *const limits) const
 
void FinishUpdate ()
 
float GetCorrespondenceCost (const Eigen::Array2i &cell_index) const
 
float GetMaxCorrespondenceCost () const
 
float GetMinCorrespondenceCost () const
 
 Grid2D (const MapLimits &limits, float min_correspondence_cost, float max_correspondence_cost)
 
 Grid2D (const proto::Grid2D &proto)
 
virtual void GrowLimits (const Eigen::Vector2f &point)
 
bool IsKnown (const Eigen::Array2i &cell_index) const
 
const MapLimitslimits () const
 

Additional Inherited Members

- Protected Member Functions inherited from cartographer::mapping::Grid2D
const std::vector< uint16 > & correspondence_cost_cells () const
 
const Eigen::AlignedBox2i & known_cells_box () const
 
std::vector< uint16 > * mutable_correspondence_cost_cells ()
 
Eigen::AlignedBox2i * mutable_known_cells_box ()
 
std::vector< int > * mutable_update_indices ()
 
int ToFlatIndex (const Eigen::Array2i &cell_index) const
 
const std::vector< int > & update_indices () const
 

Detailed Description

Definition at line 31 of file probability_grid.h.

Constructor & Destructor Documentation

◆ ProbabilityGrid() [1/2]

cartographer::mapping::ProbabilityGrid::ProbabilityGrid ( const MapLimits limits)
explicit

Definition at line 27 of file probability_grid.cc.

◆ ProbabilityGrid() [2/2]

cartographer::mapping::ProbabilityGrid::ProbabilityGrid ( const proto::Grid2D &  proto)
explicit

Definition at line 30 of file probability_grid.cc.

Member Function Documentation

◆ ApplyLookupTable()

bool cartographer::mapping::ProbabilityGrid::ApplyLookupTable ( const Eigen::Array2i &  cell_index,
const std::vector< uint16 > &  table 
)

Definition at line 53 of file probability_grid.cc.

◆ ComputeCroppedGrid()

std::unique_ptr< Grid2D > cartographer::mapping::ProbabilityGrid::ComputeCroppedGrid ( ) const
overridevirtual

Implements cartographer::mapping::Grid2D.

Definition at line 82 of file probability_grid.cc.

◆ DrawToSubmapTexture()

bool cartographer::mapping::ProbabilityGrid::DrawToSubmapTexture ( proto::SubmapQuery::Response::SubmapTexture *const  texture,
transform::Rigid3d  local_pose 
) const
overridevirtual

Implements cartographer::mapping::Grid2D.

Definition at line 100 of file probability_grid.cc.

◆ GetProbability()

float cartographer::mapping::ProbabilityGrid::GetProbability ( const Eigen::Array2i &  cell_index) const

Definition at line 69 of file probability_grid.cc.

◆ SetProbability()

void cartographer::mapping::ProbabilityGrid::SetProbability ( const Eigen::Array2i &  cell_index,
const float  probability 
)

Definition at line 36 of file probability_grid.cc.

◆ ToProto()

proto::Grid2D cartographer::mapping::ProbabilityGrid::ToProto ( ) const
overridevirtual

Reimplemented from cartographer::mapping::Grid2D.

Definition at line 75 of file probability_grid.cc.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59