Go to the documentation of this file.
24 struct MagneticModelManagerPrivate;
57 void setModelPath(
const cras::optional<std::string>& modelPath);
72 virtual cras::expected<std::shared_ptr<MagneticModel>, std::string>
getMagneticModel(
73 const ros::Time& stamp,
bool strict)
const;
81 virtual cras::expected<std::shared_ptr<MagneticModel>, std::string>
getMagneticModel(
82 const std::string& name,
bool strict)
const;
86 std::unique_ptr<MagneticModelManagerPrivate>
data;
Earth magnetic field model.
MagneticModelManager(const cras::LogHelperPtr &log, const cras::optional< std::string > &modelPath={})
Create magnetic model manager.
void setModelPath(const cras::optional< std::string > &modelPath)
Set the path to the folder with stored models.
virtual cras::expected< std::shared_ptr< MagneticModel >, std::string > getMagneticModel(const ros::Time &stamp, bool strict) const
Get the most suitable magnetic model for the given year.
::cras::LogHelper::Ptr LogHelperPtr
virtual ~MagneticModelManager()
std::unique_ptr< MagneticModelManagerPrivate > data
PIMPL data.
std::string getModelPath() const
Get the model path.
virtual std::string getBestMagneticModelName(const ros::Time &date) const
Get the best magnetic model for the given date.
magnetic_model
Author(s): Martin Pecka
autogenerated on Wed Jan 8 2025 04:03:10