17 #ifndef GZ_SENSORS_MAGNETOMETERSENSOR_HH_
18 #define GZ_SENSORS_MAGNETOMETERSENSOR_HH_
24 #include <gz/utils/SuppressWarning.hh>
25 #include <gz/math/Pose3.hh>
27 #include <gz/sensors/config.hh>
28 #include <gz/sensors/magnetometer/Export.hh>
37 inline namespace GZ_SENSORS_VERSION_NAMESPACE {
40 class MagnetometerSensorPrivate;
57 public:
virtual bool Load(
const sdf::Sensor &_sdf)
override;
62 public:
virtual bool Load(sdf::ElementPtr _sdf)
override;
66 public:
virtual bool Init()
override;
73 public:
virtual bool Update(
74 const std::chrono::steady_clock::duration &_now)
override;
78 public:
void SetWorldPose(
const math::Pose3d _pose);
82 public: math::Pose3d WorldPose()
const;
86 public:
void SetWorldMagneticField(
const math::Vector3d &_field);
90 public: math::Vector3d WorldMagneticField()
const;
94 public: math::Vector3d MagneticField()
const;
98 public:
virtual bool HasConnections()
const override;
100 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
104 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING