-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBot.h
More file actions
31 lines (25 loc) · 685 Bytes
/
Bot.h
File metadata and controls
31 lines (25 loc) · 685 Bytes
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
//
// Created by Kevin Gaffney on 3/3/18.
//
#ifndef HAPLODIPLO_BOT_H
#define HAPLODIPLO_BOT_H
#include <enki/robots/e-puck/EPuck.h>
#include "Controller.h"
class Bot: public Enki::EPuck {
public:
Bot();
Bot(Bot &obj);
void controlStep(double dt) override;
double getLeftCameraValue(int rgb);
double getRightCameraValue(int rgb);
void increaseFitnessScore(double amount);
double getFitnessScore();
bool getShouldShareToken();
Controller* getController();
private:
Controller *controller;
double fitnessScore;
double getCameraValue(std::valarray<Enki::Color> image, int rgb);
bool shouldShareToken;
};
#endif //HAPLODIPLO_BOT_H