AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
MagnetometerModel.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#pragma once
17#include <agxSensor/export.h>
21
23
24#include <agx/Referenced.h>
25
26namespace agxSensor
27{
29
36 {
37 public:
43
44 public:
54 std::numeric_limits<agx::Real>::lowest(),
55 std::numeric_limits<agx::Real>::max() ),
56 TriaxialCrossSensitivity crossSensitivity = 0.01,
57 agx::Vec3 zeroFluxBias = agx::Vec3( 0.0 ),
59
64 void setRange( const TriaxialRange& range );
65
69 const TriaxialRange& getRange() const;
70
75 void setCrossAxisSensitivity( const TriaxialCrossSensitivity& crossSensitivity );
76
82
89 void setZeroFluxBias( const agx::Vec3& zeroFluxBias );
90
95 const agx::Vec3& getZeroFluxBias() const;
96
101
103
104 public:
105 virtual ~MagnetometerModel() = default;
106
108
110
111 private:
112 TriaxialRange m_range;
113 TriaxialCrossSensitivity m_crossAxisSensitivity;
114 agx::Vec3 m_zeroFluxBias;
115 ITriaxialSignalSystemNodeRefVector m_outputModifiers;
116 };
117}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXSENSOR_EXPORT
Base magnetometer model describing the fundamental parameters, such as measurement range and zero flu...
MagnetometerModel(TriaxialRange range=agx::RangeReal(std::numeric_limits< agx::Real >::lowest(), std::numeric_limits< agx::Real >::max()), TriaxialCrossSensitivity crossSensitivity=0.01, agx::Vec3 zeroFluxBias=agx::Vec3(0.0), ITriaxialSignalSystemNodeRefVector outputModifiers=ITriaxialSignalSystemNodeRefVector())
Constructs a magnetometer model with the specified parameters.
const ITriaxialSignalSystemNodeRefVector & getOutputModifiers() const
const agx::Vec3 & getZeroFluxBias() const
void setZeroFluxBias(const agx::Vec3 &zeroFluxBias)
Set the bias in magnetic flux density under conditions without externally applied magnetic field.
static MagnetometerModel * makeIdealModel()
Creates a magnetometer model outputting ideal measurement data (ground truth values).
void setCrossAxisSensitivity(const TriaxialCrossSensitivity &crossSensitivity)
Set the magnetometer cross-axis sensitivity.
const TriaxialRange & getRange() const
void setRange(const TriaxialRange &range)
Set the detectable range for the magnetometer.
const TriaxialCrossSensitivity & getCrossAxisSensitivity() const
Specification of cross sensitivity between tree axis.
Range specification along three axis.
Definition: TriaxialRange.h:28
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
Base class providing referencing counted objects.
Definition: Referenced.h:120
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.