camera_definitions.h
Go to the documentation of this file.
1 /*
2  * BSD 3-Clause License
3  *
4  * Copyright (c) 2019, Analog Devices, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright notice, this
11  * list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  *
17  * 3. Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from
19  * this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 #ifndef CAMERA_DEFINITIONS_H
33 #define CAMERA_DEFINITIONS_H
34 
35 #include "connections.h"
36 #include "frame_definitions.h"
37 #include "status_definitions.h"
38 
39 #include <functional>
40 #include <map>
41 #include <memory>
42 #include <string>
43 #include <vector>
44 
48 namespace aditof {
49 
50 class Frame;
51 
60  float fx;
61 
65  float fy;
66 
70  float cx;
71 
75  float cy;
76 
80  float codx;
81 
85  float cody;
86 
90  float k1;
91 
95  float k2;
96 
100  float k3;
101 
105  float k4;
106 
110  float k5;
111 
115  float k6;
116 
120  float p2;
121 
125  float p1;
126 };
127 
137 
141  std::uint8_t mode;
142 
147 
152 
157 
162  int maxDepth;
163 
168  int minDepth;
169 
173  int bitCount;
174 
179 
184 
189 
194 };
195 
200 enum class ImagerType {
201  UNSET,
202  ADSD3100,
203  ADSD3030,
204  ADTF3080,
205 };
206 
211 const std::map<ImagerType, std::string> ControlValue{
212  {ImagerType::ADSD3100, "1"},
213  {ImagerType::ADSD3030, "2"},
214  {ImagerType::ADTF3080, "3"}};
218 const std::map<ImagerType, std::string> imagerType{
219  {ImagerType::ADSD3100, "adsd3100"},
220  {ImagerType::ADSD3030, "adsd3030"},
221  {ImagerType::ADTF3080, "adtf3080"}};
222 
223 } // namespace aditof
224 
225 #endif // CAMERA_DEFINITIONS_H
aditof::IntrinsicParameters::k6
float k6
k6
Definition: camera_definitions.h:115
aditof::CameraDetails::mode
std::uint8_t mode
The mode in which the camera operates.
Definition: camera_definitions.h:141
aditof::IntrinsicParameters::cx
float cx
cx
Definition: camera_definitions.h:70
aditof::IntrinsicParameters::fx
float fx
fx
Definition: camera_definitions.h:60
aditof::CameraDetails::maxDepth
int maxDepth
The maximum distance (in millimeters) the camera can measure in the current operating mode....
Definition: camera_definitions.h:162
connections.h
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
aditof::IntrinsicParameters::k2
float k2
k2
Definition: camera_definitions.h:95
aditof::CameraDetails::serialNumber
std::string serialNumber
The serial number of camera.
Definition: camera_definitions.h:193
aditof::ImagerType::ADSD3100
@ ADSD3100
The ADSD3100 imager.
aditof::ImagerType::UNSET
@ UNSET
Value for when the type is unset.
aditof::IntrinsicParameters::k5
float k5
k5
Definition: camera_definitions.h:110
aditof::FrameDetails
Describes the properties of a frame.
Definition: frame_definitions.h:93
aditof
Namespace aditof.
Definition: adsd_errs.h:40
aditof::CameraDetails::sdCardImageVersion
std::string sdCardImageVersion
The SD card image version on the embedded system that the camera is attached to.
Definition: camera_definitions.h:188
aditof::ImagerType
ImagerType
Types of imagers.
Definition: camera_definitions.h:200
frame_definitions.h
aditof::ImagerType::ADTF3080
@ ADTF3080
The ADTF3080 imager.
aditof::CameraDetails::uBootVersion
std::string uBootVersion
The U-Boot version that is installed on the embedded system that the camera is attached to.
Definition: camera_definitions.h:178
aditof::IntrinsicParameters::cy
float cy
cy
Definition: camera_definitions.h:75
aditof::IntrinsicParameters::p2
float p2
p2
Definition: camera_definitions.h:120
aditof::CameraDetails
Describes the properties of a camera.
Definition: camera_definitions.h:132
aditof::ConnectionType
ConnectionType
Types of connections.
Definition: connections.h:44
aditof::CameraDetails::bitCount
int bitCount
The number of bits used for representing one pixel data. This is currently unused!
Definition: camera_definitions.h:173
aditof::IntrinsicParameters
Describes the intrinsic parameters of a camera.
Definition: camera_definitions.h:56
aditof::IntrinsicParameters::fy
float fy
fy
Definition: camera_definitions.h:65
aditof::IntrinsicParameters::p1
float p1
p1
Definition: camera_definitions.h:125
aditof::CameraDetails::frameType
FrameDetails frameType
Details about the frames that camera is capturing.
Definition: camera_definitions.h:146
aditof::IntrinsicParameters::k1
float k1
k1
Definition: camera_definitions.h:90
aditof::IntrinsicParameters::k3
float k3
k3
Definition: camera_definitions.h:100
aditof::ImagerType::ADSD3030
@ ADSD3030
The ADSD3030 imager.
aditof::IntrinsicParameters::cody
float cody
cody
Definition: camera_definitions.h:85
status_definitions.h
aditof::IntrinsicParameters::k4
float k4
k4
Definition: camera_definitions.h:105
aditof::CameraDetails::minDepth
int minDepth
The minimum distance (in millimeters) the camera can measure in the current operating mode....
Definition: camera_definitions.h:168
aditof::ControlValue
const std::map< ImagerType, std::string > ControlValue
Types of imagers based on ControlValue.
Definition: camera_definitions.h:211
aditof::CameraDetails::cameraId
std::string cameraId
Camera identification.
Definition: camera_definitions.h:136
aditof::imagerType
const std::map< ImagerType, std::string > imagerType
Types of imagers.
Definition: camera_definitions.h:218
aditof::CameraDetails::connection
ConnectionType connection
The type of connection with the camera.
Definition: camera_definitions.h:151
aditof::CameraDetails::kernelVersion
std::string kernelVersion
The kernel version that is installed on the embedded system that the camera is attached to.
Definition: camera_definitions.h:183
aditof::IntrinsicParameters::codx
float codx
codx
Definition: camera_definitions.h:80
aditof::CameraDetails::intrinsics
IntrinsicParameters intrinsics
Details about the intrinsic parameters of the camera.
Definition: camera_definitions.h:156


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48