AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
GyroscopeModel.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 zeroRateBias = agx::Vec3( 3.0 ),
59
64 void setRange( const TriaxialRange& range );
65
69 const TriaxialRange& getRange() const;
70
75 void setCrossAxisSensitivity( const TriaxialCrossSensitivity& crossSensitivity );
76
82
88 void setZeroRateBias( const agx::Vec3& zeroRateBias );
89
94 const agx::Vec3& getZeroRateBias() const;
95
100
102
103 public:
104 virtual ~GyroscopeModel() = default;
105
107
109
110 private:
111 TriaxialRange m_range;
112 TriaxialCrossSensitivity m_crossAxisSensitivity;
113 agx::Vec3 m_zeroRateBias;
114 ITriaxialSignalSystemNodeRefVector m_outputModifiers;
115 };
116}
#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 gyroscope model describing the fundamental parameters, such as measurement range and zero bias,...
void setRange(const TriaxialRange &range)
Set the detectable range for the gyroscope.
const ITriaxialSignalSystemNodeRefVector & getOutputModifiers() const
GyroscopeModel(TriaxialRange range=agx::RangeReal(std::numeric_limits< agx::Real >::lowest(), std::numeric_limits< agx::Real >::max()), TriaxialCrossSensitivity crossSensitivity=0.01, agx::Vec3 zeroRateBias=agx::Vec3(3.0), ITriaxialSignalSystemNodeRefVector outputModifiers=ITriaxialSignalSystemNodeRefVector())
Constructs a gyroscope model with the specified parameters.
void setZeroRateBias(const agx::Vec3 &zeroRateBias)
Set the bias in rotational rate at zero externally applied rotation.
const TriaxialRange & getRange() const
const TriaxialCrossSensitivity & getCrossAxisSensitivity() const
const agx::Vec3 & getZeroRateBias() const
static GyroscopeModel * makeIdealModel()
Creates a gyroscope model outputting ideal measurement data (ground truth values).
void setCrossAxisSensitivity(const TriaxialCrossSensitivity &crossSensitivity)
Set the gyroscope cross-axis sensitivity.
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.