MRPT
2.0.1
|
Base template for TPoint2D and TPoint2Df.
Forward declarations of all mrpt::math classes related to poses and points.
Definition at line 32 of file TPoint2D.h.
#include <mrpt/math/TPoint2D.h>
Public Types | |
enum | { static_size = 2 } |
Public Member Functions | |
constexpr | TPoint2D_ () |
Default constructor. More... | |
constexpr | TPoint2D_ (T xx, T yy) |
Constructor from coordinates. More... | |
template<typename U > | |
TPoint2D_ (const TPoint2D_data< U > &p) | |
Explicit constructor from coordinates. More... | |
template<typename U > | |
TPoint2D_ (const mrpt::math::CMatrixFixed< U, 2, 1 > &m) | |
Constructor from column vector. More... | |
TPoint2D_ (const TPose2D &p) | |
Constructor from TPose2D, discarding phi. More... | |
TPoint2D_ (const TPoint3D_< T > &p) | |
Constructor from TPoint3D, discarding z. More... | |
TPoint2D_ (const TPose3D &p) | |
Constructor from TPose3D, discarding z and the angular coordinates. More... | |
template<typename U > | |
TPoint2D_< U > | cast () const |
Return a copy of this object using type U for coordinates. More... | |
T & | operator[] (size_t i) |
Coordinate access using operator[]. More... | |
constexpr T | operator[] (size_t i) const |
Coordinate access using operator[]. More... | |
template<typename U > | |
void | asVector (std::vector< U > &v) const |
Transformation into vector. More... | |
bool | operator< (const TPoint2D_ &p) const |
TPoint2D_ & | operator+= (const TPoint2D_ &p) |
TPoint2D_ & | operator-= (const TPoint2D_ &p) |
TPoint2D_ & | operator*= (T d) |
TPoint2D_ & | operator/= (T d) |
constexpr TPoint2D_ | operator+ (const TPoint2D_ &p) const |
constexpr TPoint2D_ | operator- (const TPoint2D_ &p) const |
constexpr TPoint2D_ | operator* (T d) const |
constexpr TPoint2D_ | operator/ (T d) const |
void | asString (std::string &s) const |
Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" ) 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]" ) More... | |
T | sqrNorm () const |
Squared norm: |v|^2 = x^2+y^2. More... | |
T | norm () const |
Point norm: |v| = sqrt(x^2+y^2) More... | |
constexpr std::size_t | rows () const |
constexpr std::size_t | cols () const |
constexpr std::size_t | size () const |
void | resize (std::size_t n) |
throws if attempted to resize to incorrect length More... | |
Static Public Member Functions | |
static TPoint2D_ | FromString (const std::string &s) |
Public Attributes | |
T | x |
X,Y coordinates. More... | |
T | y |
anonymous enum |
Enumerator | |
---|---|
static_size |
Definition at line 36 of file TPoint2D.h.
|
inline |
|
inline |
Constructor from coordinates.
Definition at line 43 of file TPoint2D.h.
|
inline |
Explicit constructor from coordinates.
Definition at line 47 of file TPoint2D.h.
|
inline |
Constructor from column vector.
Definition at line 55 of file TPoint2D.h.
|
explicit |
Constructor from TPose2D, discarding phi.
Definition at line 25 of file TPoint2D.cpp.
|
explicit |
Constructor from TPoint3D, discarding z.
Definition at line 31 of file TPoint2D.cpp.
|
explicit |
Constructor from TPose3D, discarding z and the angular coordinates.
Definition at line 36 of file TPoint2D.cpp.
|
inline |
Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" )
Definition at line 175 of file TPoint2D.h.
|
inline |
Definition at line 180 of file TPoint2D.h.
Referenced by mrpt::math::TPoint2D_< double >::asString().
|
inline |
Transformation into vector.
Definition at line 114 of file TPoint2D.h.
|
inline |
Return a copy of this object using type U for coordinates.
Definition at line 78 of file TPoint2D.h.
|
inlineinherited |
Definition at line 66 of file TPoseOrPoint.h.
void mrpt::math::TPoint2D_< T >::fromString | ( | const std::string & | s | ) |
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" )
std::exception | On invalid format |
Definition at line 53 of file TPoint2D.cpp.
Referenced by mrpt::math::TPoint2D_< double >::FromString().
|
inlinestatic |
Definition at line 194 of file TPoint2D.h.
|
inline |
Point norm: |v| = sqrt(x^2+y^2)
Definition at line 205 of file TPoint2D.h.
Referenced by mrpt::nav::collision_free_dist_segment_circ_robot(), mrpt::nav::CParameterizedTrajectoryGenerator::evalClearanceSingleObstacle(), mrpt::nav::CHolonomicND::gapsEstimator(), mrpt::nav::CHolonomicND::searchBestGap(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().
|
inline |
Definition at line 162 of file TPoint2D.h.
|
inline |
Definition at line 137 of file TPoint2D.h.
|
inline |
Definition at line 152 of file TPoint2D.h.
|
inline |
Definition at line 123 of file TPoint2D.h.
|
inline |
Definition at line 157 of file TPoint2D.h.
|
inline |
Definition at line 130 of file TPoint2D.h.
|
inline |
Definition at line 166 of file TPoint2D.h.
|
inline |
Definition at line 144 of file TPoint2D.h.
bool mrpt::math::TPoint2D_< T >::operator< | ( | const TPoint2D_< T > & | p | ) | const |
Definition at line 42 of file TPoint2D.cpp.
|
inline |
|
inline |
|
inlineinherited |
throws if attempted to resize to incorrect length
Definition at line 70 of file TPoseOrPoint.h.
|
inlineinherited |
Definition at line 65 of file TPoseOrPoint.h.
|
inlineinherited |
Definition at line 67 of file TPoseOrPoint.h.
|
inline |
Squared norm: |v|^2 = x^2+y^2.
Definition at line 202 of file TPoint2D.h.
Referenced by mrpt::math::TPoint2D_< double >::norm().
|
inherited |
X,Y coordinates.
Definition at line 25 of file TPoint2D.h.
Referenced by mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::math::areAligned(), mrpt::math::TPoint2D_< double >::asString(), mrpt::math::TPoint2D_< double >::asVector(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), mrpt::nav::CAbstractPTGBasedReactive::calc_move_candidate_scores(), mrpt::nav::CHolonomicND::calcRepresentativeSectorForGap(), mrpt::math::TPoint2D_< double >::cast(), mrpt::nav::CReactiveNavigationSystem::checkCollisionWithLatestObstacles(), mrpt::nav::CReactiveNavigationSystem3D::checkCollisionWithLatestObstacles(), mrpt::maps::CPointsMap::clipOutOfRange(), mrpt::nav::collision_free_dist_arc_circ_robot(), mrpt::nav::collision_free_dist_segment_circ_robot(), mrpt::math::TPose2D::composePoint(), mrpt::poses::CPose2D::composePoint(), mrpt::poses::CPosePDFGaussian::composePoint(), mrpt::poses::CPose3D::composePoint(), mrpt::maps::COccupancyGridMap2D::computeLikelihoodField_II(), mrpt::maps::COccupancyGridMap2D::computeLikelihoodField_Thrun(), mrpt::maps::COccupancyGridMap2D::computeObservationLikelihood_Consensus(), mrpt::maps::COccupancyGridMap2D::computeObservationLikelihood_ConsensusOWA(), mrpt::nav::PlannerSimple2D::computePath(), mrpt::poses::CPoint2D::CPoint2D(), mrpt::math::distance(), mrpt::nav::CParameterizedTrajectoryGenerator::evalClearanceSingleObstacle(), mrpt::nav::CHolonomicFullEval::evalSingleTarget(), mrpt::math::TLine2D::evaluatePoint(), mrpt::maps::CPointsMap::extractCylinder(), mrpt::poses::CRobot2DPoseEstimator::extrapolateRobotPose(), mrpt::opengl::internal::Font::fill(), mrpt::vision::findMultipleChessboardsCorners(), mrpt::math::getAngleBisector(), mrpt::nav::TWaypoint::getAsText(), mrpt::math::TPolygon2D::getBoundingBox(), mrpt::math::TPolygon2D::getCenter(), mrpt::math::TSegment2D::getCenter(), mrpt::maps::CPointsMap::getPoint(), mrpt::math::getRectangleBounds(), mrpt::math::getSegmentBisector(), mrpt::opengl::internal::glDrawText(), mrpt::nav::CAbstractPTGBasedReactive::impl_waypoint_is_reachable(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_GMRF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KernelDM_DMV(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::math::intersect(), mrpt::math::TPose2D::inverseComposePoint(), mrpt::poses::CPose2D::inverseComposePoint(), mrpt::poses::CPose3D::inverseComposePoint(), isLeft(), mrpt::nav::TWaypoint::isValid(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeClosestPoint2D(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeClosestPoint2DsqrError(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeNClosestPoint2D(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeNClosestPoint2DIdx(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeTwoClosestPoint2D(), mrpt::nav::CReactiveNavigationSystem3D::loggingGetWSObstaclesAndShape(), mrpt::slam::CRangeBearingKFSLAM2D::OnTransitionJacobian(), mrpt::math::operator!=(), mrpt::math::TPoint2D_< double >::operator*(), mrpt::math::TPoint2D_< double >::operator*=(), mrpt::math::TPoint2D_< double >::operator+(), mrpt::poses::operator+(), mrpt::math::TPoint2D_< double >::operator+=(), mrpt::math::TPoint2D_< double >::operator-(), mrpt::math::TPoint2D_< double >::operator-=(), mrpt::math::TPoint2D_< double >::operator/(), mrpt::math::TPoint2D_< double >::operator/=(), mrpt::math::TPoint2D_< double >::operator<(), mrpt::math::operator==(), mrpt::math::TPoint2D_< double >::operator[](), mrpt::opengl::internal::Font::outline(), mrpt::apps::CGridMapAlignerApp::run(), mrpt::nav::CHolonomicND::searchBestGap(), mrpt::maps::CPointsMap::setPoint(), mrpt::math::TPoint2D_< double >::sqrNorm(), mrpt::maps::CPointsMap::squareDistanceToClosestCorrespondenceT(), TEST(), mrpt::math::TLine2D::TLine2D(), mrpt::math::TPoint2D_< double >::TPoint2D_(), mrpt::math::TPoint3D_< float >::TPoint3D_(), mrpt::topography::transformHelmert2D(), mrpt::topography::transformHelmert2D_TOPCON(), unsafeProjectPoint(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().
|
inherited |
Definition at line 25 of file TPoint2D.h.
Referenced by mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::math::areAligned(), mrpt::math::TPoint2D_< double >::asString(), mrpt::math::TPoint2D_< double >::asVector(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), mrpt::nav::CAbstractPTGBasedReactive::calc_move_candidate_scores(), mrpt::nav::CHolonomicND::calcRepresentativeSectorForGap(), mrpt::math::TPoint2D_< double >::cast(), mrpt::nav::CReactiveNavigationSystem::checkCollisionWithLatestObstacles(), mrpt::nav::CReactiveNavigationSystem3D::checkCollisionWithLatestObstacles(), mrpt::maps::CPointsMap::clipOutOfRange(), mrpt::nav::collision_free_dist_arc_circ_robot(), mrpt::nav::collision_free_dist_segment_circ_robot(), mrpt::math::TPose2D::composePoint(), mrpt::poses::CPose2D::composePoint(), mrpt::poses::CPosePDFGaussian::composePoint(), mrpt::poses::CPose3D::composePoint(), mrpt::maps::COccupancyGridMap2D::computeLikelihoodField_II(), mrpt::maps::COccupancyGridMap2D::computeLikelihoodField_Thrun(), mrpt::maps::COccupancyGridMap2D::computeObservationLikelihood_Consensus(), mrpt::maps::COccupancyGridMap2D::computeObservationLikelihood_ConsensusOWA(), mrpt::nav::PlannerSimple2D::computePath(), mrpt::math::TPolygon2D::contains(), mrpt::poses::CPoint2D::CPoint2D(), mrpt::math::distance(), mrpt::nav::CParameterizedTrajectoryGenerator::evalClearanceSingleObstacle(), mrpt::nav::CHolonomicFullEval::evalSingleTarget(), mrpt::math::TLine2D::evaluatePoint(), mrpt::maps::CPointsMap::extractCylinder(), mrpt::poses::CRobot2DPoseEstimator::extrapolateRobotPose(), mrpt::opengl::internal::Font::fill(), mrpt::math::getAngleBisector(), mrpt::nav::TWaypoint::getAsText(), mrpt::math::TPolygon2D::getBoundingBox(), mrpt::math::TPolygon2D::getCenter(), mrpt::math::TSegment2D::getCenter(), mrpt::maps::CPointsMap::getPoint(), mrpt::math::getRectangleBounds(), mrpt::math::getSegmentBisector(), mrpt::opengl::internal::glDrawText(), mrpt::nav::CAbstractPTGBasedReactive::impl_waypoint_is_reachable(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_GMRF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KernelDM_DMV(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::math::intersect(), mrpt::math::TPose2D::inverseComposePoint(), mrpt::poses::CPose2D::inverseComposePoint(), mrpt::poses::CPose3D::inverseComposePoint(), isLeft(), mrpt::nav::TWaypoint::isValid(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeClosestPoint2D(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeClosestPoint2DsqrError(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeNClosestPoint2D(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeNClosestPoint2DIdx(), mrpt::math::KDTreeCapable< CFeatureList >::kdTreeTwoClosestPoint2D(), mrpt::nav::CReactiveNavigationSystem3D::loggingGetWSObstaclesAndShape(), mrpt::slam::CRangeBearingKFSLAM2D::OnTransitionJacobian(), mrpt::math::operator!=(), mrpt::math::TPoint2D_< double >::operator*(), mrpt::math::TPoint2D_< double >::operator*=(), mrpt::math::TPoint2D_< double >::operator+(), mrpt::poses::operator+(), mrpt::math::TPoint2D_< double >::operator+=(), mrpt::math::TPoint2D_< double >::operator-(), mrpt::math::TPoint2D_< double >::operator-=(), mrpt::math::TPoint2D_< double >::operator/(), mrpt::math::TPoint2D_< double >::operator/=(), mrpt::math::TPoint2D_< double >::operator<(), mrpt::math::operator==(), mrpt::math::TPoint2D_< double >::operator[](), mrpt::opengl::internal::Font::outline(), mrpt::apps::CGridMapAlignerApp::run(), mrpt::nav::CHolonomicND::searchBestGap(), mrpt::maps::CPointsMap::setPoint(), mrpt::math::TPoint2D_< double >::sqrNorm(), mrpt::maps::CPointsMap::squareDistanceToClosestCorrespondenceT(), TEST(), mrpt::math::TLine2D::TLine2D(), mrpt::math::TPoint2D_< double >::TPoint2D_(), mrpt::math::TPoint3D_< float >::TPoint3D_(), mrpt::topography::transformHelmert2D(), mrpt::topography::transformHelmert2D_TOPCON(), unsafeProjectPoint(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |