Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mathutils.h File Reference
#include <selforg/matrix.h>
#include <selforg/position.h>
#include "osgforwarddecl.h"
#include <osg/Math>
Include dependency graph for mathutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 lpzrobots
 forward declarations
 

Functions

template<typename T >
normalize360 (T v)
 
osg::Matrix osgRotate (const double &alpha, const double &beta, const double &gamma)
 returns a rotation matrix (osg) with the given angles alpha, beta and gamma More...
 
Matrix osgMatrix2Matrixlib (const osg::Matrix &m)
 converts osg matrix to matrix of matrixlib More...
 
osg::Matrix rotationMatrixFromAxisX (const Axis &axis)
 returns a Rotation matrix that rotates the x-axis along with the given axis. More...
 
osg::Matrix rotationMatrixFromAxisZ (const Axis &axis)
 returns a Rotation matrix that rotates the z-axis along with the given axis. More...
 
double getAngle (const osg::Vec3 &a, const osg::Vec3 &b)
 returns the angle between two vectors (in rad) More...
 
matrix::Matrix odeRto3x3RotationMatrixT (const double R[12])
 converts an ode rotation matrix into a 3x3 rotation matrix (matrixlib) More...
 
matrix::Matrix odeRto3x3RotationMatrix (const double R[12])
 converts an ode rotation matrix into a 3x3 rotation matrix (matrixlib) More...
 
Position multMatrixPosition (const matrix::Matrix &r, Position &p)
 Multiplies 3x3 matrix with position. More...
 
Matrix getRotationMatrix (const double &angle)
 returns a rotation matrix with the given angle More...
 
Matrix getTranslationMatrix (const Position &p)
 returns a translation matrix with the given Position More...
 
Matrix removeTranslationInMatrix (const matrix::Matrix &pose)
 removes the translation in the matrix More...
 
Matrix removeRotationInMatrix (const matrix::Matrix &pose)
 removes the rotation in the matrix More...
 
double getAngle (Position a, Position b)
 returns the angle between two vectors More...