AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
AccelerometerModel.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 zeroGBias = agx::Vec3( 260.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 setZeroGBias( const agx::Vec3& zeroGBias );
89
94 const agx::Vec3& getZeroGBias() const;
95
100
102
103 public:
104 virtual ~AccelerometerModel() = default;
105
107
109
110 private:
111 TriaxialRange m_range;
112 TriaxialCrossSensitivity m_crossAxisSensitivity;
113 agx::Vec3 m_zeroGBias;
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 accelerometer model describing the fundamental parameters, such as measurement range and zero bi...
const ITriaxialSignalSystemNodeRefVector & getOutputModifiers() const
const TriaxialRange & getRange() const
AccelerometerModel(TriaxialRange range=agx::RangeReal(std::numeric_limits< agx::Real >::lowest(), std::numeric_limits< agx::Real >::max()), TriaxialCrossSensitivity crossSensitivity=0.01, agx::Vec3 zeroGBias=agx::Vec3(260.0), ITriaxialSignalSystemNodeRefVector outputModifiers=ITriaxialSignalSystemNodeRefVector())
Constructs an accelerometer model with the specified parameters.
const agx::Vec3 & getZeroGBias() const
void setRange(const TriaxialRange &range)
Set the detectable range for the accelerometer.
void setCrossAxisSensitivity(const TriaxialCrossSensitivity &crossSensitivity)
Set the accelerometer cross-axis sensitivity.
void setZeroGBias(const agx::Vec3 &zeroGBias)
Set the bias in acceleration at zero externally applied acceleration.
static AccelerometerModel * makeIdealModel()
Creates an accelerometer model outputting ideal measurement data (ground truth values).
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.