17 #ifndef CARTOGRAPHER_MAPPING_2D_SUBMAPS_H_ 18 #define CARTOGRAPHER_MAPPING_2D_SUBMAPS_H_ 25 #include "cartographer/mapping/proto/submap_visualization.pb.h" 30 #include "cartographer/mapping_2d/proto/submaps_options.pb.h" 36 namespace mapping_2d {
39 const ProbabilityGrid& probability_grid);
42 common::LuaParameterDictionary* parameter_dictionary);
52 mapping::proto::SubmapQuery::Response* response)
const override;
64 explicit Submaps(
const proto::SubmapsOptions& options);
69 const Submap* Get(
int index)
const override;
70 int size()
const override;
76 void FinishSubmap(
int index);
77 void AddSubmap(
const Eigen::Vector2f& origin);
88 #endif // CARTOGRAPHER_MAPPING_2D_SUBMAPS_H_ ProbabilityGrid probability_grid_
std::vector< std::unique_ptr< Submap > > submaps_
const ProbabilityGrid & probability_grid() const
const proto::SubmapsOptions options_
ProbabilityGrid ComputeCroppedProbabilityGrid(const ProbabilityGrid &probability_grid)
void ToResponseProto(const transform::Rigid3d &global_submap_pose, mapping::proto::SubmapQuery::Response *response) const override
proto::SubmapsOptions CreateSubmapsOptions(common::LuaParameterDictionary *const parameter_dictionary)
Submap(const MapLimits &limits, const Eigen::Vector2f &origin)
RangeDataInserter range_data_inserter_