Robotics Library  0.6.2
Vector.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef _RL_MATH_VECTOR_H_
28 #define _RL_MATH_VECTOR_H_
29 
30 #define EIGEN_MATRIXBASE_PLUGIN <rl/math/MatrixBaseAddons.h>
31 #define EIGEN_QUATERNIONBASE_PLUGIN <rl/math/QuaternionBaseAddons.h>
32 
33 #include <Eigen/Core>
34 
35 #include "Real.h"
36 
37 namespace rl
38 {
39  namespace math
40  {
41  typedef ::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector;
42 
43  typedef ::Eigen::Matrix< Real, 2, 1 > Vector2;
44 
45  typedef ::Eigen::Matrix< Real, 3, 1 > Vector3;
46 
47  typedef ::Eigen::Matrix< Real, 4, 1 > Vector4;
48 
49  typedef ::Eigen::Matrix< Real, 6, 1 > Vector6;
50 
51  typedef ::Eigen::VectorBlock< Vector, ::Eigen::Dynamic > VectorBlock;
52 
53  typedef ::Eigen::VectorBlock< Vector2, ::Eigen::Dynamic > Vector2Block;
54 
55  typedef ::Eigen::VectorBlock< Vector3, ::Eigen::Dynamic > Vector3Block;
56 
57  typedef ::Eigen::VectorBlock< Vector4, ::Eigen::Dynamic > Vector4Block;
58 
59  typedef ::Eigen::VectorBlock< Vector6, ::Eigen::Dynamic > Vector6Block;
60 
61  typedef ::Eigen::VectorBlock< const Vector, ::Eigen::Dynamic > ConstVectorBlock;
62 
63  typedef ::Eigen::VectorBlock< const Vector2, ::Eigen::Dynamic > ConstVector2Block;
64 
65  typedef ::Eigen::VectorBlock< const Vector3, ::Eigen::Dynamic > ConstVector3Block;
66 
67  typedef ::Eigen::VectorBlock< const Vector4, ::Eigen::Dynamic > ConstVector4Block;
68 
69  typedef ::Eigen::VectorBlock< const Vector6, ::Eigen::Dynamic > ConstVector6Block;
70  }
71 }
72 
73 #endif // _RL_MATH_VECTOR_H_
rl::math::Vector4Block
::Eigen::VectorBlock< Vector4, ::Eigen::Dynamic > Vector4Block
Definition: Vector.h:57
rl::math::Vector4
::Eigen::Matrix< Real, 4, 1 > Vector4
Definition: Vector.h:47
rl::math::Vector3
::Eigen::Matrix< Real, 3, 1 > Vector3
Definition: Vector.h:45
rl::math::ConstVector6Block
::Eigen::VectorBlock< const Vector6, ::Eigen::Dynamic > ConstVector6Block
Definition: Vector.h:69
rl::math::ConstVector4Block
::Eigen::VectorBlock< const Vector4, ::Eigen::Dynamic > ConstVector4Block
Definition: Vector.h:67
rl::math::Vector2
::Eigen::Matrix< Real, 2, 1 > Vector2
Definition: Vector.h:43
rl::math::VectorBlock
::Eigen::VectorBlock< Vector, ::Eigen::Dynamic > VectorBlock
Definition: Vector.h:51
rl::math::ConstVectorBlock
::Eigen::VectorBlock< const Vector, ::Eigen::Dynamic > ConstVectorBlock
Definition: Vector.h:61
rl::math::Vector6
::Eigen::Matrix< Real, 6, 1 > Vector6
Definition: Vector.h:49
rl::math::Vector2Block
::Eigen::VectorBlock< Vector2, ::Eigen::Dynamic > Vector2Block
Definition: Vector.h:53
rl::math::Vector3Block
::Eigen::VectorBlock< Vector3, ::Eigen::Dynamic > Vector3Block
Definition: Vector.h:55
Real.h
rl::math::Vector
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:41
rl::math::Vector6Block
::Eigen::VectorBlock< Vector6, ::Eigen::Dynamic > Vector6Block
Definition: Vector.h:59
rl::math::ConstVector2Block
::Eigen::VectorBlock< const Vector2, ::Eigen::Dynamic > ConstVector2Block
Definition: Vector.h:63
rl::math::ConstVector3Block
::Eigen::VectorBlock< const Vector3, ::Eigen::Dynamic > ConstVector3Block
Definition: Vector.h:65
rl
Definition: Ati.cpp:35