Lightweight 2D pose.
Allows coordinate access using [] operator.
Definition at line 148 of file lightweight_geom_data.h.
#include <mrpt/math/lightweight_geom_data.h>
Public Types | |
enum | { static_size = 3 } |
Public Member Functions | |
TPose2D (const TPoint2D &p) | |
Implicit constructor from TPoint2D. More... | |
TPose2D (const TPoint3D &p) | |
Constructor from TPoint3D, losing information. More... | |
TPose2D (const TPose3D &p) | |
Constructor from TPose3D, losing information. More... | |
TPose2D (const mrpt::poses::CPose2D &p) | |
Implicit constructor from heavyweight type. More... | |
TPose2D (double xx, double yy, double pphi) | |
Constructor from coordinates. More... | |
TPose2D () | |
Default fast constructor. More... | |
double & | operator[] (size_t i) |
Coordinate access using operator[]. More... | |
const double & | operator[] (size_t i) const |
Coordinate access using operator[]. More... | |
void | getAsVector (std::vector< double > &v) const |
Transformation into vector. More... | |
void | asString (std::string &s) const |
Returns a human-readable textual representation of the object (eg: "[x y yaw]", yaw in degrees) More... | |
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]" ) More... | |
Static Public Member Functions | |
static size_t | size () |
Public Attributes | |
double | x |
double | y |
X,Y coordinates. More... | |
double | phi |
Orientation (rads) More... | |
anonymous enum |
Enumerator | |
---|---|
static_size |
Definition at line 149 of file lightweight_geom_data.h.
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 174 of file lightweight_geom_data.h.
|
inline |
Default fast constructor.
Initializes to garbage.
Definition at line 178 of file lightweight_geom_data.h.
void mrpt::math::TPose2D::asString | ( | std::string & | s | ) | const |
Returns a human-readable textual representation of the object (eg: "[x y yaw]", yaw in degrees)
|
inline |
Definition at line 194 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 186 of file lightweight_geom_data.h.
|
inline |
Coordinate access using operator[].
Order: x,y,phi
Definition at line 180 of file lightweight_geom_data.h.
|
inline |
Coordinate access using operator[].
Order: x,y,phi
Definition at line 182 of file lightweight_geom_data.h.
|
inlinestatic |
Definition at line 201 of file lightweight_geom_data.h.
double mrpt::math::TPose2D::phi |
Orientation (rads)
Definition at line 151 of file lightweight_geom_data.h.
Referenced by mrpt::nav::PoseDistanceMetric< TNodeSE2 >::distance(), mrpt::graphs::detail::graph_ops< graph_t >::load_graph_of_poses_from_text_file(), mrpt::math::operator!=(), and mrpt::math::operator==().
double mrpt::math::TPose2D::x |
Definition at line 150 of file lightweight_geom_data.h.
Referenced by mrpt::nav::PoseDistanceMetric< TNodeSE2 >::cannotBeNearerThan(), mrpt::nav::PoseDistanceMetric< TNodeSE2_TP >::cannotBeNearerThan(), mrpt::nav::PoseDistanceMetric< TNodeSE2 >::distance(), mrpt::graphs::detail::graph_ops< graph_t >::load_graph_of_poses_from_text_file(), mrpt::math::operator!=(), and mrpt::math::operator==().
double mrpt::math::TPose2D::y |
X,Y coordinates.
Definition at line 150 of file lightweight_geom_data.h.
Referenced by mrpt::nav::PoseDistanceMetric< TNodeSE2 >::cannotBeNearerThan(), mrpt::nav::PoseDistanceMetric< TNodeSE2_TP >::cannotBeNearerThan(), mrpt::nav::PoseDistanceMetric< TNodeSE2 >::distance(), mrpt::graphs::detail::graph_ops< graph_t >::load_graph_of_poses_from_text_file(), mrpt::math::operator!=(), and mrpt::math::operator==().
Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Sun Aug 14 23:58:29 UTC 2016 |