#include <probability_grid.h>
Public Member Functions | |
bool | ApplyLookupTable (const Eigen::Array2i &cell_index, const std::vector< uint16 > &table) |
std::unique_ptr< Grid2D > | ComputeCroppedGrid () const override |
bool | DrawToSubmapTexture (proto::SubmapQuery::Response::SubmapTexture *const texture, transform::Rigid3d local_pose) const override |
GridType | GetGridType () const override |
float | GetProbability (const Eigen::Array2i &cell_index) const |
ProbabilityGrid (const MapLimits &limits, ValueConversionTables *conversion_tables) | |
ProbabilityGrid (const proto::Grid2D &proto, ValueConversionTables *conversion_tables) | |
void | SetProbability (const Eigen::Array2i &cell_index, const float probability) |
proto::Grid2D | ToProto () const override |
Private Attributes | |
ValueConversionTables * | conversion_tables_ |
Definition at line 31 of file probability_grid.h.
cartographer::mapping::ProbabilityGrid::ProbabilityGrid | ( | const MapLimits & | limits, |
ValueConversionTables * | conversion_tables | ||
) | [explicit] |
Definition at line 27 of file probability_grid.cc.
cartographer::mapping::ProbabilityGrid::ProbabilityGrid | ( | const proto::Grid2D & | proto, |
ValueConversionTables * | conversion_tables | ||
) | [explicit] |
Definition at line 33 of file probability_grid.cc.
bool cartographer::mapping::ProbabilityGrid::ApplyLookupTable | ( | const Eigen::Array2i & | cell_index, |
const std::vector< uint16 > & | table | ||
) |
Definition at line 58 of file probability_grid.cc.
std::unique_ptr< Grid2D > cartographer::mapping::ProbabilityGrid::ComputeCroppedGrid | ( | ) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 91 of file probability_grid.cc.
bool cartographer::mapping::ProbabilityGrid::DrawToSubmapTexture | ( | proto::SubmapQuery::Response::SubmapTexture *const | texture, |
transform::Rigid3d | local_pose | ||
) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 109 of file probability_grid.cc.
GridType cartographer::mapping::ProbabilityGrid::GetGridType | ( | ) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 73 of file probability_grid.cc.
float cartographer::mapping::ProbabilityGrid::GetProbability | ( | const Eigen::Array2i & | cell_index | ) | const |
Definition at line 78 of file probability_grid.cc.
void cartographer::mapping::ProbabilityGrid::SetProbability | ( | const Eigen::Array2i & | cell_index, |
const float | probability | ||
) |
Definition at line 41 of file probability_grid.cc.
proto::Grid2D cartographer::mapping::ProbabilityGrid::ToProto | ( | ) | const [override, virtual] |
Reimplemented from cartographer::mapping::Grid2D.
Definition at line 84 of file probability_grid.cc.
Definition at line 65 of file probability_grid.h.