#include <tsdf_2d.h>
Public Member Functions | |
bool | CellIsUpdated (const Eigen::Array2i &cell_index) const |
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 | GetTSD (const Eigen::Array2i &cell_index) const |
std::pair< float, float > | GetTSDAndWeight (const Eigen::Array2i &cell_index) const |
float | GetWeight (const Eigen::Array2i &cell_index) const |
void | GrowLimits (const Eigen::Vector2f &point) override |
void | SetCell (const Eigen::Array2i &cell_index, const float tsd, const float weight) |
proto::Grid2D | ToProto () const override |
TSDF2D (const MapLimits &limits, float truncation_distance, float max_weight, ValueConversionTables *conversion_tables) | |
TSDF2D (const proto::Grid2D &proto, ValueConversionTables *conversion_tables) | |
Private Attributes | |
ValueConversionTables * | conversion_tables_ |
std::unique_ptr < TSDValueConverter > | value_converter_ |
std::vector< uint16 > | weight_cells_ |
cartographer::mapping::TSDF2D::TSDF2D | ( | const MapLimits & | limits, |
float | truncation_distance, | ||
float | max_weight, | ||
ValueConversionTables * | conversion_tables | ||
) |
Definition at line 24 of file tsdf_2d.cc.
cartographer::mapping::TSDF2D::TSDF2D | ( | const proto::Grid2D & | proto, |
ValueConversionTables * | conversion_tables | ||
) | [explicit] |
Definition at line 35 of file tsdf_2d.cc.
bool cartographer::mapping::TSDF2D::CellIsUpdated | ( | const Eigen::Array2i & | cell_index | ) | const |
Definition at line 49 of file tsdf_2d.cc.
std::unique_ptr< Grid2D > cartographer::mapping::TSDF2D::ComputeCroppedGrid | ( | ) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 118 of file tsdf_2d.cc.
bool cartographer::mapping::TSDF2D::DrawToSubmapTexture | ( | proto::SubmapQuery::Response::SubmapTexture *const | texture, |
transform::Rigid3d | local_pose | ||
) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 137 of file tsdf_2d.cc.
GridType cartographer::mapping::TSDF2D::GetGridType | ( | ) | const [override, virtual] |
Implements cartographer::mapping::Grid2D.
Definition at line 70 of file tsdf_2d.cc.
float cartographer::mapping::TSDF2D::GetTSD | ( | const Eigen::Array2i & | cell_index | ) | const |
Definition at line 72 of file tsdf_2d.cc.
std::pair< float, float > cartographer::mapping::TSDF2D::GetTSDAndWeight | ( | const Eigen::Array2i & | cell_index | ) | const |
Definition at line 88 of file tsdf_2d.cc.
float cartographer::mapping::TSDF2D::GetWeight | ( | const Eigen::Array2i & | cell_index | ) | const |
Definition at line 80 of file tsdf_2d.cc.
void cartographer::mapping::TSDF2D::GrowLimits | ( | const Eigen::Vector2f & | point | ) | [override, virtual] |
Reimplemented from cartographer::mapping::Grid2D.
Definition at line 100 of file tsdf_2d.cc.
void cartographer::mapping::TSDF2D::SetCell | ( | const Eigen::Array2i & | cell_index, |
const float | tsd, | ||
const float | weight | ||
) |
Definition at line 55 of file tsdf_2d.cc.
proto::Grid2D cartographer::mapping::TSDF2D::ToProto | ( | ) | const [override, virtual] |
Reimplemented from cartographer::mapping::Grid2D.
Definition at line 107 of file tsdf_2d.cc.
std::unique_ptr<TSDValueConverter> cartographer::mapping::TSDF2D::value_converter_ [private] |
std::vector<uint16> cartographer::mapping::TSDF2D::weight_cells_ [private] |