CRINSA-team2025 V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
ObjectDetector.h
1//
2// Created by romain on 5/26/25.
3//
4
5#ifndef OBJECTDETECTOR_H
6#define OBJECTDETECTOR_H
7#include "SensorArray.h"
8
9
11
12public:
13
14 struct AnchorBox
15 {
16 //Top corner
17 Point tc;
18 //Lower Corner
19 Point lc;
20
28 //AnchorBox(Point origin, double x_size, double y_size, double z_size);
29 //bool contains(Point p) const;
30 };
31
32 struct Detector
33 {
34 AnchorBox box;
35
36 //Last ping in ms
37 uint64_t last_ping;
38
39 bool wasInFOV;
40 };
41
46
48
49 uint8_t Update();
50
51
52private:
53 SensorArray *sensors;
54 AnchorBox arena;
55
56 std::vector<Point> points;
57
58 std::vector<Detector> detectors;
59
60 uint8_t KeepArena();
61
62};
63
64
65
66#endif //OBJECTDETECTOR_H
ObjectDetector(SensorArray *array, AnchorBox env)
Current driver version.
Definition ObjectDetector.cpp:7
Definition SensorArray.h:45
Definition ObjectDetector.h:15
Definition ObjectDetector.h:33
Definition Types.h:9