-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInitEnvironment.h
64 lines (54 loc) · 1.11 KB
/
InitEnvironment.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
63
64
/*
* InitEnvironment.h
*
* Created on: Jan 29, 2016
* Author: colman
*/
#ifndef INITENVIRONMENT_H_
#define INITENVIRONMENT_H_
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include "Map/wayPoint.h"
#include "STCAlg/STC.h"
#include "Map/Map.h"
#include "robot.h"
#include <cmath>
using namespace std;
typedef pair<double, double> Position;
typedef pair<float, float> robotSize;
struct startLocation {
Position location;
float yaw;
};
class InitEnvironment
{
public:
InitEnvironment(const char* parametersFile);
char* getMapImage();
startLocation getStartLocation();
Position getStartXY();
float getStartYaw();
float getRobotSize();
float getMapResolution();
wayPoint& getStartLocationAsStartWaypoint();
void start();
~InitEnvironment();
private:
Map* m;
STC* stc;
char* mapImg;
Position startXY;
float startYaw;
startLocation robotStartLocation;
robotSize sizeRobot;
float MapResolution;
vector<string> split(string str, char delimiter);
};
#endif /* INITENVIRONMENT_H_ */