RTAB-Map 0.23.10
Loading...
Searching...
No Matches
OdometryInfo.h
1/*
2Copyright (c) 2010-2025, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, 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
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23ON 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
25SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28#ifndef ODOMETRYINFO_H_
29#define ODOMETRYINFO_H_
30
31#include <rtabmap/core/rtabmap_core_export.h>
32#include <map>
33#include "rtabmap/core/Transform.h"
34#include "rtabmap/core/RegistrationInfo.h"
35#include "rtabmap/core/CameraModel.h"
36#include "rtabmap/core/LaserScan.h"
37#if CV_MAJOR_VERSION < 5
38#include <opencv2/features2d/features2d.hpp>
39#else
40#include <opencv2/features.hpp>
41#endif
42
43namespace rtabmap {
44
45class RTABMAP_CORE_EXPORT OdometryInfo
46{
47public:
49 OdometryInfo copyWithoutData() const;
50 std::map<std::string, float> statistics(const Transform & pose = Transform());
51
52 bool lost;
54 int features;
55 int localMapSize;
56 int localScanMapSize;
57 int localKeyFrames;
58 int localBundleOutliers;
59 int localBundleConstraints;
60 float localBundleTime;
61 std::map<int, Transform> localBundlePoses;
62 std::map<int, std::vector<CameraModel> > localBundleModels;
63 float localBundleAvgInlierDistance;
64 int localBundleMaxKeyFramesForInlier;
65 std::vector<int> localBundleOutliersPerCam;
66 bool keyFrameAdded;
67 float timeDeskewing;
68 float timeEstimation;
69 float timeParticleFiltering;
70 double stamp;
71 double interval;
72 Transform transform;
73 Transform transformFiltered;
74 Transform transformGroundTruth;
75 Transform guessVelocity; // deprecated, will be removed. Use guess and interval instead.
76 Transform guess;
77 float distanceTravelled;
78 int memoryUsage; //MB
79 double gravityRollError;
80 double gravityPitchError;
81
82 int type;
83
84 // F2M
85 std::multimap<int, cv::KeyPoint> words;
86 std::map<int, cv::Point3f> localMap;
87 LaserScan localScanMap;
88
89 // F2F
90 std::vector<cv::Point2f> refCorners;
91 std::vector<cv::Point2f> newCorners;
92 std::vector<int> cornerInliers;
93};
94
95}
96
97#endif /* ODOMETRYINFO_H_ */
Represents 2D or 3D laser scan data with support for multiple point data formats.
Definition LaserScan.h:46
Statistics and diagnostics returned by Registration.
Represents a 3D rigid body transformation (rotation + translation).
Definition Transform.h:53