-
Notifications
You must be signed in to change notification settings - Fork 2
/
main_nir.cpp
45 lines (36 loc) · 1.2 KB
/
main_nir.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "main.h"
string Main::getError( int num ){
string error = "[ERROR]";
switch(num){
case 1:
error += " Less than 2 arguments, the execution must be ./main_nir config/[conf_file].txt";
break;
default:
error += " undefined";
break;
}
return error;
}
string Main::getPlan(){
ifstream ifs( "plan.ipc" );
if( ifs ){
ifs.close();
return "plan.ipc";
}
return "";
}
string Main::getPlannerCommand( unsigned timeout ){
//return "python2.7 PLANNERS/tmp/fd-version/bfws.py domain.pddl ins.pddl DUAL-BFWS";
return "python2.7 PLANNERS/bfws/fd-version/bfws.py domain.pddl ins.pddl DUAL-BFWS";
//return "ulimit -Sv 4000000 & python2.7 PLANNERS/bfws/fd-version/bfws.py domain.pddl ins.pddl DUAL-BFWS";
//return "python2.7 PLANNERS/bfws/fd-version/bfws.py domain.pddl ins.pddl BFWS-f5-landmarks";
//return "./PLANNERS/bfws/ff-version/bfws --domain domain.pddl --problem ins.pddl BFWS-f5-landmarks 1 --output plan.ipc";
//return "python2.7 PLANNERS/BFWS/fd-version/bfws.py domain.pddl ins.pddl BFWS-f5";
//return "python2.7 PLANNERS/lapkt/planners/brfs/brfs.py domain.pddl ins.pddl out";
}
int main( int argc , char *argv[] ){
Main *m = new Main( argc, argv );
m->run();
if( m ) delete m;
return 0;
}