23 #ifndef _NAVGRAPH_CONSTRAINTS_STATIC_LIST_NODE_CONSTRAINT_H_
24 #define _NAVGRAPH_CONSTRAINTS_STATIC_LIST_NODE_CONSTRAINT_H_
26 #include <navgraph/constraints/node_constraint.h>
27 #include <navgraph/navgraph.h>
43 const std::vector<fawkes::NavGraphNode> &
node_list()
const;
46 void add_nodes(
const std::vector<fawkes::NavGraphNode> &nodes);
51 virtual bool compute(
void)
throw();
Constraint that can be queried to check if a node is blocked.
std::string name()
Get name of constraint.
Constraint that holds a list of nodes to block.
void clear_nodes()
Remove all nodes.
virtual bool blocks(const fawkes::NavGraphNode &node)
Check if constraint blocks a node.
bool has_node(const fawkes::NavGraphNode &node)
Check if constraint has a specific node.
void remove_node(const fawkes::NavGraphNode &node)
Remove a single node from the constraint list.
virtual bool compute(void)
Perform compuations before graph search and to indicate re-planning.
virtual ~NavGraphStaticListNodeConstraint()
Virtual empty destructor.
void add_nodes(const std::vector< fawkes::NavGraphNode > &nodes)
Add multiple nodes to constraint list.
const std::vector< fawkes::NavGraphNode > & node_list() const
Get list of blocked nodes.
void add_node(const fawkes::NavGraphNode &node)
Add a single node to constraint list.
NavGraphStaticListNodeConstraint(std::string name)
Constructor.
std::vector< fawkes::NavGraphNode > node_list_
Node list.
bool modified_
Set to true if changes are made to the constraint.
Fawkes library namespace.