26{
27
28 if (!constants::MODE_SIM)
29 {
30
31 m_pMainCam =
new ZEDCam(constants::ZED_MAINCAM_RESOLUTIONX,
32 constants::ZED_MAINCAM_RESOLUTIONY,
33 constants::ZED_MAINCAM_FPS,
34 constants::ZED_MAINCAM_HORIZONTAL_FOV,
35 constants::ZED_MAINCAM_VERTICAL_FOV,
36 constants::ZED_MAINCAM_ENABLE_RECORDING,
37 constants::ZED_DEFAULT_MINIMUM_DISTANCE,
38 constants::ZED_DEFAULT_MAXIMUM_DISTANCE,
39 constants::ZED_MAINCAM_USE_GPU_MAT,
40 constants::ZED_MAINCAM_USE_HALF_PRECISION_DEPTH,
41 constants::ZED_MAINCAM_FUSION_MASTER,
42 constants::ZED_MAINCAM_FRAME_RETRIEVAL_THREADS,
43 constants::ZED_MAINCAM_SERIAL);
44 }
45 else
46 {
47 m_pMainCam =
new SIMZEDCam(
"ws://" + constants::SIM_IP_ADDRESS +
":80",
48 constants::ZED_MAINCAM_RESOLUTIONX,
49 constants::ZED_MAINCAM_RESOLUTIONY,
50 constants::ZED_MAINCAM_FPS,
51 constants::ZED_MAINCAM_HORIZONTAL_FOV,
52 constants::ZED_MAINCAM_VERTICAL_FOV,
53 constants::ZED_MAINCAM_ENABLE_RECORDING,
54 constants::ZED_MAINCAM_FRAME_RETRIEVAL_THREADS,
55 constants::ZED_MAINCAM_SERIAL);
56 }
57
58
59 m_pLeftCam =
new ZEDCam(constants::ZED_LEFTCAM_RESOLUTIONX,
60 constants::ZED_LEFTCAM_RESOLUTIONY,
61 constants::ZED_LEFTCAM_FPS,
62 constants::ZED_LEFTCAM_HORIZONTAL_FOV,
63 constants::ZED_LEFTCAM_VERTICAL_FOV,
64 constants::ZED_LEFTCAM_ENABLE_RECORDING,
65 constants::ZED_DEFAULT_MINIMUM_DISTANCE,
66 constants::ZED_DEFAULT_MAXIMUM_DISTANCE,
67 constants::ZED_LEFTCAM_USE_GPU_MAT,
68 constants::ZED_LEFTCAM_USE_HALF_PRECISION_DEPTH,
69 constants::ZED_LEFTCAM_FUSION_MASTER,
70 constants::ZED_LEFTCAM_FRAME_RETRIEVAL_THREADS,
71 constants::ZED_LEFTCAM_SERIAL);
72
73
74 m_pRightCam =
new ZEDCam(constants::ZED_RIGHTCAM_RESOLUTIONX,
75 constants::ZED_RIGHTCAM_RESOLUTIONY,
76 constants::ZED_RIGHTCAM_FPS,
77 constants::ZED_RIGHTCAM_HORIZONTAL_FOV,
78 constants::ZED_RIGHTCAM_VERTICAL_FOV,
79 constants::ZED_RIGHTCAM_ENABLE_RECORDING,
80 constants::ZED_DEFAULT_MINIMUM_DISTANCE,
81 constants::ZED_DEFAULT_MAXIMUM_DISTANCE,
82 constants::ZED_RIGHTCAM_USE_GPU_MAT,
83 constants::ZED_RIGHTCAM_USE_HALF_PRECISION_DEPTH,
84 constants::ZED_RIGHTCAM_FUSION_MASTER,
85 constants::ZED_RIGHTCAM_FRAME_RETRIEVAL_THREADS,
86 constants::ZED_RIGHTCAM_SERIAL);
87
88
89 m_pGroundCam =
new BasicCam(constants::BASICCAM_GROUNDCAM_INDEX,
90 constants::BASICCAM_GROUNDCAM_RESOLUTIONX,
91 constants::BASICCAM_GROUNDCAM_RESOLUTIONY,
92 constants::BASICCAM_GROUNDCAM_FPS,
93 constants::BASICCAM_GROUNDCAM_PIXELTYPE,
94 constants::BASICCAM_GROUNDCAM_HORIZONTAL_FOV,
95 constants::BASICCAM_GROUNDCAM_VERTICAL_FOV,
96 constants::BASICCAM_GROUNDCAM_ENABLE_RECORDING,
97 constants::BASICCAM_GROUNDCAM_FRAME_RETRIEVAL_THREADS);
98
99
100 m_pRecordingHandler =
new RecordingHandler(RecordingHandler::RecordingMode::eCameraHandler);
101}
This class implements and interfaces with the most common USB cameras and features....
Definition BasicCam.h:33
The RecordingHandler class serves to enumerate the cameras available from the CameraHandler and retri...
Definition RecordingHandler.h:35
This class implements and interfaces with the SIM cameras and data. It is designed in such a way that...
Definition SIMZEDCam.h:34
This class implements and interfaces with the most common ZEDSDK cameras and features....
Definition ZEDCam.h:31