g2o
Functions
se3_ops.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Matrix3D skew (const Vector3D &v)
 
Vector3D deltaR (const Matrix3D &R)
 
Vector2D project (const Vector3D &v)
 
Vector3D project (const Vector4D &v)
 
Vector3D unproject (const Vector2D &v)
 
Vector4D unproject (const Vector3D &v)
 

Function Documentation

Vector3D deltaR ( const Matrix3D &  R)

Definition at line 40 of file se3_ops.hpp.

41  {
42  Vector3D v;
43  v(0)=R(2,1)-R(1,2);
44  v(1)=R(0,2)-R(2,0);
45  v(2)=R(1,0)-R(0,1);
46  return v;
47  }
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
Definition: eigen_types.h:46
Vector2D project ( const Vector3D &  v)

Definition at line 49 of file se3_ops.hpp.

50  {
51  Vector2D res;
52  res(0) = v(0)/v(2);
53  res(1) = v(1)/v(2);
54  return res;
55  }
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
Definition: eigen_types.h:45
Vector3D project ( const Vector4D &  v)

Definition at line 57 of file se3_ops.hpp.

58  {
59  Vector3D res;
60  res(0) = v(0)/v(3);
61  res(1) = v(1)/v(3);
62  res(2) = v(2)/v(3);
63  return res;
64  }
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
Definition: eigen_types.h:46
Matrix3D skew ( const Vector3D &  v)

Definition at line 27 of file se3_ops.hpp.

28  {
29  Matrix3D m;
30  m.fill(0.);
31  m(0,1) = -v(2);
32  m(0,2) = v(1);
33  m(1,2) = -v(0);
34  m(1,0) = v(2);
35  m(2,0) = -v(1);
36  m(2,1) = v(0);
37  return m;
38  }
Eigen::Matrix< double, 3, 3, Eigen::ColMajor > Matrix3D
Definition: eigen_types.h:61
Vector3D unproject ( const Vector2D &  v)

Definition at line 66 of file se3_ops.hpp.

67  {
68  Vector3D res;
69  res(0) = v(0);
70  res(1) = v(1);
71  res(2) = 1;
72  return res;
73  }
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
Definition: eigen_types.h:46
Vector4D unproject ( const Vector3D &  v)

Definition at line 75 of file se3_ops.hpp.

76  {
77  Vector4D res;
78  res(0) = v(0);
79  res(1) = v(1);
80  res(2) = v(2);
81  res(3) = 1;
82  return res;
83  }
Eigen::Matrix< double, 4, 1, Eigen::ColMajor > Vector4D
Definition: eigen_types.h:47