#include <tsd_value_converter.h>
Public Member Functions | |
float | getMaxTSD () const |
float | getMaxWeight () const |
float | getMinTSD () const |
float | getMinWeight () const |
uint16 | TSDToValue (const float tsd) const |
TSDValueConverter (float max_tsd, float max_weight, ValueConversionTables *conversion_tables) | |
float | ValueToTSD (const uint16 value) const |
float | ValueToWeight (const uint16 value) const |
uint16 | WeightToValue (const float weight) const |
Static Public Member Functions | |
static uint16 | getUnknownTSDValue () |
static uint16 | getUnknownWeightValue () |
static uint16 | getUpdateMarker () |
Private Member Functions | |
float | ClampTSD (const float tsd) const |
float | ClampWeight (const float weight) const |
Private Attributes | |
float | max_tsd_ |
float | max_weight_ |
float | min_tsd_ |
float | tsd_resolution_ |
const std::vector< float > * | value_to_tsd_ |
const std::vector< float > * | value_to_weight_ |
float | weight_resolution_ |
Static Private Attributes | |
static constexpr float | min_weight_ = 0.f |
static constexpr uint16 | unknown_tsd_value_ = 0 |
static constexpr uint16 | unknown_weight_value_ = 0 |
static constexpr uint16 | update_marker_ = 1u << 15 |
Definition at line 33 of file tsd_value_converter.h.
cartographer::mapping::TSDValueConverter::TSDValueConverter | ( | float | max_tsd, |
float | max_weight, | ||
ValueConversionTables * | conversion_tables | ||
) |
Definition at line 22 of file tsd_value_converter.cc.
float cartographer::mapping::TSDValueConverter::ClampTSD | ( | const float | tsd | ) | const [inline, private] |
Definition at line 79 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::ClampWeight | ( | const float | weight | ) | const [inline, private] |
Definition at line 83 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::getMaxTSD | ( | ) | const [inline] |
Definition at line 72 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::getMaxWeight | ( | ) | const [inline] |
Definition at line 74 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::getMinTSD | ( | ) | const [inline] |
Definition at line 73 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::getMinWeight | ( | ) | const [inline] |
Definition at line 75 of file tsd_value_converter.h.
static uint16 cartographer::mapping::TSDValueConverter::getUnknownTSDValue | ( | ) | [inline, static] |
Definition at line 69 of file tsd_value_converter.h.
static uint16 cartographer::mapping::TSDValueConverter::getUnknownWeightValue | ( | ) | [inline, static] |
Definition at line 70 of file tsd_value_converter.h.
static uint16 cartographer::mapping::TSDValueConverter::getUpdateMarker | ( | ) | [inline, static] |
Definition at line 71 of file tsd_value_converter.h.
uint16 cartographer::mapping::TSDValueConverter::TSDToValue | ( | const float | tsd | ) | const [inline] |
Definition at line 39 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::ValueToTSD | ( | const uint16 | value | ) | const [inline] |
Definition at line 59 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::ValueToWeight | ( | const uint16 | value | ) | const [inline] |
Definition at line 65 of file tsd_value_converter.h.
uint16 cartographer::mapping::TSDValueConverter::WeightToValue | ( | const float | weight | ) | const [inline] |
Definition at line 48 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::max_tsd_ [private] |
Definition at line 87 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::max_weight_ [private] |
Definition at line 89 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::min_tsd_ [private] |
Definition at line 88 of file tsd_value_converter.h.
constexpr float cartographer::mapping::TSDValueConverter::min_weight_ = 0.f [static, private] |
Definition at line 92 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::tsd_resolution_ [private] |
Definition at line 90 of file tsd_value_converter.h.
constexpr uint16 cartographer::mapping::TSDValueConverter::unknown_tsd_value_ = 0 [static, private] |
Definition at line 93 of file tsd_value_converter.h.
constexpr uint16 cartographer::mapping::TSDValueConverter::unknown_weight_value_ = 0 [static, private] |
Definition at line 94 of file tsd_value_converter.h.
constexpr uint16 cartographer::mapping::TSDValueConverter::update_marker_ = 1u << 15 [static, private] |
Definition at line 95 of file tsd_value_converter.h.
const std::vector<float>* cartographer::mapping::TSDValueConverter::value_to_tsd_ [private] |
Definition at line 97 of file tsd_value_converter.h.
const std::vector<float>* cartographer::mapping::TSDValueConverter::value_to_weight_ [private] |
Definition at line 98 of file tsd_value_converter.h.
float cartographer::mapping::TSDValueConverter::weight_resolution_ [private] |
Definition at line 91 of file tsd_value_converter.h.