31 #include "rtabmap/core/rtabmap_core_export.h"
50 const std::string & filePath,
52 const std::map<int, Transform> & poses,
53 const std::multimap<int, Link> & constraints = std::multimap<int, Link>(),
54 const std::map<int, double> & stamps = std::map<int, double>(),
58 const std::string & filePath,
60 std::map<int, Transform> & poses,
61 std::multimap<int, Link> * constraints = 0,
62 std::map<int, double> * stamps = 0);
65 const std::string & filePath,
66 const std::map<int, GPS> & gpsValues,
67 unsigned int rgba = 0xFFFFFFFF);
78 const std::vector<Transform> &poses_gt,
79 const std::vector<Transform> &poses_result,
91 const std::vector<Transform> &poses_gt,
92 const std::vector<Transform> &poses_result,
105 const std::map<int, Transform> &groundTruth,
106 const std::map<int, Transform> &poses,
107 float & translational_rmse,
108 float & translational_mean,
109 float & translational_median,
110 float & translational_std,
111 float & translational_min,
112 float & translational_max,
113 float & rotational_rmse,
114 float & rotational_mean,
115 float & rotational_median,
116 float & rotational_std,
117 float & rotational_min,
118 float & rotational_max,
119 bool align2D =
false);
122 const std::map<int, Transform> & poses,
123 const std::multimap<int, Link> & links,
124 float & maxLinearErrorRatio,
125 float & maxAngularErrorRatio,
126 float & maxLinearError,
127 float & maxAngularError,
128 const Link ** maxLinearErrorLink = 0,
129 const Link ** maxAngularErrorLink = 0,
130 bool for3DoF =
false);
132 std::vector<double> RTABMAP_CORE_EXPORT
getMaxOdomInf(
const std::multimap<int, Link> & links);
134 std::multimap<int, Link>::iterator RTABMAP_CORE_EXPORT
findLink(
135 std::multimap<int, Link> & links,
138 bool checkBothWays =
true,
140 std::multimap<int, std::pair<int, Link::Type> >
::iterator RTABMAP_CORE_EXPORT
findLink(
141 std::multimap<
int, std::pair<int, Link::Type> > & links,
144 bool checkBothWays =
true,
146 std::multimap<int, int>::iterator RTABMAP_CORE_EXPORT
findLink(
147 std::multimap<int, int> & links,
150 bool checkBothWays =
true);
151 std::multimap<int, Link>::const_iterator RTABMAP_CORE_EXPORT
findLink(
152 const std::multimap<int, Link> & links,
155 bool checkBothWays =
true,
157 std::multimap<int, std::pair<int, Link::Type> >::const_iterator RTABMAP_CORE_EXPORT
findLink(
158 const std::multimap<
int, std::pair<int, Link::Type> > & links,
161 bool checkBothWays =
true,
163 std::multimap<int, int>::const_iterator RTABMAP_CORE_EXPORT
findLink(
164 const std::multimap<int, int> & links,
167 bool checkBothWays =
true);
168 std::list<Link> RTABMAP_CORE_EXPORT
findLinks(
169 const std::multimap<int, Link> & links,
173 const std::multimap<int, Link> & links);
177 std::multimap<int, Link> RTABMAP_CORE_EXPORT
filterLinks(
178 const std::multimap<int, Link> & links,
180 bool inverted =
false);
184 std::map<int, Link> RTABMAP_CORE_EXPORT
filterLinks(
185 const std::map<int, Link> & links,
187 bool inverted =
false);
191 const std::map<int, Transform> & poses,
193 float horizontalFOV = 45.0
f,
194 float verticalFOV = 45.0
f,
195 float nearClipPlaneDistance = 0.1
f,
196 float farClipPlaneDistance = 100.0
f,
197 bool negative =
false);
208 const std::map<int, Transform> & poses,
211 bool keepLatest =
true);
221 const std::map<int, Transform> & poses,
226 const std::map<int, Transform> & poses,
227 const std::multimap<int, Link> & links,
228 std::multimap<int, int> & hyperNodes,
229 std::multimap<int, Link> & hyperLinks);
240 std::list<std::pair<int, Transform> > RTABMAP_CORE_EXPORT
computePath(
241 const std::map<int, rtabmap::Transform> & poses,
242 const std::multimap<int, int> & links,
245 bool updateNewCosts =
false);
258 const std::multimap<int, Link> & links,
261 bool updateNewCosts =
false,
262 bool useSameCostForAllLinks =
false);
273 std::list<std::pair<int, Transform> > RTABMAP_CORE_EXPORT
computePath(
277 bool lookInDatabase =
true,
278 bool updateNewCosts =
false,
279 float linearVelocity = 0.0
f,
280 float angularVelocity = 0.0
f);
290 const std::map<int, rtabmap::Transform> & poses,
304 const std::map<int, Transform> & poses,
310 const std::map<int, Transform> & poses,
316 const std::map<int, Transform> & poses,
322 const std::map<int, Transform> & poses,
339 const std::vector<std::pair<int, Transform> > &
path,
340 unsigned int fromIndex = 0,
341 unsigned int toIndex = 0);
345 const std::map<int, Transform> &
path);
347 std::list<std::map<int, Transform> > RTABMAP_CORE_EXPORT
getPaths(
348 std::map<int, Transform> poses,
349 const std::multimap<int, Link> & links);
351 void RTABMAP_CORE_EXPORT
computeMinMax(
const std::map<int, Transform> & poses,