Sensor Scol plugin
Multi platform sensors for handled devices
Toggle main menu visibility
Main Page
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
Functions
Files
File List
G:
work
subversion
scol-technologies
trunk
scol
plugins
sensor
include
tools
SO3Util.h
1
//
2
// SO3Util.h
3
//
4
5
#ifndef __So3Util__
6
#define __So3Util__
7
8
#include "Vector3d.h"
9
#include "Quaternion.h"
10
#include "Matrix3x3d.h"
11
#include <math.h>
12
13
// SO3 = matrice de rotation
14
#ifndef M_PI
15
#define M_PI 3.14159265358979323846
16
#endif
17
18
#define EARTH_GRAVITY (9.81f)
19
20
static
const
double
DEG_TO_RAD = M_PI / 180.0;
21
static
const
double
RAD_TO_DEG = 180.0 / M_PI;
22
23
class
SO3Util
24
{
25
public
:
26
static
void
sO3FromTwoVec(
Vector3d
a,
Vector3d
b,
Matrix3x3d
&result);
27
static
void
rotationPiAboutAxis(
Vector3d
v,
Matrix3x3d
&result);
28
static
void
sO3FromMu(
Vector3d
w,
Matrix3x3d
&result);
29
static
void
muFromSO3(
Matrix3x3d
so3,
Vector3d
&result);
30
static
void
rodriguesSo3Exp(
Vector3d
w,
double
kA,
double
kB,
Matrix3x3d
&result);
31
static
void
generatorField(
int
i,
Matrix3x3d
pos,
Matrix3x3d
&result);
32
};
23
class
SO3Util
{
…
};
33
34
#endif
Matrix3x3d
Definition
Matrix3x3d.h:11
SO3Util
Definition
SO3Util.h:24
Vector3d
Definition
Vector3d.h:9
Generated by
1.9.8