definitions.hpp File Reference

Definitions of types and some structures. More...

#include <chrono>
#include <deque>
#include <stdexcept>
#include <vector>
#include <boost/assert.hpp>
#include <boost/timer/timer.hpp>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <boost/math/constants/constants.hpp>
#include <state-observation/api.h>
#include <fstream>
#include <state-observation/tools/definitions.hxx>
Include dependency graph for definitions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stateObservation::isEigen< T >
 Checks if it is derived from EigenBase (the base class of all dense functions) More...
 
struct  stateObservation::isMatrix< T >
 Checks if a class is a specialization of Eigen::Matrix. More...
 
struct  stateObservation::isMatrix< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >
 
struct  stateObservation::EigenType< T >
 
struct  stateObservation::MatrixType< T >
 
class  stateObservation::FixOrDynMatrixToolsBySize< compileTimeRows, compileTimeCols >
 
class  stateObservation::FixOrDynMatrixToolsBySize<-1, compileTimeCols >
 
class  stateObservation::FixOrDynMatrixToolsBySize< compileTimeRows, -1 >
 
class  stateObservation::FixOrDynMatrixToolsBySize<-1, -1 >
 
class  stateObservation::FixOrDynMatrixTools< MatrixT >
 
class  stateObservation::DebugItemDefaultValue< T, defaultValue >
 
class  stateObservation::detail::DebugItemDefaultError< i, dummy >
 
class  stateObservation::detail::DebugItemDefaultError< message, dummy >
 
class  stateObservation::detail::DebugItemDefaultError< exception, dummy >
 
class  stateObservation::detail::DebugItemDefaultError< exceptionAddr, dummy >
 
class  stateObservation::DebugItem< T, defaultValue, debug >
 
class  stateObservation::DebugItem< T, defaultValue, false >
 this specialization contains no object More...
 
struct  stateObservation::EmptyChecker
 This structure is used as an additionalChecker for a CheckedItem that doesn't require additional tests. More...
 
class  stateObservation::CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker >
 this is a structure allowing for automatically verifying that the item has been initialized or not. The chckitm_reset() function allows to set it back to "not initialized" state. More...
 
struct  stateObservation::CheckNaN
 Additional checker that allows to check for the presence of NaN values in the item. More...
 
class  stateObservation::IndexedMatrixT< MatrixType, lazy >
 This class describes a structure composed by a matrix of a given size and a time-index parameter. It can tell also if it is initialized or not. More...
 
class  stateObservation::IndexedMatrixArrayT< MatrixType, Allocator >
 This class describes a structure that enables to store array of matrices with time indexation. More...
 
struct  stateObservation::tools::SimplestStopwatch
 

Namespaces

 stateObservation
 
 stateObservation::detail
 
 stateObservation::cst
 
 stateObservation::tools
 

Macros

#define M_PI   boost::math::constants::pi<double>()
 

Typedefs

typedef Eigen::VectorXd stateObservation::Vector
 Dynamic sized scalar vector. More...
 
typedef Eigen::Matrix< double, 1, 1 > stateObservation::Vector1
 1D Vector More...
 
typedef Eigen::Matrix< double, 2, 1 > stateObservation::Vector2
 2d Vector More...
 
typedef Eigen::Vector3d stateObservation::Vector3
 3D vector More...
 
typedef Eigen::Matrix< double, 3, 1, Eigen::DontAlign > stateObservation::Vector3Unaligned
 3D vector unaligned More...
 
typedef Eigen::Vector4d stateObservation::Vector4
 4D vector More...
 
typedef Eigen::Matrix< double, 5, 1 > stateObservation::Vector5
 5D vector More...
 
typedef Eigen::Matrix< double, 6, 1 > stateObservation::Vector6
 6D vector More...
 
typedef Eigen::MatrixXd stateObservation::Matrix
 Dynamic sized Matrix. More...
 
typedef Eigen::Matrix< double, 1, 1 > stateObservation::Matrix1
 1D scalar Matrix More...
 
typedef Eigen::Matrix2d stateObservation::Matrix2
 2D scalar Matrix More...
 
typedef Eigen::Matrix3d stateObservation::Matrix3
 3x3 Scalar Matrix More...
 
typedef Eigen::Matrix< double, 3, 3, Eigen::DontAlign > stateObservation::Matrix3Unaligned
 3x3 Scalar Matrix Unaligned More...
 
typedef Eigen::Matrix4d stateObservation::Matrix4
 4x4 Scalar Matrix More...
 
typedef Eigen::Matrix< double, 5, 5 > stateObservation::Matrix5
 5x5 Scalar Matrix More...
 
typedef Eigen::Matrix< double, 6, 6 > stateObservation::Matrix6
 6x6 Scalar Matrix More...
 
typedef Eigen::Matrix< double, 12, 12 > stateObservation::Matrix12
 12x12 scalar Matrix More...
 
typedef Eigen::Quaterniond stateObservation::Quaternion
 Quaternion. More...
 
typedef Eigen::Quaternion< double, Eigen::DontAlign > stateObservation::QuaternionUnaligned
 Quaternion Unaligned. More...
 
typedef Eigen::AngleAxis< double > stateObservation::AngleAxis
 Euler Axis/Angle representation of orientation. More...
 
typedef Eigen::Rotation2D< double > stateObservation::Rotation2D
 2D rotations More...
 
typedef Eigen::Index stateObservation::Index
 
typedef long int stateObservation::TimeIndex
 
typedef Index stateObservation::TimeSize
 
typedef DebugItemDefaultValue< bool, true > stateObservation::detail::defaultTrue
 
typedef DebugItemDefaultError< message > stateObservation::detail::defaultErrorMSG
 
typedef DebugItemDefaultError< exception > stateObservation::detail::defaultException
 
typedef DebugItemDefaultError< exceptionAddr > stateObservation::detail::defaultExceptionAddr
 
typedef CheckedItem< Matrix3, false, false, true, true, CheckNaN > stateObservation::CheckedMatrix3
 
typedef CheckedItem< Matrix6, false, false, true, true, CheckNaN > stateObservation::CheckedMatrix6
 
typedef CheckedItem< Matrix12, false, false, true, true, CheckNaN > stateObservation::CheckedMatrix12
 
typedef CheckedItem< Vector3, false, false, true, true, CheckNaN > stateObservation::CheckedVector3
 
typedef CheckedItem< Vector6, false, false, true, true, CheckNaN > stateObservation::CheckedVector6
 
typedef CheckedItem< Quaternion, false, false, true, true > stateObservation::CheckedQuaternion
 
typedef IndexedMatrixT< Matrix > stateObservation::IndexedMatrix
 
typedef IndexedMatrixT< Vector > stateObservation::IndexedVector
 
typedef IndexedMatrixT< Vector3 > stateObservation::IndexedVector3
 
typedef IndexedMatrixT< Matrix3 > stateObservation::IndexedMatrix3
 
typedef IndexedMatrixArrayT< Matrix > stateObservation::IndexedMatrixArray
 
typedef IndexedMatrixArrayT< Vector > stateObservation::IndexedVectorArray
 
typedef boost::timer::auto_cpu_timer stateObservation::auto_cpu_timer
 
typedef boost::timer::cpu_timer stateObservation::cpu_timer
 
typedef boost::timer::cpu_timer stateObservation::cpu_times
 

Enumerations

enum  stateObservation::detail::errorType { stateObservation::detail::message, stateObservation::detail::exception, stateObservation::detail::exceptionAddr }
 

Functions

void STATE_OBSERVATION_DLLAPI stateObservation::detail::defaultSum (const Vector &stateVector, const Vector &tangentVector, Vector &sum)
 
void STATE_OBSERVATION_DLLAPI stateObservation::detail::defaultDifference (const Vector &stateVector1, const Vector &stateVector2, Vector &difference)
 
bool stateObservation::isApprox (double a, double b, double relativePrecision=cst::epsilon1)
 checks if two scalars have approximately the same value up to a given relative precision More...
 
bool stateObservation::isApproxAbs (double a, double b, double absolutePrecision=cst::epsilon1)
 checks if two scalars have approximately the same value up to a given absolute precision More...
 
std::string STATE_OBSERVATION_DLLAPI stateObservation::tools::matrixToString (const Matrix &mat)
 
std::string STATE_OBSERVATION_DLLAPI stateObservation::tools::vectorToString (const Vector &v)
 
Matrix STATE_OBSERVATION_DLLAPI stateObservation::tools::stringToMatrix (const std::string &str, Index rows, Index cols)
 
Vector STATE_OBSERVATION_DLLAPI stateObservation::tools::stringToVector (const std::string &str, Index length)
 
Vector STATE_OBSERVATION_DLLAPI stateObservation::tools::stringToVector (const std::string &str)
 

Variables

constexpr double stateObservation::cst::gravityConstant = 9.80665
 
const Vector stateObservation::cst::gravity = gravityConstant * Vector3::UnitZ()
 Gravity Vector along Z. More...
 
constexpr double stateObservation::cst::epsilonAngle = 1e-16
 angles considered Zero More...
 
constexpr double stateObservation::cst::epsilon1 = std::numeric_limits<double>::epsilon()
 number considered zero when compared to 1 More...
 

Detailed Description

Definitions of types and some structures.

Author
Mehdi Benallegue
Date
2013

Macro Definition Documentation

◆ M_PI

#define M_PI   boost::math::constants::pi<double>()