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