RDK2::Geometry::Point2o< Numeric > Class Template Reference

#include <point2o.h>

Inheritance diagram for RDK2::Geometry::Point2o< Numeric >:

Inheritance graph
[legend]
Collaboration diagram for RDK2::Geometry::Point2o< Numeric >:

Collaboration graph
[legend]

Detailed Description

template<typename Numeric>
class RDK2::Geometry::Point2o< Numeric >

Beware that the operators + - * uses also the "theta" component.

Definition at line 34 of file point2o.h.


Public Member Functions

Constructors
 Point2o ()
 Point2o (Numeric x, Numeric y, double theta)
 Point2o (const Point2< Numeric > &p, double theta=0)
 Point2o (const Point2o< Numeric > &p)
Operators
Point2o< Numeric > operator- (const Point2o< Numeric > &p) const
 Subtracts two vectors.
Point2o< Numeric > operator+ (const Point2o< Numeric > &p) const
 Adds two vectors.
Point2o< Numeric > operator* (const Numeric &n) const
 Multiplies components by n.
Point2o rotate (double thetar, const Point2< Numeric > &p=Point2< Numeric >(0, 0)) const
 Rotate this vector of.
Point2o toLocalReferenceSystem (const Point2o< Numeric > &localReferenceSystem) const
Point2o toGlobalReferenceSystem (const Point2o< Numeric > &localReferenceSystem) const
Point2< Numeric > point2 () const
 Generates a point2 from the x,y components.
Tests
bool operator== (const Point2o< Numeric > &p) const
bool operator!= (const Point2o< Numeric > &p) const
Output functions
std::string toString () const
std::string outputSpaceSeparated () const
 A string representation. Example: " x y theta ".

Data Fields

double theta

Constructor & Destructor Documentation

template<typename Numeric>
RDK2::Geometry::Point2o< Numeric >::Point2o (  )  [inline]

template<typename Numeric>
RDK2::Geometry::Point2o< Numeric >::Point2o ( Numeric  x,
Numeric  y,
double  theta 
) [inline]

Definition at line 41 of file point2o.h.

template<typename Numeric>
RDK2::Geometry::Point2o< Numeric >::Point2o ( const Point2< Numeric > &  p,
double  theta = 0 
) [inline, explicit]

Definition at line 42 of file point2o.h.

template<typename Numeric>
RDK2::Geometry::Point2o< Numeric >::Point2o ( const Point2o< Numeric > &  p  )  [inline]

Definition at line 43 of file point2o.h.


Member Function Documentation

template<typename Numeric>
Point2o<Numeric> RDK2::Geometry::Point2o< Numeric >::operator- ( const Point2o< Numeric > &  p  )  const [inline]

Subtracts two vectors.

Definition at line 49 of file point2o.h.

template<typename Numeric>
Point2o<Numeric> RDK2::Geometry::Point2o< Numeric >::operator+ ( const Point2o< Numeric > &  p  )  const [inline]

Adds two vectors.

Definition at line 54 of file point2o.h.

template<typename Numeric>
Point2o<Numeric> RDK2::Geometry::Point2o< Numeric >::operator* ( const Numeric &  n  )  const [inline]

Multiplies components by n.

Reimplemented from RDK2::Geometry::Point2< Numeric >.

Reimplemented in RDK2::Geometry::Point3o< Numeric >, and RDK2::Geometry::Point3o< double >.

Definition at line 59 of file point2o.h.

template<typename Numeric>
Point2o RDK2::Geometry::Point2o< Numeric >::rotate ( double  thetar,
const Point2< Numeric > &  p = Point2<Numeric>(0, 0) 
) const [inline]

Rotate this vector of.

Parameters:
thetar radians around point
p 

Definition at line 64 of file point2o.h.

template<typename Numeric>
Point2o RDK2::Geometry::Point2o< Numeric >::toLocalReferenceSystem ( const Point2o< Numeric > &  localReferenceSystem  )  const [inline]

Change the reference system of the point,

Parameters:
localReferenceSystem is the origin of the local reference system in global coordinates (theta points towards x axis)

Definition at line 79 of file point2o.h.

template<typename Numeric>
Point2o RDK2::Geometry::Point2o< Numeric >::toGlobalReferenceSystem ( const Point2o< Numeric > &  localReferenceSystem  )  const [inline]

Change back to global reference system,

Parameters:
localReferenceSystem is the origin of the local reference system in global coordinates (theta points towards x axis)

Definition at line 88 of file point2o.h.

template<typename Numeric>
Point2<Numeric> RDK2::Geometry::Point2o< Numeric >::point2 (  )  const [inline]

Generates a point2 from the x,y components.

Definition at line 98 of file point2o.h.

Referenced by RDK2::Geometry::local2world().

template<typename Numeric>
bool RDK2::Geometry::Point2o< Numeric >::operator== ( const Point2o< Numeric > &  p  )  const [inline]

Definition at line 105 of file point2o.h.

template<typename Numeric>
bool RDK2::Geometry::Point2o< Numeric >::operator!= ( const Point2o< Numeric > &  p  )  const [inline]

Definition at line 108 of file point2o.h.

template<typename Numeric>
std::string RDK2::Geometry::Point2o< Numeric >::toString (  )  const [inline]

A string representation, with $ @theta $ expressed in degrees. Example: "(1,2;90)"

Reimplemented from RDK2::Geometry::Point2< Numeric >.

Reimplemented in RDK2::Geometry::Point3o< Numeric >, and RDK2::Geometry::Point3o< double >.

Definition at line 118 of file point2o.h.

Referenced by RDK2::RMaps::RTopologicalFrontier::getStringForVisualization().

template<typename Numeric>
std::string RDK2::Geometry::Point2o< Numeric >::outputSpaceSeparated (  )  const [inline]

A string representation. Example: " x y theta ".

Reimplemented from RDK2::Geometry::Point2< Numeric >.

Reimplemented in RDK2::Geometry::Point3o< Numeric >, and RDK2::Geometry::Point3o< double >.

Definition at line 126 of file point2o.h.


Field Documentation

template<typename Numeric>
double RDK2::Geometry::Point2o< Numeric >::theta

Definition at line 36 of file point2o.h.

Referenced by RDK2::Geometry::addNormalDist(), RDK2::Geometry::changeRef(), RDK2::Geometry::diff(), RDK2::Geometry::difference(), RDK2::RGeometry::RPoint2od::equals(), RDK2::SensorData::LaserData::getFisher(), RDK2::SensorData::LaserData::getFisherForTheta(), RDK2::SensorData::LaserData::getFisherForXY(), RDK2::SensorData::LaserData::getLaserRoll(), RDK2::RMaps::RVictimOnMap::getLogLine(), RDK2::RSensorData::RStereoImageHeightsData::getLogLine(), RDK2::RSensorData::RPantiltData::getLogLine(), RDK2::RSensorData::ROdometryDataWithSpeed::getLogLine(), RDK2::RSensorData::ROdometryData::getLogLine(), RDK2::RSensorData::RLaserData::getLogLine(), RDK2::RMaps::RLandmark::getLogLine(), RDK2::RSensorData::RActuaData::getLogLine(), RDK2::SensorData::LaserData::isInsideClearArea(), RDK2::RSensorData::RStereoImageHeightsData::loadFromLogLine(), RDK2::RSensorData::RPantiltData::loadFromLogLine(), RDK2::RSensorData::ROdometryDataWithSpeed::loadFromLogLine(), RDK2::RSensorData::ROdometryData::loadFromLogLine(), RDK2::RSensorData::RLaserData::loadFromLogLine(), RDK2::RMaps::RLandmark::loadFromLogLine(), RDK2::RSensorData::RActuaData::loadFromLogLine(), RDK2::Geometry::local2world(), RDK2::Geometry::mm2m(), RDK2::Geometry::Point3o< double >::operator+(), RDK2::Geometry::Point2o< double >::operator+(), RDK2::Geometry::Point3o< double >::operator-(), RDK2::Geometry::Point2o< double >::operator-(), RDK2::Geometry::Point3o< double >::operator==(), RDK2::Geometry::Point2o< double >::operator==(), RDK2::Geometry::operator>>(), RDK2::Geometry::parsePoint(), RDK2::RGraphics::RPoseVector::read(), RDK2::RMaps::RTopologicalFrontier::RTopologicalFrontier(), RDK2::SensorData::LaserData::setLaserRollPitchYaw(), RDK2::Geometry::Point2o< double >::toGlobalReferenceSystem(), RDK2::Geometry::toGlobalReferenceSystem(), RDK2::Geometry::Point2o< double >::toLocalReferenceSystem(), RDK2::Geometry::toLocalReferenceSystem(), RDK2::Geometry::Trans3d(), RDK2::Geometry::translateTo(), RDK2::SensorData::LaserDataTracker::update(), RDK2::Geometry::weightedMean(), and RDK2::SensorData::LaserParser::write().


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

Generated on Tue Mar 3 15:05:54 2009 for OpenRDK by  doxygen 1.5.6