g2o
Public Member Functions | Public Attributes | Protected Attributes | List of all members
g2o::deprecated::ParameterSE3Offset Class Reference

offset for an SE3 More...

#include <parameter_se3_offset.h>

Inheritance diagram for g2o::deprecated::ParameterSE3Offset:
Inheritance graph
[legend]
Collaboration diagram for g2o::deprecated::ParameterSE3Offset:
Collaboration graph
[legend]

Public Member Functions

 ParameterSE3Offset ()
 
virtual bool read (std::istream &is)
 read the data from a stream More...
 
virtual bool write (std::ostream &os) const
 write the data to a stream More...
 
void setOffset (const SE3Quat &offset_=SE3Quat())
 
const SE3Quatoffset () const
 return the offset as SE3Quat More...
 
const Eigen::Isometry3d & offsetMatrix () const
 rotation of the offset as 3x3 rotation matrix More...
 
const Eigen::Isometry3d & inverseOffsetMatrix () const
 rotation of the inverse offset as 3x3 rotation matrix More...
 
- Public Member Functions inherited from g2o::Parameter
 Parameter ()
 
virtual ~Parameter ()
 
int id () const
 
void setId (int id_)
 
virtual HyperGraph::HyperGraphElementType elementType () const
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 
HyperGraphElementclone () const
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Attributes

SE3Quat _offset
 
Eigen::Isometry3d _offsetMatrix
 
Eigen::Isometry3d _inverseOffsetMatrix
 
- Protected Attributes inherited from g2o::Parameter
int _id
 

Detailed Description

offset for an SE3

Definition at line 48 of file parameter_se3_offset.h.

Constructor & Destructor Documentation

g2o::deprecated::ParameterSE3Offset::ParameterSE3Offset ( )

Definition at line 37 of file parameter_se3_offset.cpp.

37  {
38  setOffset();
39  }
void setOffset(const SE3Quat &offset_=SE3Quat())

Member Function Documentation

const Eigen::Isometry3d& g2o::deprecated::ParameterSE3Offset::inverseOffsetMatrix ( ) const
inline

rotation of the inverse offset as 3x3 rotation matrix

Definition at line 70 of file parameter_se3_offset.h.

Referenced by g2o::deprecated::EdgeSE3PointXYZ::linearizeOplus().

const SE3Quat& g2o::deprecated::ParameterSE3Offset::offset ( ) const
inline
const Eigen::Isometry3d& g2o::deprecated::ParameterSE3Offset::offsetMatrix ( ) const
inline
bool g2o::deprecated::ParameterSE3Offset::read ( std::istream &  is)
virtual

read the data from a stream

Implements g2o::Parameter.

Reimplemented in g2o::deprecated::ParameterCamera.

Definition at line 48 of file parameter_se3_offset.cpp.

48  {
49  Vector7d off;
50  for (int i=0; i<7; i++) {
51  is >> off[i];
52  std::cerr << off[i] << " " ;
53  }
54  std::cerr << std::endl;
55  setOffset(SE3Quat(off));
56  return is.good();
57  }
void setOffset(const SE3Quat &offset_=SE3Quat())
Eigen::Matrix< double, 7, 1 > Vector7d
Definition: sim3.h:35
void g2o::deprecated::ParameterSE3Offset::setOffset ( const SE3Quat offset_ = SE3Quat())

update the offset to a new value. re-calculates the different representations, e.g., the rotation matrix

Definition at line 41 of file parameter_se3_offset.cpp.

References g2o::SE3Quat::rotation().

41  {
42  _offset = offset_;
43  _offsetMatrix= _offset.rotation().toRotationMatrix();
44  _offsetMatrix.translation() = _offset.translation();
46  }
const Eigen::Quaterniond & rotation() const
Definition: se3quat.h:97
const Vector3D & translation() const
Definition: se3quat.h:93
bool g2o::deprecated::ParameterSE3Offset::write ( std::ostream &  os) const
virtual

write the data to a stream

Implements g2o::Parameter.

Reimplemented in g2o::deprecated::ParameterCamera.

Definition at line 59 of file parameter_se3_offset.cpp.

59  {
60  Vector7d off = _offset.toVector();
61  for (int i=0; i<7; i++)
62  os << off[i] << " ";
63  return os.good();
64  }
Vector7d toVector() const
Definition: se3quat.h:135
Eigen::Matrix< double, 7, 1 > Vector7d
Definition: sim3.h:35

Member Data Documentation

Eigen::Isometry3d g2o::deprecated::ParameterSE3Offset::_inverseOffsetMatrix
protected

Definition at line 75 of file parameter_se3_offset.h.

SE3Quat g2o::deprecated::ParameterSE3Offset::_offset
protected

Definition at line 73 of file parameter_se3_offset.h.

Eigen::Isometry3d g2o::deprecated::ParameterSE3Offset::_offsetMatrix
protected

Definition at line 74 of file parameter_se3_offset.h.

g2o::deprecated::ParameterSE3Offset::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 51 of file parameter_se3_offset.h.


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