Public Member Functions | Private Attributes | Friends
karto::Pose2 Class Reference

#include <Karto.h>

List of all members.

Public Member Functions

kt_double GetHeading () const
const Vector2< kt_double > & GetPosition () const
kt_double GetX () const
kt_double GetY () const
kt_bool operator!= (const Pose2 &rOther) const
Pose2 operator+ (const Pose2 &rOther) const
void operator+= (const Pose2 &rOther)
Pose2 operator- (const Pose2 &rOther) const
Pose2operator= (const Pose2 &rOther)
kt_bool operator== (const Pose2 &rOther) const
 Pose2 ()
 Pose2 (const Vector2< kt_double > &rPosition, kt_double heading)
 Pose2 (kt_double x, kt_double y, kt_double heading)
 Pose2 (const Pose3 &rPose)
 Pose2 (const Pose2 &rOther)
void SetHeading (kt_double heading)
void SetPosition (const Vector2< kt_double > &rPosition)
void SetX (kt_double x)
void SetY (kt_double y)
kt_double SquaredDistance (const Pose2 &rOther) const

Private Attributes

kt_double m_Heading
Vector2< kt_doublem_Position

Friends

std::ostream & operator<< (std::ostream &rStream, const Pose2 &rPose)
std::istream & operator>> (std::istream &rStream, const Pose2 &)

Detailed Description

Defines a position (x, y) in 2-dimensional space and heading.

Definition at line 1946 of file Karto.h.


Constructor & Destructor Documentation

karto::Pose2::Pose2 ( ) [inline]

Default Constructor

Definition at line 1952 of file Karto.h.

karto::Pose2::Pose2 ( const Vector2< kt_double > &  rPosition,
kt_double  heading 
) [inline]

Constructor initializing pose parameters

Parameters:
rPositionposition
headingheading

Definition at line 1962 of file Karto.h.

karto::Pose2::Pose2 ( kt_double  x,
kt_double  y,
kt_double  heading 
) [inline]

Constructor initializing pose parameters

Parameters:
xx-coordinate
yy-coordinate
headingheading

Definition at line 1974 of file Karto.h.

karto::Pose2::Pose2 ( const Pose2 rOther) [inline]

Copy constructor

Definition at line 1988 of file Karto.h.


Member Function Documentation

kt_double karto::Pose2::GetHeading ( ) const [inline]

Returns the heading of the pose (in radians)

Returns:
the heading of the pose

Definition at line 2053 of file Karto.h.

const Vector2<kt_double>& karto::Pose2::GetPosition ( ) const [inline]

Returns the position

Returns:
the position of the pose

Definition at line 2035 of file Karto.h.

kt_double karto::Pose2::GetX ( ) const [inline]

Returns the x-coordinate

Returns:
the x-coordinate of the pose

Definition at line 1999 of file Karto.h.

kt_double karto::Pose2::GetY ( ) const [inline]

Returns the y-coordinate

Returns:
the y-coordinate of the pose

Definition at line 2017 of file Karto.h.

kt_bool karto::Pose2::operator!= ( const Pose2 rOther) const [inline]

Inequality operator

Definition at line 2099 of file Karto.h.

Pose2 karto::Pose2::operator+ ( const Pose2 rOther) const [inline]

Binary Pose2 add

Parameters:
rOther
Returns:
Pose2 sum

Definition at line 2118 of file Karto.h.

void karto::Pose2::operator+= ( const Pose2 rOther) [inline]

In place Pose2 add.

Definition at line 2107 of file Karto.h.

Pose2 karto::Pose2::operator- ( const Pose2 rOther) const [inline]

Binary Pose2 subtract

Parameters:
rOther
Returns:
Pose2 difference

Definition at line 2128 of file Karto.h.

Pose2& karto::Pose2::operator= ( const Pose2 rOther) [inline]

Assignment operator

Definition at line 2080 of file Karto.h.

kt_bool karto::Pose2::operator== ( const Pose2 rOther) const [inline]

Equality operator

Definition at line 2091 of file Karto.h.

void karto::Pose2::SetHeading ( kt_double  heading) [inline]

Sets the heading

Parameters:
headingof the pose

Definition at line 2062 of file Karto.h.

void karto::Pose2::SetPosition ( const Vector2< kt_double > &  rPosition) [inline]

Sets the position

Parameters:
rPositionof the pose

Definition at line 2044 of file Karto.h.

void karto::Pose2::SetX ( kt_double  x) [inline]

Sets the x-coordinate

Parameters:
xthe x-coordinate of the pose

Definition at line 2008 of file Karto.h.

void karto::Pose2::SetY ( kt_double  y) [inline]

Sets the y-coordinate

Parameters:
ythe y-coordinate of the pose

Definition at line 2026 of file Karto.h.

kt_double karto::Pose2::SquaredDistance ( const Pose2 rOther) const [inline]

Return the squared distance between two Pose2

Returns:
squared distance

Definition at line 2071 of file Karto.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  rStream,
const Pose2 rPose 
) [friend]

Write this pose onto output stream

Parameters:
rStreamoutput stream
rPoseto read

Definition at line 2148 of file Karto.h.

std::istream& operator>> ( std::istream &  rStream,
const Pose2  
) [friend]

Read pose from input stream

Parameters:
rStreaminput stream

Definition at line 2137 of file Karto.h.


Member Data Documentation

Definition at line 2157 of file Karto.h.

Definition at line 2155 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Thu Aug 27 2015 14:14:06