-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParcour.hpp
57 lines (43 loc) · 1.1 KB
/
Parcour.hpp
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
#ifndef PARCOUR_HPP
#define PARCOUR_HPP
#include <Eigen/Geometry>
#include <vector>
class Box
{
public:
double height;
double width;
double depth;
//position at the middle of the object
Eigen::Vector3d position;
Eigen::Vector3d color;
Eigen::AlignedBox<double, 2> bb;
};
class Cylinder
{
public:
Eigen::Vector3d color;
double height;
double radius;
//position at the middle of the object
Eigen::Vector3d position;
};
class Parcour
{
std::vector<Box> boxes;
std::vector<Cylinder> cylinders;
Eigen::Vector3d startPos1;
Eigen::Vector3d startPos2;
public:
const Eigen::Vector3d &getStartPoint1() const;
const Eigen::Vector3d &getStartPoint2() const;
const std::vector<Box> &getBoxes() const;
const std::vector<Cylinder> &getCylinders() const;
void addRightGoal(double x, double y);
void addLeftGoal(double x, double y);
void addLeftStart(double x, double y);
void addRightStart(double x, double y);
void addObstacle(double x, double y);
void addWall(double x, double y);
};
#endif // PARCOUR_HPP