22 #ifndef __NAVGRAPH_CONSTRAINTS_EDGE_CONSTRAINT_H_ 23 #define __NAVGRAPH_CONSTRAINTS_EDGE_CONSTRAINT_H_ 28 #include <navgraph/navgraph_node.h> 46 virtual bool compute(
void)
throw();
50 bool operator==(
const std::string &name)
const;
Constraint that can be queried to check if an edge is blocked.
Fawkes library namespace.
bool operator==(const std::string &name) const
Check if constraint matches name.
std::string name_
Name of constraint.
virtual ~NavGraphEdgeConstraint()
Virtual empty destructor.
std::string name()
Get name of constraint.
virtual bool blocks(const fawkes::NavGraphNode &from, const fawkes::NavGraphNode &to)=0
Check if constraint blocks an edge.
virtual bool compute(void)
Perform compuations before graph search and to indicate re-planning.
NavGraphEdgeConstraint(const std::string &name)
Constructor.