17 #ifndef CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ 18 #define CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ 27 #include "cartographer/mapping/proto/trajectory.pb.h" 40 const std::vector<mapping::Floor>& floors,
41 const string& output_filename,
46 const mapping::proto::Trajectory& trajectory,
52 void Process(std::unique_ptr<PointsBatch> batch)
override;
94 #endif // CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ FlushResult Flush() override
const transform::Rigid3f transform_
mapping_3d::HybridGridBase< bool > voxels
Eigen::AlignedBox3i bounding_box_
std::function< std::unique_ptr< FileWriter >(const string &filename)> FileWriterFactory
const string output_filename_
std::map< std::pair< int, int >, ColumnData > column_data
void Insert(const PointsBatch &batch, const transform::Rigid3f &transform, Aggregation *aggregation)
static std::unique_ptr< XRayPointsProcessor > FromDictionary(const mapping::proto::Trajectory &trajectory, FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)
std::vector< mapping::Floor > floors_
XRayPointsProcessor(double voxel_size, const transform::Rigid3f &transform, const std::vector< mapping::Floor > &floors, const string &output_filename, FileWriterFactory file_writer_factory, PointsProcessor *next)
std::vector< Aggregation > aggregations_
~XRayPointsProcessor() override
void WriteVoxels(const Aggregation &aggregation, FileWriter *const file_writer)
PointsProcessor *const next_
FileWriterFactory file_writer_factory_
static constexpr const char * kConfigurationFileActionName
Eigen::AlignedBox3i bounding_box() const
void Process(std::unique_ptr< PointsBatch > batch) override