ISAAC  0.2.11
Flight software for the ISAAC project, adding functionality to the Astrobee robot, operating inside the International Space Station.
All Classes Functions Variables Pages
camera_image.h
1 /* Copyright (c) 2021, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The "ISAAC - Integrated System for Autonomous and Adaptive Caretaking
7  * platform" software is licensed under the Apache License, Version 2.0
8  * (the "License"); you may not use this file except in compliance with the
9  * License. You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16  * License for the specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #ifndef CAMERA_IMAGE_H_
21 #define CAMERA_IMAGE_H_
22 
23 #include <opencv2/imgproc.hpp>
24 
25 namespace dense_map {
26 
27 // A class to encompass all known information about a camera
28 struct cameraImage {
29  // An index to look up the type of camera. This will equal the
30  // value ref_camera_type if and only if this is a reference
31  // camera.
32  int camera_type;
33 
34  // The timestamp for this camera (in floating point seconds since epoch)
35  // measured by the clock/cpu which is particular to this camera.
36  double timestamp;
37 
38  // The timestamp with an adjustment added to it to be in
39  // reference camera time
40  double ref_timestamp;
41 
42  // The timestamp of the closest cloud for this image, measured
43  // with the same clock as the 'timestamp' value.
44  double cloud_timestamp;
45 
46  // Indices to look up the reference cameras bracketing this camera
47  // in time. The two indices will have same value if and only if
48  // this is a reference camera.
49  int beg_ref_index;
50  int end_ref_index;
51 
52  // The image for this camera, in grayscale
53  cv::Mat image;
54 
55  // The corresponding depth cloud, for an image + depth camera.
56  // Will be empty and uninitialized for a camera lacking depth.
57  cv::Mat depth_cloud;
58 };
59 
60 } // namespace dense_map
61 
62 #endif // CAMERA_IMAGE_H_
dense_map::cameraImage
Definition: camera_image.h:28