Lightweight 2D pose.
Allows coordinate access using [] operator.
Definition at line 199 of file lightweight_geom_data.h.
#include <mrpt/math/lightweight_geom_data.h>
Public Member Functions | |
| TPose2D (const TPoint2D &p) | |
| Implicit constructor from TPoint2D. | |
| TPose2D (const TPoint3D &p) | |
| Constructor from TPoint3D, losing information. | |
| TPose2D (const TPose3D &p) | |
| Constructor from TPose3D, losing information. | |
| TPose2D (const mrpt::poses::CPose2D &p) | |
| Implicit constructor from heavyweight type. | |
| TPose2D (double xx, double yy, double pphi) | |
| Constructor from coordinates. | |
| TPose2D () | |
| Default fast constructor. | |
| double & | operator[] (size_t i) |
| Unsafe coordinate access using operator[]. | |
| const double & | operator[] (size_t i) const |
| Unsafe coordinate access using operator[]. | |
| void | getAsVector (vector_double &v) const |
| Transformation into vector. | |
| void | asString (std::string &s) const |
| Returns a human-readable textual representation of the object (eg: "[x y yaw]", yaw in degrees) | |
| std::string | asString () const |
| void | fromString (const std::string &s) |
| Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -45.0]" ) | |
Static Public Member Functions | |
| static size_t | size () |
Public Attributes | |
| double | x |
| X coordinate. | |
| double | y |
| Y coordinate. | |
| double | phi |
| Phi coordinate. | |
| mrpt::math::TPose2D::TPose2D | ( | const TPoint2D & | p | ) |
|
explicit |
|
explicit |
| mrpt::math::TPose2D::TPose2D | ( | const mrpt::poses::CPose2D & | p | ) |
Implicit constructor from heavyweight type.
|
inline |
Constructor from coordinates.
Definition at line 235 of file lightweight_geom_data.h.
|
inline |
Default fast constructor.
Initializes to garbage.
Definition at line 239 of file lightweight_geom_data.h.
|
inline |
Returns a human-readable textual representation of the object (eg: "[x y yaw]", yaw in degrees)
Definition at line 262 of file lightweight_geom_data.h.
References mrpt::mrpt::format(), and mrpt::utils::RAD2DEG().
|
inline |
Definition at line 263 of file lightweight_geom_data.h.
References asString().
Referenced by asString().
| void mrpt::math::TPose2D::fromString | ( | const std::string & | s | ) |
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -45.0]" )
| std::exception | On invalid format |
|
inline |
Transformation into vector.
Definition at line 255 of file lightweight_geom_data.h.
References mrpt::dynamicsize_vector< T >::resize().
|
inline |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 243 of file lightweight_geom_data.h.
|
inline |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 249 of file lightweight_geom_data.h.
|
inlinestatic |
Definition at line 270 of file lightweight_geom_data.h.
| double mrpt::math::TPose2D::phi |
Phi coordinate.
Definition at line 211 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CRobot2DPoseEstimator::getLatestRobotPose(), mrpt::math::operator!=(), and mrpt::math::operator==().
| double mrpt::math::TPose2D::x |
X coordinate.
Definition at line 203 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CRobot2DPoseEstimator::getLatestRobotPose(), mrpt::math::operator!=(), and mrpt::math::operator==().
| double mrpt::math::TPose2D::y |
Y coordinate.
Definition at line 207 of file lightweight_geom_data.h.
Referenced by mrpt::poses::CRobot2DPoseEstimator::getLatestRobotPose(), mrpt::math::operator!=(), and mrpt::math::operator==().
| Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013 |