Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
ObjectDetectionHandler.h
Go to the documentation of this file.
1
11#ifndef OBJECT_DETECTION_HANDLER_H
12#define OBJECT_DETECTION_HANDLER_H
13
14#include "../vision/objects/ObjectDetector.h"
15#include "RecordingHandler.h"
16
17
28{
29 private:
31 // Declare private class member variables.
33
34 std::shared_ptr<ObjectDetector> m_pObjectDetectorMainCam;
35 std::unique_ptr<RecordingHandler> m_pRecordingHandler;
36
37 public:
39 // Define public enumerators specific to this class.
41
42 enum class ObjectDetectors // Enum for different cameras that detectors are being ran on.
43 {
44 OBJECTDETECTOR_START,
45 eHeadMainCam,
46 OBJECTDETECTOR_END
47 };
48
50 // Declare public class methods and variables.
52
55 void StartAllDetectors();
56 void StartRecording();
57 void StopAllDetectors();
58 void StopRecording();
59
61 // Accessors.
63
64 std::shared_ptr<ObjectDetector> GetObjectDetector(ObjectDetectors eDetectorName);
65};
66
67#endif
Defines the RecordingHandler class.
The ObjectDetectionHandler class is responsible for managing all of the different detectors that Auto...
Definition ObjectDetectionHandler.h:28
void StartAllDetectors()
Signals all detectors to start their threads.
Definition ObjectDetectionHandler.cpp:67
void StopRecording()
Signal the RecordingHandler to stop recording feeds from the detectors.
Definition ObjectDetectionHandler.cpp:111
void StartRecording()
Signal the RecordingHandler to start recording feeds from the detectors.
Definition ObjectDetectionHandler.cpp:80
std::shared_ptr< ObjectDetector > GetObjectDetector(ObjectDetectors eDetectorName)
Accessor for ObjectDetector detectors.
Definition ObjectDetectionHandler.cpp:127
ObjectDetectionHandler()
Construct a new ObjectDetectionHandler::ObjectDetectionHandler object.
Definition ObjectDetectionHandler.cpp:22
~ObjectDetectionHandler()
Destroy the ObjectDetectionHandler::ObjectDetectionHandler object.
Definition ObjectDetectionHandler.cpp:54
void StopAllDetectors()
Signals all detectors to stop their threads.
Definition ObjectDetectionHandler.cpp:93