27 #ifndef G2O_SIX_DOF_TYPES_EXPMAP 28 #define G2O_SIX_DOF_TYPES_EXPMAP 34 #include <Eigen/Geometry> 37 namespace types_six_dof_expmap {
41 typedef Eigen::Matrix<double, 6, 6, Eigen::ColMajor>
Matrix6d;
52 : focal_length(focal_length),
53 principle_point(principle_point),
60 virtual bool read (std::istream& is){
62 is >> principle_point[0];
63 is >> principle_point[1];
68 virtual bool write (std::ostream& os)
const {
69 os << focal_length <<
" ";
70 os << principle_point.x() <<
" ";
71 os << principle_point.y() <<
" ";
72 os << baseline <<
" ";
87 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
91 bool read(std::istream& is);
93 bool write(std::ostream& os)
const;
100 Eigen::Map<const Vector6d> update(update_);
114 bool read(std::istream& is);
116 bool write(std::ostream& os)
const;
124 _error = error_.
log();
127 virtual void linearizeOplus();
137 bool read(std::istream& is);
139 bool write(std::ostream& os)
const;
150 virtual void linearizeOplus();
159 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
163 installParameter(_cam, 0);
166 virtual bool read (std::istream& is);
167 virtual bool write (std::ostream& os)
const;
168 void computeError ();
169 virtual void linearizeOplus ();
185 bool read(std::istream& is);
187 bool write(std::ostream& os)
const;
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
#define G2O_TYPES_SBA_API
Vector2D cam_map(const Vector3D &trans_xyz) const
virtual void setToOriginImpl()
sets the node to the origin (used in the multilevel stuff)
Eigen::Matrix< double, 6, 6, Eigen::ColMajor > Matrix6d
virtual bool read(std::istream &is)
read the data from a stream
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Vector3D map(const Vector3D &xyz) const
virtual void oplusImpl(const double *update_)
virtual bool write(std::ostream &os) const
write the data to a stream
SE3 Vertex parameterized internally with a transformation matrix and externally with its exponential ...
EIGEN_MAKE_ALIGNED_OPERATOR_NEW EdgeProjectPSI2UV()
static SE3Quat exp(const Vector6d &update)
base class to represent an edge connecting an arbitrary number of nodes
Vector3D stereocam_uvu_map(const Vector3D &trans_xyz) const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
const EstimateType & estimate() const
return the current estimate of the vertex
6D edge between two Vertex6
CameraParameters(double focal_length, const Vector2D &principle_point, double baseline)