Go to the documentation of this file.00001
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 }
00039 }
00040
00041 #endif