Thunderbots Project
Loading...
Searching...
No Matches
vision_detection.h
1#pragma once
2
3#include "software/geom/angle.h"
4#include "software/geom/point.h"
5#include "software/time/timestamp.h"
6
14{
15 unsigned int id;
16 Point position;
17 Angle orientation;
18 double confidence;
19 Timestamp timestamp;
20
21 bool operator<(const RobotDetection &r) const
22 {
23 return timestamp < r.timestamp;
24 }
25};
26
34{
35 // The position of the ball detection on the field, in meters
36 Point position;
37 // The height of the ball off the ground, in meters
38 double distance_from_ground;
39 // The timestamp of the detection. This is the timestamp for when the camera frame
40 // containing the detection was captured
41 Timestamp timestamp;
42 double confidence;
43
44 bool operator<(const BallDetection &b) const
45 {
46 return timestamp < b.timestamp;
47 }
48};
Definition angle.h:15
Definition point.h:14
Definition timestamp.h:21
Definition vision_detection.h:34
Definition vision_detection.h:14