-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathagvtasknode.h
More file actions
55 lines (49 loc) · 1.28 KB
/
agvtasknode.h
File metadata and controls
55 lines (49 loc) · 1.28 KB
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
46
47
48
49
50
51
52
53
54
55
#ifndef AGVTASKNODE_H
#define AGVTASKNODE_H
#include <vector>
#include <memory>
#include "mapmap/mapmanager.h"
#include "agvtasknodedothing.h"
class AgvTaskNode;
using AgvTaskNodePtr = std::shared_ptr<AgvTaskNode>;
enum TASK_TYPE
{
TASK_PICK = 0,
TASK_PUT = 1,
TASK_CHARGE = 2,
TASK_MOVE = 3
};
//一个任务节点由[零个或者一个]目的地 和 到达目的地后要做的多个事情助成
class AgvTaskNode : public std::enable_shared_from_this<AgvTaskNode>
{
public:
AgvTaskNode():
aimStation(0),
type(TASK_PICK)
{
}
int getStation(){return aimStation;}
void setStation(int station)
{
aimStation = station;
}
std::string getParams(){return params;}
void setParams(std::string _params)
{
params = _params;
}
void setTaskType(int _type)
{
type = (int)_type;
}
int getType(){return type;}
std::vector<AgvTaskNodeDoThingPtr> getDoThings(){return doThings;}
void setDoThings(std::vector<AgvTaskNodeDoThingPtr> _doThings){doThings=_doThings;}
void push_backDoThing(AgvTaskNodeDoThingPtr doThing){doThings.push_back(doThing);}
private:
int aimStation;
int type;
std::string params;
std::vector<AgvTaskNodeDoThingPtr> doThings;
};
#endif // AGVTASKNODE_H