NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
depth_correspondences.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 #ifndef LOCALIZATION_MEASUREMENTS_DEPTH_CORRESPONDENCES_H_
19 #define LOCALIZATION_MEASUREMENTS_DEPTH_CORRESPONDENCES_H_
20 
22 
23 #include <vector>
24 
27  DepthCorrespondences(const std::vector<Eigen::Vector2d>& source_image_points,
28  const std::vector<Eigen::Vector2d>& target_image_points,
29  const std::vector<Eigen::Vector3d>& source_3d_points,
30  const std::vector<Eigen::Vector3d>& target_3d_points)
35  valid_image_points(true),
36  valid_3d_points(true) {}
37 
38  DepthCorrespondences(const std::vector<Eigen::Vector3d>& source_3d_points,
39  const std::vector<Eigen::Vector3d>& target_3d_points)
42  valid_image_points(false),
43  valid_3d_points(true) {}
44 
47  std::vector<Eigen::Vector2d> source_image_points;
48  std::vector<Eigen::Vector2d> target_image_points;
49  std::vector<Eigen::Vector3d> source_3d_points;
50  std::vector<Eigen::Vector3d> target_3d_points;
51 };
52 } // namespace localization_measurements
53 
54 #endif // LOCALIZATION_MEASUREMENTS_DEPTH_CORRESPONDENCES_H_
localization_measurements::DepthCorrespondences::DepthCorrespondences
DepthCorrespondences(const std::vector< Eigen::Vector3d > &source_3d_points, const std::vector< Eigen::Vector3d > &target_3d_points)
Definition: depth_correspondences.h:38
localization_measurements::DepthCorrespondences::target_image_points
std::vector< Eigen::Vector2d > target_image_points
Definition: depth_correspondences.h:48
localization_measurements::DepthCorrespondences
Definition: depth_correspondences.h:26
localization_measurements::DepthCorrespondences::valid_3d_points
bool valid_3d_points
Definition: depth_correspondences.h:46
localization_measurements
Definition: depth_correspondences.h:25
localization_measurements::DepthCorrespondences::source_3d_points
std::vector< Eigen::Vector3d > source_3d_points
Definition: depth_correspondences.h:49
localization_measurements::DepthCorrespondences::target_3d_points
std::vector< Eigen::Vector3d > target_3d_points
Definition: depth_correspondences.h:50
eigen_vectors.h
localization_measurements::DepthCorrespondences::source_image_points
std::vector< Eigen::Vector2d > source_image_points
Definition: depth_correspondences.h:47
localization_measurements::DepthCorrespondences::DepthCorrespondences
DepthCorrespondences(const std::vector< Eigen::Vector2d > &source_image_points, const std::vector< Eigen::Vector2d > &target_image_points, const std::vector< Eigen::Vector3d > &source_3d_points, const std::vector< Eigen::Vector3d > &target_3d_points)
Definition: depth_correspondences.h:27
localization_measurements::DepthCorrespondences::valid_image_points
bool valid_image_points
Definition: depth_correspondences.h:45