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;
87  output.guess = guess;
89  output.memoryUsage = memoryUsage;
92  output.type = type;
93  return output;
94  }
95 
96  bool lost;
98  int features;
105  std::map<int, Transform> localBundlePoses;
106  std::map<int, std::vector<CameraModel> > localBundleModels;
110  double stamp;
111  double interval;
115  Transform guessVelocity; // deprecated, will be removed. Use guess and interval instead.
118  int memoryUsage; //MB
121 
122  int type;
123 
124  // F2M
125  std::multimap<int, cv::KeyPoint> words;
126  std::map<int, cv::Point3f> localMap;
128 
129  // F2F
130  std::vector<cv::Point2f> refCorners;
131  std::vector<cv::Point2f> newCorners;
132  std::vector<int> cornerInliers;
133 };
134 
135 }
136 
137 #endif /* ODOMETRYINFO_H_ */
std::vector< cv::Point2f > refCorners
Definition: OdometryInfo.h:130
Transform transformGroundTruth
Definition: OdometryInfo.h:114
f
Transform transformFiltered
Definition: OdometryInfo.h:113
std::map< int, cv::Point3f > localMap
Definition: OdometryInfo.h:126
std::map< int, std::vector< CameraModel > > localBundleModels
Definition: OdometryInfo.h:106
RegistrationInfo copyWithoutData() const
#define true
Definition: ConvertUTF.c:57
std::vector< int > cornerInliers
Definition: OdometryInfo.h:132
std::map< int, Transform > localBundlePoses
Definition: OdometryInfo.h:105
OdometryInfo copyWithoutData() const
Definition: OdometryInfo.h:64
#define false
Definition: ConvertUTF.c:56
std::multimap< int, cv::KeyPoint > words
Definition: OdometryInfo.h:125
std::vector< cv::Point2f > newCorners
Definition: OdometryInfo.h:131
RegistrationInfo reg
Definition: OdometryInfo.h:97


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:37:29