-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplanner.h
40 lines (32 loc) · 822 Bytes
/
planner.h
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
#ifndef INCLUDED_PLANNER_H
#define INCLUDED_PLANNER_H
#include <vector>
#include "domain.h"
#include <string>
class Planner {
public:
//bool Plan(std::vector<>& plan);
void Plan();
void SetDomain(const Domain& domain);
private:
void _BuildGraph();
Domain _domain;
std::vector<unsigned> _locs; // locations
std::vector<unsigned> _smallObjs;
std::vector<unsigned> _bigObjs;
};
bool IDA_STAR();
int CalcH();
bool DFS(int g, int limit, int step, Op& preOp, int& newLimit);
bool IsGoalReached();
void AnalyzeInfo();
bool AnalyzeTask();
void GetObjsWithoutPos(const std::list<unsigned>& src, std::list<unsigned>& ret);
extern unsigned gObjToSense;
void RefreshEnv(const std::string& str);
extern Op ops[100];
extern int opsnum;
// debug function
void ShowState();
void ShowPlan();
#endif