Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
cartographer::io::XRayPointsProcessor Class Reference

#include <xray_points_processor.h>

Inheritance diagram for cartographer::io::XRayPointsProcessor:
Inheritance graph
[legend]

Classes

struct  Aggregation
 
struct  ColumnData
 

Public Types

enum  DrawTrajectories { DrawTrajectories::kNo, DrawTrajectories::kYes }
 
- Public Types inherited from cartographer::io::PointsProcessor
enum  FlushResult { FlushResult::kRestartStream, FlushResult::kFinished }
 

Public Member Functions

Eigen::AlignedBox3i bounding_box () const
 
FlushResult Flush () override
 
void Process (std::unique_ptr< PointsBatch > batch) override
 
 XRayPointsProcessor (double voxel_size, const transform::Rigid3f &transform, const std::vector< mapping::Floor > &floors, const DrawTrajectories &draw_trajectories, const std::string &output_filename, const std::vector< mapping::proto::Trajectory > &trajectories, FileWriterFactory file_writer_factory, PointsProcessor *next)
 
 ~XRayPointsProcessor () override
 
- Public Member Functions inherited from cartographer::io::PointsProcessor
PointsProcessoroperator= (const PointsProcessor &)=delete
 
 PointsProcessor ()
 
 PointsProcessor (const PointsProcessor &)=delete
 
virtual ~PointsProcessor ()
 

Static Public Member Functions

static std::unique_ptr< XRayPointsProcessorFromDictionary (const std::vector< mapping::proto::Trajectory > &trajectories, FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)
 

Static Public Attributes

static constexpr const char * kConfigurationFileActionName
 

Private Member Functions

void Insert (const PointsBatch &batch, Aggregation *aggregation)
 
void WriteVoxels (const Aggregation &aggregation, FileWriter *const file_writer)
 

Private Attributes

std::vector< Aggregationaggregations_
 
Eigen::AlignedBox3i bounding_box_
 
const DrawTrajectories draw_trajectories_
 
FileWriterFactory file_writer_factory_
 
std::vector< mapping::Floorfloors_
 
PointsProcessor *const next_
 
const std::string output_filename_
 
const std::vector< mapping::proto::Trajectory > trajectories_
 
const transform::Rigid3f transform_
 

Detailed Description

Definition at line 35 of file xray_points_processor.h.

Member Enumeration Documentation

◆ DrawTrajectories

Enumerator
kNo 
kYes 

Definition at line 39 of file xray_points_processor.h.

Constructor & Destructor Documentation

◆ XRayPointsProcessor()

cartographer::io::XRayPointsProcessor::XRayPointsProcessor ( double  voxel_size,
const transform::Rigid3f transform,
const std::vector< mapping::Floor > &  floors,
const DrawTrajectories draw_trajectories,
const std::string &  output_filename,
const std::vector< mapping::proto::Trajectory > &  trajectories,
FileWriterFactory  file_writer_factory,
PointsProcessor next 
)

Definition at line 98 of file xray_points_processor.cc.

◆ ~XRayPointsProcessor()

cartographer::io::XRayPointsProcessor::~XRayPointsProcessor ( )
inlineoverride

Definition at line 53 of file xray_points_processor.h.

Member Function Documentation

◆ bounding_box()

Eigen::AlignedBox3i cartographer::io::XRayPointsProcessor::bounding_box ( ) const
inline

Definition at line 58 of file xray_points_processor.h.

◆ Flush()

PointsProcessor::FlushResult cartographer::io::XRayPointsProcessor::Flush ( )
overridevirtual

Implements cartographer::io::PointsProcessor.

Definition at line 230 of file xray_points_processor.cc.

◆ FromDictionary()

std::unique_ptr< XRayPointsProcessor > cartographer::io::XRayPointsProcessor::FromDictionary ( const std::vector< mapping::proto::Trajectory > &  trajectories,
FileWriterFactory  file_writer_factory,
common::LuaParameterDictionary dictionary,
PointsProcessor next 
)
static

Definition at line 118 of file xray_points_processor.cc.

◆ Insert()

void cartographer::io::XRayPointsProcessor::Insert ( const PointsBatch batch,
Aggregation aggregation 
)
private

Definition at line 195 of file xray_points_processor.cc.

◆ Process()

void cartographer::io::XRayPointsProcessor::Process ( std::unique_ptr< PointsBatch batch)
overridevirtual

Implements cartographer::io::PointsProcessor.

Definition at line 215 of file xray_points_processor.cc.

◆ WriteVoxels()

void cartographer::io::XRayPointsProcessor::WriteVoxels ( const Aggregation aggregation,
FileWriter *const  file_writer 
)
private

Definition at line 144 of file xray_points_processor.cc.

Member Data Documentation

◆ aggregations_

std::vector<Aggregation> cartographer::io::XRayPointsProcessor::aggregations_
private

Definition at line 89 of file xray_points_processor.h.

◆ bounding_box_

Eigen::AlignedBox3i cartographer::io::XRayPointsProcessor::bounding_box_
private

Definition at line 92 of file xray_points_processor.h.

◆ draw_trajectories_

const DrawTrajectories cartographer::io::XRayPointsProcessor::draw_trajectories_
private

Definition at line 77 of file xray_points_processor.h.

◆ file_writer_factory_

FileWriterFactory cartographer::io::XRayPointsProcessor::file_writer_factory_
private

Definition at line 79 of file xray_points_processor.h.

◆ floors_

std::vector<mapping::Floor> cartographer::io::XRayPointsProcessor::floors_
private

Definition at line 83 of file xray_points_processor.h.

◆ kConfigurationFileActionName

constexpr const char* cartographer::io::XRayPointsProcessor::kConfigurationFileActionName
static
Initial value:
=
"write_xray_image"

Definition at line 37 of file xray_points_processor.h.

◆ next_

PointsProcessor* const cartographer::io::XRayPointsProcessor::next_
private

Definition at line 80 of file xray_points_processor.h.

◆ output_filename_

const std::string cartographer::io::XRayPointsProcessor::output_filename_
private

Definition at line 85 of file xray_points_processor.h.

◆ trajectories_

const std::vector<mapping::proto::Trajectory> cartographer::io::XRayPointsProcessor::trajectories_
private

Definition at line 78 of file xray_points_processor.h.

◆ transform_

const transform::Rigid3f cartographer::io::XRayPointsProcessor::transform_
private

Definition at line 86 of file xray_points_processor.h.


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