17 #ifndef CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ 18 #define CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ 28 #include "cartographer/mapping/proto/trajectory.pb.h" 42 const std::vector<mapping::Floor>& floors,
44 const std::string& output_filename,
45 const std::vector<mapping::proto::Trajectory>& trajectories,
49 const std::vector<mapping::proto::Trajectory>& trajectories,
55 void Process(std::unique_ptr<PointsBatch> batch)
override;
98 #endif // CARTOGRAPHER_IO_XRAY_POINTS_PROCESSOR_H_ FlushResult Flush() override
const transform::Rigid3f transform_
std::function< std::unique_ptr< FileWriter >(const std::string &filename)> FileWriterFactory
Eigen::AlignedBox3i bounding_box_
void Insert(const PointsBatch &batch, Aggregation *aggregation)
const DrawTrajectories draw_trajectories_
std::map< std::pair< int, int >, ColumnData > column_data
const std::string output_filename_
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)
Eigen::AlignedBox3i bounding_box() const
std::vector< mapping::Floor > floors_
mapping::HybridGridBase< bool > voxels
std::vector< Aggregation > aggregations_
static std::unique_ptr< XRayPointsProcessor > FromDictionary(const std::vector< mapping::proto::Trajectory > &trajectories, FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)
~XRayPointsProcessor() override
const std::vector< mapping::proto::Trajectory > trajectories_
void WriteVoxels(const Aggregation &aggregation, FileWriter *const file_writer)
PointsProcessor *const next_
FileWriterFactory file_writer_factory_
static constexpr const char * kConfigurationFileActionName
void Process(std::unique_ptr< PointsBatch > batch) override