karto::Pose2 Class Reference
#include <Karto.h>
List of all members.
Detailed Description
Defines a position (x, y) in 2-dimensional space and heading.
Definition at line 1849 of file Karto.h.
Constructor & Destructor Documentation
karto::Pose2::Pose2 |
( |
|
) |
[inline] |
Default Constructor
Definition at line 1855 of file Karto.h.
Constructor initializing pose parameters
- Parameters:
-
| rPosition | position |
| heading | heading |
Definition at line 1865 of file Karto.h.
Constructor initializing pose parameters
- Parameters:
-
| x | x-coordinate |
| y | y-coordinate |
| heading | heading |
Definition at line 1877 of file Karto.h.
karto::Pose2::Pose2 |
( |
const Pose3 & |
rPose |
) |
[inline] |
karto::Pose2::Pose2 |
( |
const Pose2 & |
rOther |
) |
[inline] |
Copy constructor
Definition at line 1891 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 1956 of file Karto.h.
Returns the position
- Returns:
- the position of the pose
Definition at line 1938 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 1902 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 1920 of file Karto.h.
kt_bool karto::Pose2::operator!= |
( |
const Pose2 & |
rOther |
) |
const [inline] |
Inequality operator
Definition at line 1998 of file Karto.h.
Pose2 karto::Pose2::operator+ |
( |
const Pose2 & |
rOther |
) |
const [inline] |
void karto::Pose2::operator+= |
( |
const Pose2 & |
rOther |
) |
[inline] |
Pose2 karto::Pose2::operator- |
( |
const Pose2 & |
rOther |
) |
const [inline] |
Pose2& karto::Pose2::operator= |
( |
const Pose2 & |
rOther |
) |
[inline] |
Assignment operator
Definition at line 1979 of file Karto.h.
kt_bool karto::Pose2::operator== |
( |
const Pose2 & |
rOther |
) |
const [inline] |
Equality operator
Definition at line 1990 of file Karto.h.
void karto::Pose2::SetHeading |
( |
kt_double |
heading |
) |
[inline] |
Sets the heading
- Parameters:
-
Definition at line 1965 of file Karto.h.
void karto::Pose2::SetPosition |
( |
const Vector2< kt_double > & |
rPosition |
) |
[inline] |
Sets the position
- Parameters:
-
Definition at line 1947 of file Karto.h.
void karto::Pose2::SetX |
( |
kt_double |
x |
) |
[inline] |
Sets the x-coordinate
- Parameters:
-
| x | the x-coordinate of the pose |
Definition at line 1911 of file Karto.h.
void karto::Pose2::SetY |
( |
kt_double |
y |
) |
[inline] |
Sets the y-coordinate
- Parameters:
-
| y | the y-coordinate of the pose |
Definition at line 1929 of file Karto.h.
kt_double karto::Pose2::SquaredDistance |
( |
const Pose2 & |
rOther |
) |
const [inline] |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
rStream, |
|
|
const Pose2 & |
rPose | |
|
) |
| | [friend] |
Write this pose onto output stream
- Parameters:
-
| rStream | output stream |
| rPose | to read |
Definition at line 2048 of file Karto.h.
std::istream& operator>> |
( |
std::istream & |
rStream, |
|
|
const Pose2 & |
| |
|
) |
| | [friend] |
Read pose from input stream
- Parameters:
-
| rStream | input stream |
| rPose | to write |
Definition at line 2037 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: