17 #ifndef CARTOGRAPHER_MAPPING_3D_SUBMAPS_H_ 18 #define CARTOGRAPHER_MAPPING_3D_SUBMAPS_H_ 24 #include "Eigen/Geometry" 27 #include "cartographer/mapping/proto/submap_visualization.pb.h" 32 #include "cartographer/mapping_3d/proto/submaps_options.pb.h" 39 namespace mapping_3d {
44 const mapping_2d::RangeDataInserter& range_data_inserter,
45 mapping_2d::ProbabilityGrid* result);
48 common::LuaParameterDictionary* parameter_dictionary);
52 Submap(
float high_resolution,
float low_resolution,
65 mapping::proto::SubmapQuery::Response* response)
const override;
79 explicit Submaps(
const proto::SubmapsOptions& options);
84 const Submap* Get(
int index)
const override;
85 int size()
const override;
91 const Eigen::Quaterniond& gravity_alignment);
107 #endif // CARTOGRAPHER_MAPPING_3D_SUBMAPS_H_
void ToResponseProto(const transform::Rigid3d &global_submap_pose, mapping::proto::SubmapQuery::Response *response) const override
const HybridGrid & high_resolution_hybrid_grid() const
HybridGrid low_resolution_hybrid_grid_
RangeDataInserter range_data_inserter_
transform::Rigid3d local_pose() const
Submap(float high_resolution, float low_resolution, const transform::Rigid3d &local_pose)
std::vector< std::unique_ptr< Submap > > submaps_
proto::SubmapsOptions CreateSubmapsOptions(common::LuaParameterDictionary *parameter_dictionary)
const HybridGrid & low_resolution_hybrid_grid() const
HybridGrid high_resolution_hybrid_grid_
const proto::SubmapsOptions options_
void InsertIntoProbabilityGrid(const sensor::RangeData &range_data, const transform::Rigid3f &pose, const float slice_z, const mapping_2d::RangeDataInserter &range_data_inserter, mapping_2d::ProbabilityGrid *result)
const bool finished() const