|
selfdriving
|
#include <mpp/data/SE2_KinState.h>
Public Member Functions | |
| PoseOrPoint ()=default | |
| ~PoseOrPoint ()=default | |
| PoseOrPoint (const mrpt::math::TPoint2D &p) | |
| PoseOrPoint (const mrpt::math::TPose2D &p) | |
| bool | isEmpty () const |
| bool | isPose () const |
| bool | isPoint () const |
| const mrpt::math::TPose2D & | pose () const |
| const mrpt::math::TPoint2D & | point () const |
| std::string | asString () const |
Static Public Member Functions | |
| static PoseOrPoint | FromString (const std::string &s) |
Private Attributes | |
| std::variant< std::monostate, mrpt::math::TPose2D, mrpt::math::TPoint2D > | data_ |
Variant wrapper holding a SE(2) pose, a R(2) (2D) point, or none (default). It is used to provide a goal or waypoint state, when the heading is not important and the user only wants to specify the (x,y) coordinates of the 2D point.
|
default |
|
default |
|
inline |
|
inline |
| std::string mpp::PoseOrPoint::asString | ( | ) | const |
|
static |
Returns a point or a pose depending on the input string having the format "[x y]" or "[x y phi_degrees]", respectively.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
1.8.13