se3_for_g2o.h
Go to the documentation of this file.
00001 //part of the source code of master thesis, source code produced by Jiri Divis
00008 #ifndef VSLAM_SE3G2O_H_INCLUDED_
00009 #define VSLAM_SE3G2O_H_INCLUDED_
00010 
00011 #include "Sophus/se3.h"
00012 
00013 namespace vslam{
00014 namespace g2o_types{
00015     using Sophus::SE3;
00016     using Sophus::Vector6d;
00017 
00025     class SE3G2O : public SE3{
00026         public:
00027             SE3G2O() : SE3() {}
00028             SE3G2O(const SE3& _se3) : SE3(_se3) {}
00029 
00030             void fromVector ( const Vector6d& v){ 
00031                 *this=SE3::exp(v);
00032             }
00033 
00034             Vector6d toVector() const{
00035                 return log();
00036             }
00037     };
00038 }//namespace g2o_types
00039 }//namespace vslam
00040 
00041 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


pose_estimation
Author(s): Jiri Divis/jiridivis@gmail.com
autogenerated on Wed Mar 27 2013 21:00:12