#include "planner.h"
#include "node.h"
#include <iostream>
+#include <iterator>
using namespace std;
using namespace __gnu_cxx;
}
}
- cerr << "Number of nodes: " << _addedNodes.size() << endl;
- //Clearing the init vector, effects will be added below.
+ //Clearing the init and goal vectors, new effects will be added below.
+ _init.clear();
_goal.clear();
Preconditions goal = _finish->preconditions();
for (Preconditions::const_iterator precond = goal.begin(); precond != goal.end(); ++precond){