Type class
Base class for estimated variables.
Contents
This class is used how variables are represented or updated (e.g., vectors or quaternions). Each variable is defined by its error state size and its location in the covariance matrix. We additionally require all sub-types to have a update procedure.
Derived classes
Constructors, destructors, conversion operators
Public functions
- void set_local_id(int new_id) virtual
- Sets id used to track location of variable in the filter covariance.
- auto id() -> int
- Access to variable id (i.e. its location in the covariance)
- auto size() -> int
- Access to variable size (i.e. its error state size)
- void update(const Eigen::VectorXd dx) pure virtual
- Update variable due to perturbation of error state.
- auto value() const -> Eigen::MatrixXd virtual
- Access variable's estimate.
- auto fej() const -> Eigen::MatrixXd virtual
- Access variable's first-estimate.
- void set_value(const Eigen::MatrixXd new_value) virtual
- Overwrite value of state's estimate.
- void set_fej(const Eigen::MatrixXd new_value) virtual
- Overwrite value of first-estimate.
- auto clone() -> Type* pure virtual
- Create a clone of this variable.
- auto check_if_same_variable(const Type* check) -> Type* virtual
- Determine if "check" is the same variable If the passed variable is a sub-variable or the current variable this will return it. Otherwise it will return a nullptr, meaning that it was unable to be found.
Protected variables
Function documentation
void ov_core:: Type:: set_local_id(int new_id) virtual
Sets id used to track location of variable in the filter covariance.
| Parameters | |
|---|---|
| new_id | entry in filter covariance corresponding to this variable |
void ov_core:: Type:: update(const Eigen::VectorXd dx) pure virtual
Update variable due to perturbation of error state.
| Parameters | |
|---|---|
| dx | Perturbation used to update the variable through a defined "boxplus" operation |
void ov_core:: Type:: set_value(const Eigen::MatrixXd new_value) virtual
Overwrite value of state's estimate.
| Parameters | |
|---|---|
| new_value | New value that will overwrite state's value |
void ov_core:: Type:: set_fej(const Eigen::MatrixXd new_value) virtual
Overwrite value of first-estimate.
| Parameters | |
|---|---|
| new_value | New value that will overwrite state's fej |
Type* ov_core:: Type:: check_if_same_variable(const Type* check) virtual
Determine if "check" is the same variable If the passed variable is a sub-variable or the current variable this will return it. Otherwise it will return a nullptr, meaning that it was unable to be found.
| Parameters | |
|---|---|
| check | Type pointer to compare to |