g2o
Loading...
Searching...
No Matches
g2o::ParameterStereoCamera Class Reference

parameters for a camera More...

#include <parameter_stereo_camera.h>

Inheritance diagram for g2o::ParameterStereoCamera:
Collaboration diagram for g2o::ParameterStereoCamera:

Public Member Functions

 ParameterStereoCamera ()
virtual bool read (std::istream &is)
 read the data from a stream
virtual bool write (std::ostream &os) const
 write the data to a stream
void setBaseline (double baseline_)
double baseline () const
Public Member Functions inherited from g2o::ParameterCamera
 ParameterCamera ()
void setKcam (double fx, double fy, double cx, double cy)
void setOffset (const Isometry3 &offset_=Isometry3::Identity())
const Matrix3 & Kcam () const
const Matrix3 & invKcam () const
const Matrix3 & Kcam_inverseOffsetR () const
Public Member Functions inherited from g2o::ParameterSE3Offset
 ParameterSE3Offset ()
void setOffset (const Isometry3 &offset_=Isometry3::Identity())
const Isometry3 & offset () const
 rotation of the offset as 3x3 rotation matrix
const Isometry3 & inverseOffset () const
 rotation of the inverse offset as 3x3 rotation matrix
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 ()

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Public Attributes inherited from g2o::ParameterCamera
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Public Attributes inherited from g2o::ParameterSE3Offset
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Protected Attributes

double _baseline
Protected Attributes inherited from g2o::ParameterCamera
Matrix3 _Kcam
Matrix3 _invKcam
Matrix3 _Kcam_inverseOffsetR
Protected Attributes inherited from g2o::ParameterSE3Offset
Isometry3 _offset
Isometry3 _inverseOffset
Protected Attributes inherited from g2o::Parameter
int _id

Detailed Description

parameters for a camera

Definition at line 38 of file parameter_stereo_camera.h.

Constructor & Destructor Documentation

◆ ParameterStereoCamera()

g2o::ParameterStereoCamera::ParameterStereoCamera ( )

Definition at line 33 of file parameter_stereo_camera.cpp.

34 : ParameterCamera(), _baseline(cst(0.075)) {}
constexpr double cst(long double v)
Definition misc.h:60

References _baseline, g2o::cst(), and g2o::ParameterCamera::ParameterCamera().

Member Function Documentation

◆ baseline()

double g2o::ParameterStereoCamera::baseline ( ) const
inline

Definition at line 47 of file parameter_stereo_camera.h.

47{ return _baseline; }

References _baseline.

Referenced by write().

◆ read()

bool g2o::ParameterStereoCamera::read ( std::istream & is)
virtual

read the data from a stream

Reimplemented from g2o::ParameterCamera.

Definition at line 36 of file parameter_stereo_camera.cpp.

36 {
37 bool state = ParameterCamera::read(is);
38 is >> _baseline;
39 return is.good() && state;
40}
virtual bool read(std::istream &is)
read the data from a stream

References _baseline, and g2o::ParameterCamera::read().

◆ setBaseline()

void g2o::ParameterStereoCamera::setBaseline ( double baseline_)
inline

Definition at line 46 of file parameter_stereo_camera.h.

46{ _baseline = baseline_; }

References _baseline.

◆ write()

bool g2o::ParameterStereoCamera::write ( std::ostream & os) const
virtual

write the data to a stream

Reimplemented from g2o::ParameterCamera.

Definition at line 42 of file parameter_stereo_camera.cpp.

42 {
43 bool state = ParameterCamera::write(os);
44 os << baseline() << " ";
45 return state && os.good();
46}
virtual bool write(std::ostream &os) const
write the data to a stream

References baseline(), and g2o::ParameterCamera::write().

Member Data Documentation

◆ _baseline

double g2o::ParameterStereoCamera::_baseline
protected

Definition at line 50 of file parameter_stereo_camera.h.

Referenced by baseline(), ParameterStereoCamera(), read(), and setBaseline().

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

g2o::ParameterStereoCamera::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 40 of file parameter_stereo_camera.h.


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