25 #ifndef INCLUDED_PoseDampedConstantVelocity_h_GUID_FCDCA6AF_D0A2_4D92_49BE_9DBAC5C2F622 26 #define INCLUDED_PoseDampedConstantVelocity_h_GUID_FCDCA6AF_D0A2_4D92_49BE_9DBAC5C2F622 44 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
51 double positionNoise = 0.01,
52 double orientationNoise = 0.1)
53 : m_constantVelModel(positionNoise, orientationNoise) {
57 void setNoiseAutocorrelation(
double positionNoise = 0.01,
58 double orientationNoise = 0.1) {
59 m_constantVelModel.setNoiseAutocorrelation(positionNoise,
64 m_constantVelModel.setNoiseAutocorrelation(noise);
76 return pose_externalized_rotation::
77 stateTransitionMatrixWithVelocityDamping(dt, m_damp);
80 void predictState(State &s,
double dt) {
84 s.setErrorCovariance(Pminus);
100 pose_externalized_rotation::dampenVelocities(ret, m_damp, dt);
111 #endif // INCLUDED_PoseDampedConstantVelocity_h_GUID_FCDCA6AF_D0A2_4D92_49BE_9DBAC5C2F622 types::DimSquareMatrix< StateType > predictErrorCovariance(StateType const &state, ProcessModelType &processModel, double dt)
Computes P-.
Definition: FlexibleKalmanBase.h:135
StateVector computeEstimate(State &state, double dt) const
Returns a 12-element vector containing a predicted state based on a constant velocity process model...
Definition: PoseConstantVelocity.h:99
A constant-velocity model for a 6DOF pose (with velocities)
Definition: PoseConstantVelocity.h:40
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
void setDamping(double damping)
Set the damping - must be positive.
Definition: PoseDampedConstantVelocity.h:67
A basically-constant-velocity model, with the addition of some damping of the velocities inspired by ...
Definition: PoseDampedConstantVelocity.h:42
StateSquareMatrix getStateTransitionMatrix(State const &, double dt) const
Also known as the "process model jacobian" in TAG, this is A.
Definition: PoseDampedConstantVelocity.h:74
StateSquareMatrix getSampledProcessNoiseCovariance(double dt) const
This is Q(deltaT) - the Sampled Process Noise Covariance.
Definition: PoseConstantVelocity.h:79
Definition: PoseState.h:164
StateSquareMatrix getSampledProcessNoiseCovariance(double dt) const
This is Q(deltaT) - the Sampled Process Noise Covariance.
Definition: PoseDampedConstantVelocity.h:91
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:127
void setStateVector(StateVector const &state)
set xhat
Definition: PoseState.h:175
StateVector computeEstimate(State &state, double dt) const
Returns a 12-element vector containing a predicted state based on a constant velocity process model...
Definition: PoseDampedConstantVelocity.h:97