-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathArnlSystem.h
62 lines (51 loc) · 1.27 KB
/
ArnlSystem.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef _ARNLSYSTEM_H
#define _ARNLSYSTEM_H
#include "ariaUtil.h"
class ArRobot;
class ArPathPlanningTask;
class ArLocalizationTask;
class ArServerModeStop;
class ArServerModeGoto;
class ArServerModeWander;
class ArServerModeDock;
class ArRobotPacket;
class ArServerBase;
class ArMap;
class ArServerInfoDrawings;
class ArServerModeJogPosition;
class ArServerModeRatioDrive;
class ArnlSystem
{
public:
ArnlSystem(const char *_logprefix = "");
virtual ~ArnlSystem();
public:
typedef enum {
OK,
RobotConnectError,
ParseArgumentsError,
ConfigError,
LaserConnectError
} Error;
Error setup();
ArRobot *robot;
ArPathPlanningTask *pathTask;
ArLocalizationTask *locTask;
ArServerModeStop *modeStop;
ArServerModeGoto *modeGoto;
ArServerModeWander *modeWander;
ArServerModeDock *modeDock;
ArServerBase *serverBase;
ArMap *map;
ArTime creationTime;
ArServerInfoDrawings *drawings;
ArServerModeRatioDrive *modeRatioDrive;
ArServerModeJogPosition *modeJogPosition;
const char* getServerMode() const ;
const char* getServerStatus() const ;
const char* getPathStateName() const ;
protected:
const char *logprefix;
bool handleDebugMessage(ArRobotPacket *pkt);
};
#endif