22 #include "Eigen/Geometry" 26 #include "glog/logging.h" 31 proto::ProbabilityGridRangeDataInserterOptions2D
34 proto::ProbabilityGridRangeDataInserterOptions2D options;
35 options.set_hit_probability(
36 parameter_dictionary->
GetDouble(
"hit_probability"));
37 options.set_miss_probability(
38 parameter_dictionary->
GetDouble(
"miss_probability"));
39 options.set_insert_free_space(
40 parameter_dictionary->
HasKey(
"insert_free_space")
41 ? parameter_dictionary->
GetBool(
"insert_free_space")
43 CHECK_GT(options.hit_probability(), 0.5);
44 CHECK_LT(options.miss_probability(), 0.5);
49 const proto::ProbabilityGridRangeDataInserterOptions2D& options)
52 Odds(options.hit_probability()))),
54 Odds(options.miss_probability()))) {}
62 CHECK_NOTNULL(probability_grid));
const proto::ProbabilityGridRangeDataInserterOptions2D options_
void CastRays(const sensor::RangeData &range_data, const std::vector< uint16 > &hit_table, const std::vector< uint16 > &miss_table, const bool insert_free_space, ProbabilityGrid *const probability_grid)
std::vector< uint16 > ComputeLookupTableToApplyCorrespondenceCostOdds(float odds)
proto::ProbabilityGridRangeDataInserterOptions2D CreateProbabilityGridRangeDataInserterOptions2D(common::LuaParameterDictionary *parameter_dictionary)
double GetDouble(const std::string &key)
float Odds(float probability)
ProbabilityGridRangeDataInserter2D(const proto::ProbabilityGridRangeDataInserterOptions2D &options)
proto::ProbabilityGridRangeDataInserterOptions2D options_
virtual void Insert(const sensor::RangeData &range_data, GridInterface *grid) const override
const std::vector< uint16 > miss_table_
bool GetBool(const std::string &key)
const std::vector< uint16 > hit_table_
bool HasKey(const std::string &key) const