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

A 2D odometry measurement expressed as a transformation. More...

#include <odometry_measurement.h>

Public Member Functions

 MotionMeasurement ()
 
 MotionMeasurement (double x, double y, double theta, double dt)
 
 MotionMeasurement (const Vector3D &m, double dt)
 
double x () const
 
void setX (double v)
 
double y () const
 
void setY (double v)
 
double theta () const
 
void setTheta (double v)
 
double dt () const
 
void setDt (double t)
 
const Vector3Dmeasurement () const
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Attributes

Vector3D _measurement
 
double _dt
 

Detailed Description

A 2D odometry measurement expressed as a transformation.

Definition at line 64 of file odometry_measurement.h.

Constructor & Destructor Documentation

g2o::MotionMeasurement::MotionMeasurement ( )

Definition at line 44 of file odometry_measurement.cpp.

Referenced by g2o::OdomConvert::convertToMotion().

44  :
45  _measurement(0., 0., 0.), _dt(0.)
46  {
47  }
g2o::MotionMeasurement::MotionMeasurement ( double  x,
double  y,
double  theta,
double  dt 
)

Definition at line 49 of file odometry_measurement.cpp.

g2o::MotionMeasurement::MotionMeasurement ( const Vector3D m,
double  dt 
)

Definition at line 54 of file odometry_measurement.cpp.

54  :
55  _measurement(m), _dt(dt)
56  {
57  }

Member Function Documentation

double g2o::MotionMeasurement::dt ( ) const
inline

Definition at line 81 of file odometry_measurement.h.

Referenced by g2o::OdomConvert::convertToVelocity().

81 { return _dt;}
const Vector3D& g2o::MotionMeasurement::measurement ( ) const
inline

Definition at line 84 of file odometry_measurement.h.

Referenced by main().

84 { return _measurement;}
void g2o::MotionMeasurement::setDt ( double  t)
inline

Definition at line 82 of file odometry_measurement.h.

void g2o::MotionMeasurement::setTheta ( double  v)
inline

Definition at line 79 of file odometry_measurement.h.

79 { _measurement(2) = v;}
void g2o::MotionMeasurement::setX ( double  v)
inline

Definition at line 73 of file odometry_measurement.h.

73 { _measurement(0) = v;}
void g2o::MotionMeasurement::setY ( double  v)
inline

Definition at line 76 of file odometry_measurement.h.

76 { _measurement(1) = v;}
double g2o::MotionMeasurement::theta ( ) const
inline
double g2o::MotionMeasurement::x ( ) const
inline
double g2o::MotionMeasurement::y ( ) const
inline

Member Data Documentation

double g2o::MotionMeasurement::_dt
protected

Definition at line 88 of file odometry_measurement.h.

Vector3D g2o::MotionMeasurement::_measurement
protected

Definition at line 87 of file odometry_measurement.h.

g2o::MotionMeasurement::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

Definition at line 67 of file odometry_measurement.h.


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