Flair
Framework Libre Air
flair::core Namespace Reference

Core classes. More...

Classes

class  AhrsData
 Class defining AHRS datas. More...
 
class  ConditionVariable
 Class defining a condition variable. More...
 
class  ConnectedSocket
 Interface class encapsulating a connected socket. Preserves packets order and guaranty delivery. More...
 
class  cvimage
 Class defining an image of kind IplImage. More...
 
class  cvmatrix
 Class defining a matrix of kind CvMat. More...
 
class  cvmatrix_descriptor
 Class describing cvmatrix elements, for log and graphs purpose. More...
 
class  DataType
 
class  DoubleType
 
class  DummyType
 
class  Euler
 Class defining euler angles. More...
 
class  FloatType
 
class  FrameworkManager
 Main class of the Framework library. More...
 
class  GeoCoordinate
 Class defining a point by its lla coordinates. More...
 
class  GpsData
 Class defining gps datas. More...
 
class  I2cPort
 Base class for i2c port. More...
 
class  ImuData
 Class defining IMU datas. More...
 
class  io_data
 Abstract class for data types. More...
 
class  IODataElement
 Abstract class for accessing an element of an io_data. More...
 
class  IODevice
 Abstract class for input/ouput system. More...
 
class  Matrix
 Class defining a matrix. More...
 
class  Message
 
class  Mutex
 Class defining a mutex. More...
 
class  Object
 Base class for all Framework's classes. More...
 
class  OneAxisRotation
 Class defining a rotation around one axis. More...
 
class  Quaternion
 Class defining a quaternion. More...
 
class  RotationMatrix
 Class defining a rotation matrix. More...
 
class  RTDM_I2cPort
 Class for real time i2c port using RTDM. More...
 
class  RTDM_SerialPort
 Class for real time serial port using RTDM. More...
 
class  ScalarType
 
class  Semaphore
 Class defining a semaphore. More...
 
class  SerialPort
 Base class for serial port. More...
 
class  SharedMem
 Class defining a shared memory. More...
 
class  SignedIntegerType
 
class  TcpSocket
 Class encapsulating a TCP socket. More...
 
class  Thread
 Abstract class for a thread. More...
 
class  UdpSocket
 Class encapsulating a UDP socket. It assumes packets are coming from only one distant host on a given port. More...
 
class  UdtSocket
 Class encapsulating a UDT socket. More...
 
class  Unix_I2cPort
 Class for unix serial port. More...
 
class  Unix_SerialPort
 
class  UnsignedIntegerType
 
class  Vector2D
 Class defining a 2D vector. More...
 
class  Vector3D
 Class defining a 3D vector. More...
 
class  Vector3Ddata
 Class defining a 3D vector and a io_data User must manually use the io_data's Mutex to access to Vector3D values. More...
 
class  Watchdog
 Watchdog class. More...
 

Typedefs

typedef unsigned long long Time
 Time definition, in ns. More...
 
typedef Vector2D< float > Vector2Df
 
typedef Vector3D< float > Vector3Df
 

Functions

FrameworkManagergetFrameworkManager (void)
 get FrameworkManager More...
 
bool IsBigEndian (void)
 is big endian? More...
 
Time GetTime (void)
 Time. More...
 
void Printf (const char *format,...)
 Formatted print. More...
 
Quaternion operator+ (Quaternion const &quaterniontA, Quaternion const &quaterniontB)
 Add. More...
 
Quaternion operator- (Quaternion const &quaternionA, Quaternion const &quaterniontB)
 Substract. More...
 
Quaternion operator- (const Quaternion &quaternion)
 Minus. More...
 
Quaternion operator* (Quaternion const &quaternionA, Quaternion const &quaterniontB)
 Multiply. More...
 
Quaternion operator* (float coeff, Quaternion const &quaternion)
 Multiply. More...
 
Quaternion operator* (Quaternion const &quaternion, float coeff)
 Multiply. More...
 
template<typename T >
Vector2D< T > operator+ (const Vector2D< T > &vectorA, const Vector2D< T > &vectorB)
 Add. More...
 
template<typename T >
Vector2D< T > operator- (const Vector2D< T > &vectorA, const Vector2D< T > &vectorB)
 Substract. More...
 
template<typename T >
Vector2D< T > operator- (const Vector2D< T > &vectorA)
 Opposite. More...
 
template<typename T >
Vector2D< T > operator/ (const Vector2D< T > &vector, float coeff)
 Divid. More...
 
template<typename T >
Vector2D< T > operator* (const Vector2D< T > &vector, float coeff)
 Multiplyf. More...
 
template<typename T >
Vector2D< T > operator* (float coeff, const Vector2D< T > &vector)
 Multiply. More...
 
template<typename T >
Vector3D< T > operator+ (const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
 Add. More...
 
template<typename T >
Vector3D< T > operator- (const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
 Substract. More...
 
template<typename T >
Vector3D< T > operator- (const Vector3D< T > &vector)
 Minus. More...
 
template<typename T >
Vector3D< T > operator/ (const Vector3D< T > &vector, float coeff)
 Divid. More...
 
template<typename T >
Vector3D< T > operator* (const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
 Hadamard product. More...
 
template<typename T >
Vector3D< T > operator* (const Vector3D< T > &vector, float coeff)
 Multiply. More...
 
template<typename T >
Vector3D< T > operator* (float coeff, const Vector3D< T > &vector)
 Multiply. More...
 
template<typename T >
Vector3D< T > CrossProduct (const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
 Cross product. More...
 
template<typename T >
float DotProduct (const Vector3D< T > &vectorA, const Vector3D< T > &vectorB)
 Dot product. More...
 

Variables

DummyType dummyType
 
SignedIntegerType Int8Type
 
SignedIntegerType Int16Type
 
UnsignedIntegerType UInt8Type
 
UnsignedIntegerType UInt16Type
 
FloatType floatType
 
DoubleType doubleType
 

Detailed Description

Core classes.

Typedef Documentation

typedef unsigned long long flair::core::Time

Time definition, in ns.

Function Documentation

FrameworkManager* flair::core::getFrameworkManager ( void  )
bool flair::core::IsBigEndian ( void  )

is big endian?

Returns
true if big endian, false if little endian
Time flair::core::GetTime ( void  )

Time.

Returns
actual time in ns (origin depends on whether the method is compiled in hard real time mode or not. As a conquence, only time differences should be used)
void flair::core::Printf ( const char *  format,
  ... 
)

Formatted print.

See standard printf for syntax.

Parameters
formattext string to display
Quaternion flair::core::operator+ ( Quaternion const &  quaterniontA,
Quaternion const &  quaterniontB 
)

Add.

Add

Parameters
quaterniontAquaternion
quaterniontBquaternion
Returns
quaterniontA+quaterniontB
Quaternion flair::core::operator- ( Quaternion const &  quaternionA,
Quaternion const &  quaterniontB 
)

Substract.

Substract

Parameters
quaterniontAquaternion
quaterniontBquaternion
Returns
quaterniontA-quaterniontB
Quaternion flair::core::operator- ( const Quaternion quaternion)

Minus.

Minus

Parameters
quaternionquaternion
Returns
-quaternion
Quaternion flair::core::operator* ( Quaternion const &  quaternionA,
Quaternion const &  quaterniontB 
)

Multiply.

Multiply

Parameters
quaterniontAquaternion
quaterniontBquaternion
Returns
quaterniontA*quaterniontB
Quaternion flair::core::operator* ( float  coeff,
Quaternion const &  quaternion 
)

Multiply.

Multiply

Parameters
coeffcoefficient
quatquaternion
Returns
coeff*quat
Quaternion flair::core::operator* ( Quaternion const &  quaternion,
float  coeff 
)

Multiply.

Multiply

Parameters
quatquaternion
coeffcoefficient
Returns
coeff*quat
template<typename T >
Vector2D<T> flair::core::operator+ ( const Vector2D< T > &  vectorA,
const Vector2D< T > &  vectorB 
)

Add.

Add

Parameters
vectorAvector
vectorBvector
template<typename T >
Vector2D<T> flair::core::operator- ( const Vector2D< T > &  vectorA,
const Vector2D< T > &  vectorB 
)

Substract.

Substract

Parameters
vectorAvector
vectorBvector
template<typename T >
Vector2D<T> flair::core::operator- ( const Vector2D< T > &  vectorA)

Opposite.

Opposite

Parameters
vectorAvector
Returns
-vectorA
template<typename T >
Vector2D<T> flair::core::operator/ ( const Vector2D< T > &  vector,
float  coeff 
)

Divid.

Divid

Parameters
vectorvector
coeffcoefficent
Returns
vector/coefficient
template<typename T >
Vector2D<T> flair::core::operator* ( const Vector2D< T > &  vector,
float  coeff 
)

Multiplyf.

Multiply

Parameters
vectorvector
coeffcoefficent
Returns
coefficient*vector
template<typename T >
Vector2D<T> flair::core::operator* ( float  coeff,
const Vector2D< T > &  vector 
)

Multiply.

Multiply

Parameters
coeffcoefficent
vectorvector
Returns
coefficient*vector
template<typename T >
Vector3D<T> flair::core::operator+ ( const Vector3D< T > &  vectorA,
const Vector3D< T > &  vectorB 
)

Add.

Add

Parameters
vectorAvector
vectorBvector
Returns
vectorA+vectorB
template<typename T >
Vector3D<T> flair::core::operator- ( const Vector3D< T > &  vectorA,
const Vector3D< T > &  vectorB 
)

Substract.

Substract

Parameters
vectorAvector
vectorBvector
Returns
vectorA-vectorB
template<typename T >
Vector3D<T> flair::core::operator- ( const Vector3D< T > &  vector)

Minus.

Minus

Parameters
vectorvector
Returns
-vector
template<typename T >
Vector3D<T> flair::core::operator/ ( const Vector3D< T > &  vector,
float  coeff 
)

Divid.

Divid

Parameters
vectorvector
coeffcoefficent
Returns
vector/coefficient
template<typename T >
Vector3D<T> flair::core::operator* ( const Vector3D< T > &  vectorA,
const Vector3D< T > &  vectorB 
)

Hadamard product.

Hadamard product

Parameters
vectorAvector
vectorBAvector
Returns
Hadamard product
template<typename T >
Vector3D<T> flair::core::operator* ( const Vector3D< T > &  vector,
float  coeff 
)

Multiply.

Multiply

Parameters
vectorvector
coeffcoefficent
Returns
coefficient*vector
template<typename T >
Vector3D<T> flair::core::operator* ( float  coeff,
const Vector3D< T > &  vector 
)

Multiply.

Multiply

Parameters
coeffcoefficent
vectorvector
Returns
coefficient*vector
template<typename T >
Vector3D<T> flair::core::CrossProduct ( const Vector3D< T > &  vectorA,
const Vector3D< T > &  vectorB 
)

Cross product.

Cross product

Parameters
vectorAfirst vector
vectorBsecond vector
Returns
cross product
template<typename T >
float flair::core::DotProduct ( const Vector3D< T > &  vectorA,
const Vector3D< T > &  vectorB 
)

Dot product.

Dot product

Parameters
vectorAfirst vector
vectorBsecond vector
Returns
dot product