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
CameraHandler.h
Go to the documentation of this file.
1
11#ifndef CAMERA_HANDLER_H
12#define CAMERA_HANDLER_H
13
14#include "../interfaces/BasicCamera.hpp"
15#include "../interfaces/ZEDCamera.hpp"
16#include "RecordingHandler.h"
17
19#include <opencv2/core.hpp>
20
22
23
34{
35 private:
37 // Declare private class member variables.
39
40 std::shared_ptr<ZEDCamera> m_pMainCam;
41 std::shared_ptr<ZEDCamera> m_pRearCam;
42 std::unique_ptr<RecordingHandler> m_pRecordingHandler;
43
44 public:
46 // Define public enumerators specific to this class.
48
49 enum class ZEDCamName // Enum for different zed cameras.
50 {
51 ZEDCAM_START,
52 eHeadMainCam,
53 eRearCam,
54 ZEDCAM_END
55 };
56
57 enum class BasicCamName // Enum for different basic cameras.
58 {
59 BASICCAM_START,
60 // eExampleBasicCam, // Uncomment and change name if basic cam needed.
61 BASICCAM_END
62 };
63
65 // Declare public class methods and variables.
67
70 void StartAllCameras();
71 void StartRecording();
72 void StopAllCameras();
73 void StopRecording();
74
76 // Accessors.
78
79 std::shared_ptr<ZEDCamera> GetZED(ZEDCamName eCameraName);
80 std::shared_ptr<BasicCamera> GetBasicCam(BasicCamName eCameraName);
81};
82
83#endif
Defines the RecordingHandler class.
The CameraHandler class is responsible for managing all of the camera feeds that Autonomy_Software us...
Definition CameraHandler.h:34
void StopAllCameras()
Signals all cameras to stop their threads.
Definition CameraHandler.cpp:173
void StartAllCameras()
Signals all cameras to start their threads.
Definition CameraHandler.cpp:146
void StartRecording()
Signal the RecordingHandler to start recording video feeds from the CameraHandler.
Definition CameraHandler.cpp:160
~CameraHandler()
Destroy the Camera Handler Thread:: Camera Handler Thread object.
Definition CameraHandler.cpp:133
CameraHandler()
Construct a new Camera Handler Thread:: Camera Handler Thread object.
Definition CameraHandler.cpp:25
void StopRecording()
Signal the RecordingHandler to stop recording video feeds from the CameraHandler.
Definition CameraHandler.cpp:199
std::shared_ptr< BasicCamera > GetBasicCam(BasicCamName eCameraName)
Accessor for Basic cameras.
Definition CameraHandler.cpp:235
std::shared_ptr< ZEDCamera > GetZED(ZEDCamName eCameraName)
Accessor for ZED cameras.
Definition CameraHandler.cpp:215