Public Types | Public Member Functions | Private Types | List of all members
trajectory_tracker::Path2D Class Reference

#include <path2d.h>

Inheritance diagram for trajectory_tracker::Path2D:
Inheritance graph
[legend]

Public Types

using ConstIterator = std::vector< Pose2D >::const_iterator
 
using Iterator = std::vector< Pose2D >::iterator
 

Public Member Functions

std::vector< ConstIteratorenumerateLocalGoals (const ConstIterator &begin, const ConstIterator &end, const bool allow_switch_back, const bool allow_in_place_turn=true, const double epsilon=1e-6) const
 
ConstIterator findLocalGoal (const ConstIterator &begin, const ConstIterator &end, const bool allow_switch_back, const bool allow_in_place_turn=true, const double epsilon=1e-6) const
 
ConstIterator findNearest (const ConstIterator &begin, const ConstIterator &end, const Eigen::Vector2d &target, const float max_search_range=0, const float epsilon=1e-6) const
 
std::pair< ConstIterator, double > findNearestWithDistance (const ConstIterator &begin, const ConstIterator &end, const Eigen::Vector2d &target, const float max_search_range=0, const float epsilon=1e-6) const
 
template<typename PATH_TYPE >
void fromMsg (const PATH_TYPE &path, const double in_place_turn_eps=1.0e-6)
 
float getCurvature (const ConstIterator &begin, const ConstIterator &end, const Eigen::Vector2d &target_on_line, const float max_search_range) const
 
std::vector< double > getEstimatedTimeOfArrivals (const ConstIterator &begin, const ConstIterator &end, const double linear_speed, const double angular_speed, const double initial_eta_sec=0.0) const
 
float length () const
 
double remainedDistance (const ConstIterator &begin, const ConstIterator &nearest, const ConstIterator &end, const Eigen::Vector2d &target_on_line) const
 
template<typename PATH_TYPE >
void toMsg (PATH_TYPE &path) const
 

Private Types

using Super = std::vector< Pose2D >
 

Detailed Description

Definition at line 118 of file path2d.h.

Member Typedef Documentation

◆ ConstIterator

using trajectory_tracker::Path2D::ConstIterator = std::vector<Pose2D>::const_iterator

Definition at line 125 of file path2d.h.

◆ Iterator

using trajectory_tracker::Path2D::Iterator = std::vector<Pose2D>::iterator

Definition at line 124 of file path2d.h.

◆ Super

using trajectory_tracker::Path2D::Super = std::vector<Pose2D>
private

Definition at line 121 of file path2d.h.

Member Function Documentation

◆ enumerateLocalGoals()

std::vector<ConstIterator> trajectory_tracker::Path2D::enumerateLocalGoals ( const ConstIterator begin,
const ConstIterator end,
const bool  allow_switch_back,
const bool  allow_in_place_turn = true,
const double  epsilon = 1e-6 
) const
inline

Definition at line 353 of file path2d.h.

◆ findLocalGoal()

ConstIterator trajectory_tracker::Path2D::findLocalGoal ( const ConstIterator begin,
const ConstIterator end,
const bool  allow_switch_back,
const bool  allow_in_place_turn = true,
const double  epsilon = 1e-6 
) const
inline

Definition at line 134 of file path2d.h.

◆ findNearest()

ConstIterator trajectory_tracker::Path2D::findNearest ( const ConstIterator begin,
const ConstIterator end,
const Eigen::Vector2d &  target,
const float  max_search_range = 0,
const float  epsilon = 1e-6 
) const
inline

Definition at line 171 of file path2d.h.

◆ findNearestWithDistance()

std::pair<ConstIterator, double> trajectory_tracker::Path2D::findNearestWithDistance ( const ConstIterator begin,
const ConstIterator end,
const Eigen::Vector2d &  target,
const float  max_search_range = 0,
const float  epsilon = 1e-6 
) const
inline

Definition at line 180 of file path2d.h.

◆ fromMsg()

template<typename PATH_TYPE >
void trajectory_tracker::Path2D::fromMsg ( const PATH_TYPE &  path,
const double  in_place_turn_eps = 1.0e-6 
)
inline

Definition at line 306 of file path2d.h.

◆ getCurvature()

float trajectory_tracker::Path2D::getCurvature ( const ConstIterator begin,
const ConstIterator end,
const Eigen::Vector2d &  target_on_line,
const float  max_search_range 
) const
inline

Definition at line 260 of file path2d.h.

◆ getEstimatedTimeOfArrivals()

std::vector<double> trajectory_tracker::Path2D::getEstimatedTimeOfArrivals ( const ConstIterator begin,
const ConstIterator end,
const double  linear_speed,
const double  angular_speed,
const double  initial_eta_sec = 0.0 
) const
inline

Definition at line 374 of file path2d.h.

◆ length()

float trajectory_tracker::Path2D::length ( ) const
inline

Definition at line 127 of file path2d.h.

◆ remainedDistance()

double trajectory_tracker::Path2D::remainedDistance ( const ConstIterator begin,
const ConstIterator nearest,
const ConstIterator end,
const Eigen::Vector2d &  target_on_line 
) const
inline

Definition at line 226 of file path2d.h.

◆ toMsg()

template<typename PATH_TYPE >
void trajectory_tracker::Path2D::toMsg ( PATH_TYPE &  path) const
inline

Definition at line 342 of file path2d.h.


The documentation for this class was generated from the following file:


trajectory_tracker
Author(s): Atsushi Watanabe
autogenerated on Fri May 16 2025 02:15:20