Thunderbots Project
Loading...
Searching...
No Matches
ssl_detection.h
1#pragma once
2
3#include <limits>
4#include <memory>
5
6#include "proto/ssl_vision_detection.pb.h"
7#include "software/sensor_fusion/filter/vision_detection.h"
8#include "software/time/timestamp.h"
9#include "software/world/ball_state.h"
10#include "software/world/robot_state.h"
11
19std::unique_ptr<SSLProto::SSL_DetectionBall> createSSLDetectionBall(
20 const BallState& ball);
21
29std::unique_ptr<SSLProto::SSL_DetectionRobot> createSSLDetectionRobot(
30 const RobotStateWithId& robot);
31
44std::unique_ptr<SSLProto::SSL_DetectionFrame> createSSLDetectionFrame(
45 uint32_t camera_id, const Timestamp& t_capture, uint32_t frame_number,
46 const std::vector<BallState>& balls,
47 const std::vector<RobotStateWithId>& yellow_robots,
48 const std::vector<RobotStateWithId>& blue_robots);
49
65std::vector<BallDetection> createBallDetections(
66 const std::vector<SSLProto::SSL_DetectionFrame>& detections,
67 double min_valid_x = std::numeric_limits<double>::min(),
68 double max_valid_x = std::numeric_limits<double>::max(),
69 bool ignore_invalid_camera_data = false);
70
89std::vector<RobotDetection> createTeamDetection(
90 const std::vector<SSLProto::SSL_DetectionFrame>& detections, TeamColour team_colour,
91 double min_valid_x = std::numeric_limits<double>::min(),
92 double max_valid_x = std::numeric_limits<double>::max(),
93 bool ignore_invalid_camera_data = false);
Definition ball_state.h:11
Definition timestamp.h:21
Definition robot_state.h:103