NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
image_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_COMMON_IMAGE_CORRESPONDENCES_H_
19 #define LOCALIZATION_COMMON_IMAGE_CORRESPONDENCES_H_
20 
22 
23 #include <vector>
24 
25 namespace localization_common {
27  ImageCorrespondences(const std::vector<Eigen::Vector2d>& image_points, const std::vector<Eigen::Vector3d>& points_3d)
30 
31  void AddCorrespondence(const Eigen::Vector2d& image_point, const Eigen::Vector3d& point_3d) {
32  image_points.emplace_back(image_point);
33  points_3d.emplace_back(point_3d);
34  }
35 
36  size_t size() const { return image_points.size(); }
37 
38  std::vector<Eigen::Vector2d> image_points;
39  std::vector<Eigen::Vector3d> points_3d;
40 };
41 } // namespace localization_common
42 
43 #endif // LOCALIZATION_COMMON_IMAGE_CORRESPONDENCES_H_
localization_common
Definition: averager.h:33
localization_common::ImageCorrespondences::ImageCorrespondences
ImageCorrespondences()
Definition: image_correspondences.h:29
localization_common::ImageCorrespondences
Definition: image_correspondences.h:26
localization_common::ImageCorrespondences::ImageCorrespondences
ImageCorrespondences(const std::vector< Eigen::Vector2d > &image_points, const std::vector< Eigen::Vector3d > &points_3d)
Definition: image_correspondences.h:27
point_cloud_common::Vector3d
Eigen::Vector3d Vector3d(const PointType &point)
Definition: utilities.h:328
localization_common::ImageCorrespondences::size
size_t size() const
Definition: image_correspondences.h:36
localization_common::ImageCorrespondences::AddCorrespondence
void AddCorrespondence(const Eigen::Vector2d &image_point, const Eigen::Vector3d &point_3d)
Definition: image_correspondences.h:31
localization_common::ImageCorrespondences::image_points
std::vector< Eigen::Vector2d > image_points
Definition: image_correspondences.h:38
eigen_vectors.h
localization_common::ImageCorrespondences::points_3d
std::vector< Eigen::Vector3d > points_3d
Definition: image_correspondences.h:39