CSCI 3081 - Drone Delivery System
|
Represents a read only graph object. More...
#include <graph.h>
Public Member Functions | |
virtual | ~IGraph () |
Destructor. | |
virtual const IGraphNode * | GetNode (const std::string &name) const =0 |
Gets a node in the graph by name. | |
virtual const std::vector< IGraphNode * > & | GetNodes () const =0 |
Gets all nodes in the graph. | |
virtual const std::vector< std::vector< float > > | GetPath (std::vector< float > src, std::vector< float > dest) const =0 |
Returns a vector of float vectors that represent a path from src to dest. More... | |
Represents a read only graph object.
|
pure virtual |
Returns a vector of float vectors that represent a path from src to dest.
Given a source and destination in the form of 3-element x,y,z vectors, this function will return a list of positions to traverse in-order, which avoids the geometry of the scene. The returned path includes the source and destination points.