Loading...
Searching...
No Matches
ompl::geometric::aitstar::Edge Class Reference

Public Member Functions

 Edge ()
 Needs a default constructor for the binary heap. More...
 
 Edge (const std::shared_ptr< Vertex > &parent, const std::shared_ptr< Vertex > &child, const std::array< ompl::base::Cost, 3u > &sortKey)
 Constructs an edge from a parent, a child, and the sort key. More...
 
 ~Edge ()=default
 Destructs an edge.
 
std::shared_ptr< VertexgetParent () const
 Returns the parent in this edge. More...
 
std::shared_ptr< VertexgetChild () const
 Returns the child in this edge. More...
 
const std::array< ompl::base::Cost, 3u > & getSortKey () const
 Returns the sort key associated with this edge. More...
 
void setSortKey (const std::array< ompl::base::Cost, 3u > &key)
 Sets the sort key associated with this edge. More...
 

Detailed Description

Definition at line 55 of file Edge.h.

Constructor & Destructor Documentation

◆ Edge() [1/2]

ompl::geometric::aitstar::Edge::Edge ( )

Needs a default constructor for the binary heap.

Definition at line 45 of file Edge.cpp.

◆ Edge() [2/2]

ompl::geometric::aitstar::Edge::Edge ( const std::shared_ptr< Vertex > &  parent,
const std::shared_ptr< Vertex > &  child,
const std::array< ompl::base::Cost, 3u > &  sortKey 
)

Constructs an edge from a parent, a child, and the sort key.

Definition at line 54 of file Edge.cpp.

Member Function Documentation

◆ getChild()

std::shared_ptr< Vertex > ompl::geometric::aitstar::Edge::getChild ( ) const

Returns the child in this edge.

Definition at line 65 of file Edge.cpp.

◆ getParent()

std::shared_ptr< Vertex > ompl::geometric::aitstar::Edge::getParent ( ) const

Returns the parent in this edge.

Definition at line 60 of file Edge.cpp.

◆ getSortKey()

const std::array< ompl::base::Cost, 3u > & ompl::geometric::aitstar::Edge::getSortKey ( ) const

Returns the sort key associated with this edge.

Definition at line 70 of file Edge.cpp.

◆ setSortKey()

void ompl::geometric::aitstar::Edge::setSortKey ( const std::array< ompl::base::Cost, 3u > &  key)

Sets the sort key associated with this edge.

Definition at line 75 of file Edge.cpp.


The documentation for this class was generated from the following files:
  • ompl/geometric/planners/informedtrees/aitstar/Edge.h
  • ompl/geometric/planners/informedtrees/aitstar/src/Edge.cpp