#include <LDTravModelExtended.hpp>
This class implements a EKF filter for the LDTravOcean ROV.
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.
typedef SSModel<double> labust::navigation::LDTravModel::Base [private] |
Reimplemented in labust::navigation::KFCore< labust::navigation::LDTravModel >.
Definition at line 53 of file LDTravModelExtended.hpp.
Definition at line 55 of file LDTravModelExtended.hpp.
Definition at line 56 of file LDTravModelExtended.hpp.
anonymous enum |
Definition at line 80 of file LDTravModelExtended.hpp.
anonymous enum |
Definition at line 81 of file LDTravModelExtended.hpp.
anonymous enum |
Definition at line 83 of file LDTravModelExtended.hpp.
anonymous enum |
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.
The default constructor.
Definition at line 44 of file LDTravModelExtended.cpp.
Generic destructor.
Definition at line 54 of file LDTravModelExtended.cpp.
double LDTravModel::calculateAltInovationVariance | ( | const matrix & | P | ) |
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.
void LDTravModel::estimate_y | ( | output_type & | y | ) |
Calculates the estimated output of the model.
y | Inserts 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.
void LDTravModel::initModel | ( | ) |
Initialize the model to default values
Definition at line 56 of file LDTravModelExtended.cpp.
void labust::navigation::LDTravModel::setDVLRotationTrustFactor | ( | double | trustf | ) | [inline] |
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.
void labust::navigation::LDTravModel::setSwayCorrection | ( | double | kvr | ) | [inline] |
Definition at line 151 of file LDTravModelExtended.hpp.
void LDTravModel::step | ( | const input_type & | input | ) |
Perform a prediction step based on the system input.
u | System 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.
int labust::navigation::LDTravModel::dvlModel [protected] |
The DVL linear/nonlinear flag.
Definition at line 185 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::heave [protected] |
Definition at line 169 of file LDTravModelExtended.hpp.
matrix labust::navigation::LDTravModel::Hnl [protected] |
The nonlinear H.
Definition at line 189 of file LDTravModelExtended.hpp.
double labust::navigation::LDTravModel::kvr [protected] |
The sway correction factor.
Definition at line 181 of file LDTravModelExtended.hpp.
The newest measurement.
Definition at line 173 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::pitch [protected] |
Definition at line 169 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::roll [protected] |
Definition at line 169 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::surge [protected] |
The model parameters.
Definition at line 169 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::sway [protected] |
Definition at line 169 of file LDTravModelExtended.hpp.
double labust::navigation::LDTravModel::trustf [protected] |
DVL rotation trust factor.
Definition at line 179 of file LDTravModelExtended.hpp.
double labust::navigation::LDTravModel::xdot [protected] |
The NED speeds.
Definition at line 177 of file LDTravModelExtended.hpp.
vector labust::navigation::LDTravModel::y [protected] |
Definition at line 193 of file LDTravModelExtended.hpp.
ModelParams labust::navigation::LDTravModel::yaw [protected] |
Definition at line 169 of file LDTravModelExtended.hpp.
double labust::navigation::LDTravModel::ydot [protected] |
Definition at line 177 of file LDTravModelExtended.hpp.
vector labust::navigation::LDTravModel::ynl [protected] |
The nonlinear and final y.
Definition at line 193 of file LDTravModelExtended.hpp.