OdometryInfo.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef ODOMETRYINFO_H_
29 #define ODOMETRYINFO_H_
30 
31 #include <map>
32 #include "rtabmap/core/Transform.h"
35 #include "rtabmap/core/LaserScan.h"
36 #include <opencv2/features2d/features2d.hpp>
37 
38 namespace rtabmap {
39 
41 {
42 public:
44  lost(true),
45  features(0),
46  localMapSize(0),
48  localKeyFrames(0),
51  localBundleTime(0),
53  timeEstimation(0.0f),
55  stamp(0),
56  interval(0),
57  distanceTravelled(0.0f),
58  memoryUsage(0),
59  gravityRollError(0.0),
60  gravityPitchError(0.0),
61  type(0)
62  {}
63 
65  {
66  OdometryInfo output;
67  output.lost = lost;
68  output.reg = reg.copyWithoutData();
69  output.features = features;
70  output.localMapSize = localMapSize;
81  output.stamp = stamp;
82  output.interval = interval;
83  output.transform = transform;
88  output.memoryUsage = memoryUsage;
91  output.type = type;
92  return output;
93  }
94 
95  bool lost;
97  int features;
104  std::map<int, Transform> localBundlePoses;
105  std::map<int, CameraModel> localBundleModels;
109  double stamp;
110  double interval;
116  int memoryUsage; //MB
119 
120  int type;
121 
122  // F2M
123  std::multimap<int, cv::KeyPoint> words;
124  std::map<int, cv::Point3f> localMap;
126 
127  // F2F
128  std::vector<cv::Point2f> refCorners;
129  std::vector<cv::Point2f> newCorners;
130  std::vector<int> cornerInliers;
131 };
132 
133 }
134 
135 #endif /* ODOMETRYINFO_H_ */
std::vector< cv::Point2f > refCorners
Definition: OdometryInfo.h:128
std::map< int, CameraModel > localBundleModels
Definition: OdometryInfo.h:105
Transform transformGroundTruth
Definition: OdometryInfo.h:113
f
Transform transformFiltered
Definition: OdometryInfo.h:112
std::map< int, cv::Point3f > localMap
Definition: OdometryInfo.h:124
OdometryInfo copyWithoutData() const
Definition: OdometryInfo.h:64
#define true
Definition: ConvertUTF.c:57
std::vector< int > cornerInliers
Definition: OdometryInfo.h:130
std::map< int, Transform > localBundlePoses
Definition: OdometryInfo.h:104
#define false
Definition: ConvertUTF.c:56
std::multimap< int, cv::KeyPoint > words
Definition: OdometryInfo.h:123
std::vector< cv::Point2f > newCorners
Definition: OdometryInfo.h:129
RegistrationInfo reg
Definition: OdometryInfo.h:96
RegistrationInfo copyWithoutData() const


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:34:59