Skip to content

Commit 3bf5fe7

Browse files
committed
rearranged again
1 parent e5055a1 commit 3bf5fe7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fd_integration/pr2_search_algorithm.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ unique_ptr<SearchAlgorithm> PR2Search::get_search_engine() {
3434
factory function with somewhat complex behaviour.
3535
*/
3636

37+
//Move is destructive and necessary.
3738
auto initial_state_values = PR2.proxy->get_pr2_initial_state()->get_unpacked_values();
38-
vector<FactPair> goals = PR2.proxy->get_pr2_goals();
3939
std::shared_ptr<extra_tasks::WeakPlanningTask> weak_task = std::make_shared<extra_tasks::WeakPlanningTask>(tasks::g_root_task, std::move(initial_state_values), std::move(PR2.proxy->get_pr2_goals()));
4040

4141
// Build FF heuristic object.
4242
if (h) {
43+
vector<FactPair> goals = PR2.proxy->get_pr2_goals();
4344
h->reset(goals);
4445
} else {
4546
h = make_shared<fsap_penalized_ff_heuristic::FSAPPenalizedFFHeuristic>(tasks::g_root_task, true, "FSAP Aware Heuristic", utils::Verbosity::NORMAL);

0 commit comments

Comments
 (0)