17 #ifndef CARTOGRAPHER_MAPPING_SUBMAPS_H_ 18 #define CARTOGRAPHER_MAPPING_SUBMAPS_H_ 23 #include "Eigen/Geometry" 28 #include "cartographer/mapping/proto/submap_visualization.pb.h" 31 #include "glog/logging.h" 37 inline float Logit(
float probability) {
38 return std::log(probability / (1.f - probability));
48 254.f / (kMaxLogOdds - kMinLogOdds)) +
80 proto::SubmapQuery::Response* response)
const = 0;
113 int matching_index()
const;
117 std::vector<int> insertion_indices()
const;
121 virtual const Submap* Get(
int index)
const = 0;
124 virtual int size()
const = 0;
130 #endif // CARTOGRAPHER_MAPPING_SUBMAPS_H_
size_t num_range_data() const
int RoundToInt(const float x)
const mapping_2d::ProbabilityGrid * finished_probability_grid() const
constexpr float kMinProbability
transform::Rigid3d local_pose() const
constexpr float kMaxProbability
float Logit(float probability)
const transform::Rigid3d local_pose_
uint8 ProbabilityToLogOddsInteger(const float probability)
virtual void ToResponseProto(const transform::Rigid3d &global_submap_pose, proto::SubmapQuery::Response *response) const =0
const mapping_2d::ProbabilityGrid * finished_probability_grid_
Submap(const transform::Rigid3d &local_pose)