g2o
Public Member Functions | Public Attributes | List of all members
g2o::EdgeNormal Class Reference

#include <sbacam.h>

Public Member Functions

 EdgeNormal ()
 
void makeRot ()
 

Public Attributes

Eigen::Vector3d pos
 
Eigen::Vector3d normal
 
Eigen::Matrix3d R
 

Detailed Description

Definition at line 201 of file sbacam.h.

Constructor & Destructor Documentation

g2o::EdgeNormal::EdgeNormal ( )
inline

Definition at line 216 of file sbacam.h.

217  {
218  pos.setZero();
219  normal << 0, 0, 1;
220  makeRot();
221  }
Eigen::Vector3d normal
Definition: sbacam.h:210
void makeRot()
Definition: sbacam.h:224
Eigen::Vector3d pos
Definition: sbacam.h:207

Member Function Documentation

void g2o::EdgeNormal::makeRot ( )
inline

Definition at line 224 of file sbacam.h.

225  {
226  Eigen::Vector3d y;
227  y << 0, 1, 0;
228  R.row(2) = normal;
229  y = y - normal(1)*normal;
230  y.normalize(); // need to check if y is close to 0
231  R.row(1) = y;
232  R.row(0) = normal.cross(R.row(1));
233  // cout << normal.transpose() << endl;
234  // cout << R << endl << endl;
235  // cout << R*R.transpose() << endl << endl;
236  }
Eigen::Vector3d normal
Definition: sbacam.h:210
Eigen::Matrix3d R
Definition: sbacam.h:213

Member Data Documentation

Eigen::Vector3d g2o::EdgeNormal::normal

Definition at line 210 of file sbacam.h.

Eigen::Vector3d g2o::EdgeNormal::pos

Definition at line 207 of file sbacam.h.

Eigen::Matrix3d g2o::EdgeNormal::R

Definition at line 213 of file sbacam.h.


The documentation for this class was generated from the following file: