WSF
WsfAbsoluteSensorErrorModel.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2021 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFABSOLUTESENSORERRORMODEL_HPP
13#define WSFABSOLUTESENSORERRORMODEL_HPP
14
15#include "wsf_export.h"
16
17#include <memory>
18
19#include "UtVec3.hpp"
21
22namespace wsf
23{
24
28
37class WSF_EXPORT AbsoluteSensorErrorModel : public SensorErrorModel<AbsoluteMeasurementError>
38{
39public:
43 static std::unique_ptr<SensorErrorModelBase> ObjectFactory(const std::string& aTypeName);
44 SensorErrorModelBase* Clone() const override;
45 bool ProcessInput(UtInput& aInput) override;
46
47 void SetSigma(double aSigma) { mSigma = aSigma; }
48 double GetSigma() const { return mSigma; }
49
50 std::unique_ptr<AbsoluteMeasurementError> ComputeMeasurementErrors(WsfSensorResult& aResult) const override;
51 void ApplyMeasurementErrors(const AbsoluteMeasurementError& aErrors, WsfSensorResult& aResult) override;
52
53private:
54 bool mIs3D{false};
55 double mSigma{0.0};
56};
57
58} // namespace wsf
59#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfSensorResult.hpp:27
Definition WsfAbsoluteSensorErrorModel.hpp:38
void SetSigma(double aSigma)
Definition WsfAbsoluteSensorErrorModel.hpp:47
double GetSigma() const
Definition WsfAbsoluteSensorErrorModel.hpp:48
bool ProcessInput(UtInput &aInput) override
Definition WsfAbsoluteSensorErrorModel.cpp:72
static std::unique_ptr< SensorErrorModelBase > ObjectFactory(const std::string &aTypeName)
Definition WsfAbsoluteSensorErrorModel.cpp:37
SensorErrorModelBase * Clone() const override
Create a clone of "this" object.
Definition WsfAbsoluteSensorErrorModel.cpp:31
A base class for SensorErrorModels.
Definition WsfSensorErrorModel.hpp:35
This class defines the interface to compute specific measurement errors.
Definition WsfSensorErrorModel.hpp:70
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
UtVec3d AbsoluteMeasurementError
A set of absolute sensor errors to be used by the AbsoluteSensorErrorModel. It is modeled as a NED of...
Definition WsfAbsoluteSensorErrorModel.hpp:27
Copyrights Multiple, All Rights Reserved