#include <xray_points_processor.h>
Classes | |
struct | Aggregation |
struct | ColumnData |
Public Types | |
enum | DrawTrajectories { kNo, kYes } |
Public Member Functions | |
Eigen::AlignedBox3i | bounding_box () const |
FlushResult | Flush () override |
void | Process (std::unique_ptr< PointsBatch > batch) override |
XRayPointsProcessor (double voxel_size, double saturation_factor, 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 | |
Static Public Member Functions | |
static std::unique_ptr < XRayPointsProcessor > | FromDictionary (const std::vector< mapping::proto::Trajectory > &trajectories, FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next) |
Static Public Attributes | |
static constexpr const char * | kConfigurationFileActionName = "write_xray_image" |
Private Member Functions | |
void | Insert (const PointsBatch &batch, Aggregation *aggregation) |
void | WriteVoxels (const Aggregation &aggregation, FileWriter *const file_writer) |
Private Attributes | |
std::vector< Aggregation > | aggregations_ |
Eigen::AlignedBox3i | bounding_box_ |
const DrawTrajectories | draw_trajectories_ |
FileWriterFactory | file_writer_factory_ |
std::vector< mapping::Floor > | floors_ |
PointsProcessor *const | next_ |
const std::string | output_filename_ |
const double | saturation_factor_ |
const std::vector < mapping::proto::Trajectory > | trajectories_ |
const transform::Rigid3f | transform_ |
Definition at line 35 of file xray_points_processor.h.
Definition at line 39 of file xray_points_processor.h.
cartographer::io::XRayPointsProcessor::XRayPointsProcessor | ( | double | voxel_size, |
double | saturation_factor, | ||
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 118 of file xray_points_processor.cc.
cartographer::io::XRayPointsProcessor::~XRayPointsProcessor | ( | ) | [inline, override] |
Definition at line 54 of file xray_points_processor.h.
Eigen::AlignedBox3i cartographer::io::XRayPointsProcessor::bounding_box | ( | ) | const [inline] |
Definition at line 59 of file xray_points_processor.h.
PointsProcessor::FlushResult cartographer::io::XRayPointsProcessor::Flush | ( | ) | [override, virtual] |
Implements cartographer::io::PointsProcessor.
Definition at line 256 of file xray_points_processor.cc.
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 140 of file xray_points_processor.cc.
void cartographer::io::XRayPointsProcessor::Insert | ( | const PointsBatch & | batch, |
Aggregation * | aggregation | ||
) | [private] |
Definition at line 221 of file xray_points_processor.cc.
void cartographer::io::XRayPointsProcessor::Process | ( | std::unique_ptr< PointsBatch > | batch | ) | [override, virtual] |
Implements cartographer::io::PointsProcessor.
Definition at line 241 of file xray_points_processor.cc.
void cartographer::io::XRayPointsProcessor::WriteVoxels | ( | const Aggregation & | aggregation, |
FileWriter *const | file_writer | ||
) | [private] |
Definition at line 170 of file xray_points_processor.cc.
std::vector<Aggregation> cartographer::io::XRayPointsProcessor::aggregations_ [private] |
Definition at line 90 of file xray_points_processor.h.
Eigen::AlignedBox3i cartographer::io::XRayPointsProcessor::bounding_box_ [private] |
Definition at line 93 of file xray_points_processor.h.
Definition at line 78 of file xray_points_processor.h.
FileWriterFactory cartographer::io::XRayPointsProcessor::file_writer_factory_ [private] |
Definition at line 80 of file xray_points_processor.h.
std::vector<mapping::Floor> cartographer::io::XRayPointsProcessor::floors_ [private] |
Definition at line 84 of file xray_points_processor.h.
constexpr const char* cartographer::io::XRayPointsProcessor::kConfigurationFileActionName = "write_xray_image" [static] |
Definition at line 37 of file xray_points_processor.h.
PointsProcessor* const cartographer::io::XRayPointsProcessor::next_ [private] |
Definition at line 81 of file xray_points_processor.h.
const std::string cartographer::io::XRayPointsProcessor::output_filename_ [private] |
Definition at line 86 of file xray_points_processor.h.
const double cartographer::io::XRayPointsProcessor::saturation_factor_ [private] |
Definition at line 97 of file xray_points_processor.h.
const std::vector<mapping::proto::Trajectory> cartographer::io::XRayPointsProcessor::trajectories_ [private] |
Definition at line 79 of file xray_points_processor.h.
const transform::Rigid3f cartographer::io::XRayPointsProcessor::transform_ [private] |
Definition at line 87 of file xray_points_processor.h.