LocalGuidance
A library that generates velocity references to follow a path.
navigation_common::PathLocalGuidance Class Reference

#include <PathLocalGuidance.hpp>

Inheritance diagram for navigation_common::PathLocalGuidance:
Inheritance graph

Public Types

using PathLocalGuidancePtr = std::shared_ptr< PathLocalGuidance >
 
- Public Types inherited from navigation_common::PathBase< PathSegmentLocalGuidance >
using PathSegmentTypePtr = std::shared_ptr< PathSegmentLocalGuidance >
 
using PathBasePtr = std::shared_ptr< PathBase >
 
using Header = std_msgs::Header
 

Public Member Functions

 PathLocalGuidance ()=default
 
 PathLocalGuidance (const navigation_msgs::PathLocalGuidance &msg)
 
 PathLocalGuidance (const typename PathBase< PathSegmentLocalGuidance >::PathBasePtr &pathBase)
 
virtual ~PathLocalGuidance () override=default
 
void fromRos (const navigation_msgs::PathLocalGuidance &msg)
 
navigation_msgs::PathLocalGuidance toRos () const
 
PathLocalGuidancePtr getDeepCopy () const
 
- Public Member Functions inherited from navigation_common::PathBase< PathSegmentLocalGuidance >
 PathBase ()=default
 
 PathBase (const PathBasePtr &pathBase)
 
virtual ~PathBase ()=default
 
void clear ()
 
unsigned int getNumberOfSegments () const
 
PathSegmentTypePtr getSegment (unsigned int id) const
 
PathSegmentTypePtr getSegmentStartingFromEnd (unsigned int id) const
 
const PathSegmentTypePtrgetFirstSegment () const
 
const PathSegmentTypePtrgetLastSegment () const
 
void addSegment (unsigned int id, const PathSegmentTypePtr &segment)
 
void addSegmentStartingFromEnd (unsigned int id, const PathSegmentTypePtr &segment)
 
void addSegmentToStart (const PathSegmentTypePtr &segment)
 
void addSegmentToEnd (const PathSegmentTypePtr &segment)
 
void removeSegment (unsigned int id)
 
void removeSegmentStartingFromEnd (unsigned int id)
 
void removeSegmentAtStart ()
 
void removeSegmentAtEnd ()
 
PathSegmentTypePtr getNearestSegment (const PoseStamped &pose) const
 
bool getClosestPoseOnPath (const PoseStamped &poseIn, PoseStamped *closestPoseOnPath, double *distance, unsigned int *idSegmentClosestPoseOnPath) const
 
void getClosestPoseOnLine (const PoseStamped &poseIn, const PoseStamped &pose0, const PoseStamped &pose1, PoseStamped *closestPoseOnLine, double *distance, bool *poseOutCloserToPose0) const
 
bool moveForwardAlongPath (const PoseStamped &poseIn, const double requestedDistance, PoseStamped *closestPoseOnPath, unsigned int *idSegmentClosestPoseOnPath, PoseStamped *poseOut, double *travelledDistanceOnPath, unsigned int *idSegmentPoseOut) const
 
bool removeSegmentsBehindPose (const PoseStamped &pose)
 
bool getIdOfSegment (const PathSegmentTypePtr &segment, unsigned int &id) const
 
unsigned int getIdFirstSegment () const
 
unsigned int getIdLastSegment () const
 
double getLengthOfSegment (unsigned int id) const
 
double getLengthOfFragment (unsigned int startId, unsigned int endId) const
 
double getLength () const
 
void interpolateOrientations ()
 
void addYawToZ (double zScale, double yawScale)
 
PathBasePtr getDeepCopyBase () const
 
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type almostEqual (T x, T y, int ulp=2) const
 

Additional Inherited Members

- Public Attributes inherited from navigation_common::PathBase< PathSegmentLocalGuidance >
Header header_
 Header. More...
 
std::deque< PathSegmentTypePtrpathSegments_
 Array of segments. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

navigation_common::PathLocalGuidance::PathLocalGuidance ( )
default

Constructor.

navigation_common::PathLocalGuidance::PathLocalGuidance ( const navigation_msgs::PathLocalGuidance msg)
explicit

Constructor.

Parameters
msgros path message.
navigation_common::PathLocalGuidance::PathLocalGuidance ( const typename PathBase< PathSegmentLocalGuidance >::PathBasePtr pathBase)
explicit

Constructor.

Parameters
pathfrom base class.
virtual navigation_common::PathLocalGuidance::~PathLocalGuidance ( )
overridevirtualdefault

Destructor.

Member Function Documentation

void navigation_common::PathLocalGuidance::fromRos ( const navigation_msgs::PathLocalGuidance msg)

Import a ros path message.

Parameters
msgros path message.
PathLocalGuidancePtr navigation_common::PathLocalGuidance::getDeepCopy ( ) const

Create a deep copy of this path.

Returns
new path.
navigation_msgs::PathLocalGuidance navigation_common::PathLocalGuidance::toRos ( ) const

Export a ros path message.

Returns
ros path message.

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