Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types
labust::navigation::LDTravModel Class Reference

#include <LDTravModelExtended.hpp>

Inheritance diagram for labust::navigation::LDTravModel:
Inheritance graph
[legend]

List of all members.

Classes

struct  ModelParams

Public Types

enum  { inputSize = 6 }
enum  { measSize = 7 }
enum  {
  X = 0, Y, Z, Kroll,
  M, N
}
enum  {
  u = 0, v, w, p,
  q, r, xp, yp,
  zp, phi, theta, psi,
  xc, yc, b, buoyancy,
  roll_restore, pitch_restore, altitude, stateNum
}
typedef vector input_type
typedef vector output_type

Public Member Functions

double calculateAltInovationVariance (const matrix &P)
void calculateUVInovationVariance (const matrix &P, double &uin, double &vin)
void calculateXYInovationVariance (const matrix &P, double &xin, double &yin)
void estimate_y (output_type &y)
void getNEDSpeed (double &xdot, double &ydot)
void initModel ()
 LDTravModel ()
void setDVLRotationTrustFactor (double trustf)
void setParameters (const ModelParams &surge, const ModelParams &sway, const ModelParams &heave, const ModelParams &roll, const ModelParams &pitch, const ModelParams &yaw)
void setSwayCorrection (double kvr)
void step (const input_type &input)
const output_typeupdate (vector &measurements, vector &newMeas)
void useDvlModel (int flag)
 ~LDTravModel ()

Protected Member Functions

void derivativeAW ()
void derivativeH ()
void derivativeHV (int num)

Protected Attributes

int dvlModel
ModelParams heave
matrix Hnl
double kvr
 The sway correction factor.
output_type measurement
ModelParams pitch
ModelParams roll
ModelParams surge
ModelParams sway
double trustf
 DVL rotation trust factor.
double xdot
vector y
ModelParams yaw
double ydot
vector ynl

Private Types

typedef SSModel< double > Base

Detailed Description

This class implements a EKF filter for the LDTravOcean ROV.

Todo:

Extract the update method into a separate file for future use.

Extract the ModelParams to a snippet

Definition at line 51 of file LDTravModelExtended.hpp.


Member Typedef Documentation

Definition at line 55 of file LDTravModelExtended.hpp.

Definition at line 56 of file LDTravModelExtended.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
inputSize 

Definition at line 80 of file LDTravModelExtended.hpp.

anonymous enum
Enumerator:
measSize 

Definition at line 81 of file LDTravModelExtended.hpp.

anonymous enum
Enumerator:
X 
Y 
Z 
Kroll 
M 
N 

Definition at line 83 of file LDTravModelExtended.hpp.

anonymous enum
Enumerator:
u 
v 
w 
p 
q 
r 
xp 
yp 
zp 
phi 
theta 
psi 
xc 
yc 
b 
buoyancy 
roll_restore 
pitch_restore 
altitude 
stateNum 

Definition at line 78 of file LDTravModelExtended.hpp.


Constructor & Destructor Documentation

The default constructor.

Definition at line 44 of file LDTravModelExtended.cpp.

Generic destructor.

Definition at line 54 of file LDTravModelExtended.cpp.


Member Function Documentation

Definition at line 76 of file LDTravModelExtended.cpp.

void LDTravModel::calculateUVInovationVariance ( const matrix P,
double &  uin,
double &  vin 
)

Definition at line 81 of file LDTravModelExtended.cpp.

void LDTravModel::calculateXYInovationVariance ( const matrix P,
double &  xin,
double &  yin 
)

Definition at line 70 of file LDTravModelExtended.cpp.

void LDTravModel::derivativeAW ( ) [protected]

Calculate the Jacobian matrices.

Definition at line 126 of file LDTravModelExtended.cpp.

void LDTravModel::derivativeH ( ) [protected]

Calculate the nonlinear H derivative.

Definition at line 226 of file LDTravModelExtended.cpp.

void labust::navigation::LDTravModel::derivativeHV ( int  num) [protected]

Calculate the Jacobian matrices.

Calculates the estimated output of the model.

Parameters:
yInserts the estimated output values here.

Definition at line 221 of file LDTravModelExtended.cpp.

void labust::navigation::LDTravModel::getNEDSpeed ( double &  xdot,
double &  ydot 
) [inline]

Return the speeds in the local frame.

Definition at line 141 of file LDTravModelExtended.hpp.

Initialize the model to default values

Definition at line 56 of file LDTravModelExtended.cpp.

Definition at line 149 of file LDTravModelExtended.hpp.

void labust::navigation::LDTravModel::setParameters ( const ModelParams surge,
const ModelParams sway,
const ModelParams heave,
const ModelParams roll,
const ModelParams pitch,
const ModelParams yaw 
) [inline]

Set the model parameters.

Definition at line 119 of file LDTravModelExtended.hpp.

Definition at line 151 of file LDTravModelExtended.hpp.

void LDTravModel::step ( const input_type input)

Perform a prediction step based on the system input.

Parameters:
uSystem input.

Definition at line 87 of file LDTravModelExtended.cpp.

const LDTravModel::output_type & LDTravModel::update ( vector measurements,
vector newMeas 
)

Setup the measurement matrix for available measurements.

Definition at line 161 of file LDTravModelExtended.cpp.

void labust::navigation::LDTravModel::useDvlModel ( int  flag) [inline]

Definition at line 147 of file LDTravModelExtended.hpp.


Member Data Documentation

The DVL linear/nonlinear flag.

Definition at line 185 of file LDTravModelExtended.hpp.

Definition at line 169 of file LDTravModelExtended.hpp.

The nonlinear H.

Definition at line 189 of file LDTravModelExtended.hpp.

The sway correction factor.

Definition at line 181 of file LDTravModelExtended.hpp.

The newest measurement.

Definition at line 173 of file LDTravModelExtended.hpp.

Definition at line 169 of file LDTravModelExtended.hpp.

Definition at line 169 of file LDTravModelExtended.hpp.

The model parameters.

Definition at line 169 of file LDTravModelExtended.hpp.

Definition at line 169 of file LDTravModelExtended.hpp.

DVL rotation trust factor.

Definition at line 179 of file LDTravModelExtended.hpp.

The NED speeds.

Definition at line 177 of file LDTravModelExtended.hpp.

Definition at line 193 of file LDTravModelExtended.hpp.

Definition at line 169 of file LDTravModelExtended.hpp.

Definition at line 177 of file LDTravModelExtended.hpp.

The nonlinear and final y.

Definition at line 193 of file LDTravModelExtended.hpp.


The documentation for this class was generated from the following files:


labust_navigation
Author(s): Gyula Nagy
autogenerated on Fri Aug 28 2015 11:23:33