-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrap.h
43 lines (34 loc) · 829 Bytes
/
wrap.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
#ifndef WRAPPER_HPP
#define WRAPPER_HPP
#include <tgf.h>
#include <car.h>
#include <track.h>
#include <raceman.h>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <utility>
using namespace std;
#define TR_RGT 1 /**< Right curve */
#define TR_LFT 2 /**< Left curve */
#define TR_STR 3 /**< Straight */
class wrapper{
private:
public:
vector< pair<float, float> > m_trackData;
tCarElt* m_car;
tSituation* m_situation;
float m_distFromStart;
float m_trackLength;
wrapper();
float getCurrentTime();
void updateState(tCarElt* c, tSituation* s);
void getTrack();
float getDistanceFromStart();
float getCurvature(float seg);
float positionFromCenterline();
void print();
void printStuff(char* name, tdble stuff);
};
#endif