109 RTABMAP_STATS(Loop, Id,);
110 RTABMAP_STATS(Loop, RejectedHypothesis,);
111 RTABMAP_STATS(Loop, Accepted_hypothesis_id,);
112 RTABMAP_STATS(Loop, Suppressed_hypothesis_id,);
113 RTABMAP_STATS(Loop, Highest_hypothesis_id,);
114 RTABMAP_STATS(Loop, Highest_hypothesis_value,);
115 RTABMAP_STATS(Loop, Vp_hypothesis,);
116 RTABMAP_STATS(Loop, Reactivate_id,);
117 RTABMAP_STATS(Loop, Hypothesis_ratio,);
118 RTABMAP_STATS(Loop, Hypothesis_reactivated,);
119 RTABMAP_STATS(Loop, Map_id,);
120 RTABMAP_STATS(Loop, Visual_words,);
121 RTABMAP_STATS(Loop, Visual_inliers,);
122 RTABMAP_STATS(Loop, Visual_inliers_ratio,);
123 RTABMAP_STATS(Loop, Visual_matches,);
124 RTABMAP_STATS(Loop, Visual_variance,);
125 RTABMAP_STATS(Loop, Distance_since_last_loc, m);
126 RTABMAP_STATS(Loop, Last_id,);
127 RTABMAP_STATS(Loop, Optimization_max_error, m);
128 RTABMAP_STATS(Loop, Optimization_max_error_ratio, );
129 RTABMAP_STATS(Loop, Optimization_max_ang_error, deg);
130 RTABMAP_STATS(Loop, Optimization_max_ang_error_ratio, );
131 RTABMAP_STATS(Loop, Optimization_error, );
132 RTABMAP_STATS(Loop, Optimization_iterations, );
133 RTABMAP_STATS(Loop, Optimization_max_error_from_id, );
134 RTABMAP_STATS(Loop, Optimization_max_error_to_id, );
135 RTABMAP_STATS(Loop, Optimization_max_ang_error_from_id, );
136 RTABMAP_STATS(Loop, Optimization_max_ang_error_to_id, );
137 RTABMAP_STATS(Loop, Optimization_max_error_removed_from_id, );
138 RTABMAP_STATS(Loop, Optimization_max_error_removed_to_id, );
139 RTABMAP_STATS(Loop, Optimization_max_error_removed_count, );
140 RTABMAP_STATS(Loop, Linear_variance,);
141 RTABMAP_STATS(Loop, Angular_variance,);
142 RTABMAP_STATS(Loop, Landmark_detected,);
143 RTABMAP_STATS(Loop, Landmark_detected_node_ref,);
144 RTABMAP_STATS(Loop, Visual_inliers_mean_dist,m);
145 RTABMAP_STATS(Loop, Visual_inliers_distribution,);
146 RTABMAP_STATS(Loop, Proximity_links_cleared,);
148 RTABMAP_STATS(Loop, Odom_correction_norm, m);
149 RTABMAP_STATS(Loop, Odom_correction_angle, deg);
150 RTABMAP_STATS(Loop, Odom_correction_x, m);
151 RTABMAP_STATS(Loop, Odom_correction_y, m);
152 RTABMAP_STATS(Loop, Odom_correction_z, m);
153 RTABMAP_STATS(Loop, Odom_correction_roll, deg);
154 RTABMAP_STATS(Loop, Odom_correction_pitch, deg);
155 RTABMAP_STATS(Loop, Odom_correction_yaw, deg);
157 RTABMAP_STATS(Loop, MapToOdom_norm, m);
158 RTABMAP_STATS(Loop, MapToOdom_angle, deg);
159 RTABMAP_STATS(Loop, MapToOdom_x, m);
160 RTABMAP_STATS(Loop, MapToOdom_y, m);
161 RTABMAP_STATS(Loop, MapToOdom_z, m);
162 RTABMAP_STATS(Loop, MapToOdom_roll, deg);
163 RTABMAP_STATS(Loop, MapToOdom_pitch, deg);
164 RTABMAP_STATS(Loop, MapToOdom_yaw, deg);
166 RTABMAP_STATS(Loop, MapToBase_x, m);
167 RTABMAP_STATS(Loop, MapToBase_y, m);
168 RTABMAP_STATS(Loop, MapToBase_z, m);
169 RTABMAP_STATS(Loop, MapToBase_roll, deg);
170 RTABMAP_STATS(Loop, MapToBase_pitch, deg);
171 RTABMAP_STATS(Loop, MapToBase_yaw, deg);
172 RTABMAP_STATS(Loop, MapToBase_lin_std, m);
173 RTABMAP_STATS(Loop, MapToBase_lin_var, m2);
175 RTABMAP_STATS(Proximity, Time_detections,);
176 RTABMAP_STATS(Proximity, Space_last_detection_id,);
177 RTABMAP_STATS(Proximity, Space_paths,);
178 RTABMAP_STATS(Proximity, Space_visual_paths_checked,);
179 RTABMAP_STATS(Proximity, Space_scan_paths_checked,);
180 RTABMAP_STATS(Proximity, Space_detections_added_visually,);
181 RTABMAP_STATS(Proximity, Space_detections_added_icp_multi,);
182 RTABMAP_STATS(Proximity, Space_detections_added_icp_global,);
184 RTABMAP_STATS(NeighborLinkRefining, Accepted,);
185 RTABMAP_STATS(NeighborLinkRefining, Inliers,);
186 RTABMAP_STATS(NeighborLinkRefining, ICP_inliers_ratio,);
187 RTABMAP_STATS(NeighborLinkRefining, ICP_rotation, rad);
188 RTABMAP_STATS(NeighborLinkRefining, ICP_translation, m);
189 RTABMAP_STATS(NeighborLinkRefining, ICP_complexity,);
190 RTABMAP_STATS(NeighborLinkRefining, Variance,);
191 RTABMAP_STATS(NeighborLinkRefining, Pts,);
193 RTABMAP_STATS(
Memory, Working_memory_size,);
194 RTABMAP_STATS(
Memory, Working_memory_inter_size,);
195 RTABMAP_STATS(
Memory, Short_time_memory_size,);
196 RTABMAP_STATS(
Memory, Short_time_memory_inter_size,);
197 RTABMAP_STATS(
Memory, Database_memory_used, MB);
198 RTABMAP_STATS(
Memory, Signatures_removed,);
199 RTABMAP_STATS(
Memory, Immunized_globally,);
200 RTABMAP_STATS(
Memory, Immunized_locally,);
201 RTABMAP_STATS(
Memory, Immunized_locally_max,);
202 RTABMAP_STATS(
Memory, Signatures_retrieved,);
203 RTABMAP_STATS(
Memory, Images_buffered,);
204 RTABMAP_STATS(
Memory, Rehearsal_sim,);
205 RTABMAP_STATS(
Memory, Rehearsal_id,);
206 RTABMAP_STATS(
Memory, Rehearsal_merged,);
207 RTABMAP_STATS(
Memory, Local_graph_size,);
208 RTABMAP_STATS(
Memory, Odom_cache_poses,);
209 RTABMAP_STATS(
Memory, Odom_cache_links,);
210 RTABMAP_STATS(
Memory, Small_movement,);
211 RTABMAP_STATS(
Memory, Fast_movement,);
212 RTABMAP_STATS(
Memory, New_landmark,);
213 RTABMAP_STATS(
Memory, Odometry_variance_ang,);
214 RTABMAP_STATS(
Memory, Odometry_variance_lin,);
215 RTABMAP_STATS(
Memory, Distance_travelled, m);
216 RTABMAP_STATS(
Memory, RAM_usage, MB);
217 RTABMAP_STATS(
Memory, RAM_estimated, MB);
218 RTABMAP_STATS(
Memory, Triangulated_points, );
219 RTABMAP_STATS(
Memory, Closest_node_distance, m);
220 RTABMAP_STATS(
Memory, Closest_node_angle, rad);
222 RTABMAP_STATS(Timing, Memory_update, ms);
223 RTABMAP_STATS(Timing, Neighbor_link_refining, ms);
224 RTABMAP_STATS(Timing, Proximity_by_time, ms);
225 RTABMAP_STATS(Timing, Proximity_by_space_search, ms);
226 RTABMAP_STATS(Timing, Proximity_by_space_visual, ms);
227 RTABMAP_STATS(Timing, Proximity_by_space, ms);
228 RTABMAP_STATS(Timing, Cleaning_neighbors, ms);
229 RTABMAP_STATS(Timing, Reactivation, ms);
230 RTABMAP_STATS(Timing, Add_loop_closure_link, ms);
231 RTABMAP_STATS(Timing, Map_optimization, ms);
232 RTABMAP_STATS(Timing, Likelihood_computation, ms);
233 RTABMAP_STATS(Timing, Posterior_computation, ms);
234 RTABMAP_STATS(Timing, Hypotheses_creation, ms);
235 RTABMAP_STATS(Timing, Hypotheses_validation, ms);
236 RTABMAP_STATS(Timing, Statistics_creation, ms);
237 RTABMAP_STATS(Timing, Memory_cleanup, ms);
238 RTABMAP_STATS(Timing, Total, ms);
239 RTABMAP_STATS(Timing, Forgetting, ms);
240 RTABMAP_STATS(Timing, Joining_trash, ms);
241 RTABMAP_STATS(Timing, Emptying_trash, ms);
242 RTABMAP_STATS(Timing, Finalizing_statistics, ms);
243 RTABMAP_STATS(Timing, RAM_estimation, ms);
245 RTABMAP_STATS(TimingMem, Pre_update, ms);
246 RTABMAP_STATS(TimingMem, Signature_creation, ms);
247 RTABMAP_STATS(TimingMem, Rehearsal, ms);
248 RTABMAP_STATS(TimingMem, Keypoints_detection, ms);
249 RTABMAP_STATS(TimingMem, Subpixel, ms);
250 RTABMAP_STATS(TimingMem, Stereo_correspondences, ms);
251 RTABMAP_STATS(TimingMem, Descriptors_extraction, ms);
252 RTABMAP_STATS(TimingMem, Rectification, ms);
253 RTABMAP_STATS(TimingMem, Keypoints_3D, ms);
254 RTABMAP_STATS(TimingMem, Keypoints_3D_motion, ms);
255 RTABMAP_STATS(TimingMem, Joining_dictionary_update, ms);
256 RTABMAP_STATS(TimingMem, Add_new_words, ms);
257 RTABMAP_STATS(TimingMem, Compressing_data, ms);
258 RTABMAP_STATS(TimingMem, Post_decimation, ms);
259 RTABMAP_STATS(TimingMem, Scan_filtering, ms);
260 RTABMAP_STATS(TimingMem, Occupancy_grid, ms);
261 RTABMAP_STATS(TimingMem, Markers_detection, ms);
263 RTABMAP_STATS(Keypoint, Dictionary_size, words);
264 RTABMAP_STATS(Keypoint, Current_frame, words);
265 RTABMAP_STATS(Keypoint, Indexed_words, words);
266 RTABMAP_STATS(Keypoint, Index_memory_usage, KB);
268 RTABMAP_STATS(Gt, Translational_rmse, m);
269 RTABMAP_STATS(Gt, Translational_mean, m);
270 RTABMAP_STATS(Gt, Translational_median, m);
271 RTABMAP_STATS(Gt, Translational_std, m);
272 RTABMAP_STATS(Gt, Translational_min, m);
273 RTABMAP_STATS(Gt, Translational_max, m);
274 RTABMAP_STATS(Gt, Rotational_rmse, deg);
275 RTABMAP_STATS(Gt, Rotational_mean, deg);
276 RTABMAP_STATS(Gt, Rotational_median, deg);
277 RTABMAP_STATS(Gt, Rotational_std, deg);
278 RTABMAP_STATS(Gt, Rotational_min, deg);
279 RTABMAP_STATS(Gt, Rotational_max, deg);
280 RTABMAP_STATS(Gt, Localization_linear_error, m);
281 RTABMAP_STATS(Gt, Localization_angular_error, deg);
307 static std::string
serializeData(
const std::map<std::string, float> & data);
446 void setPoses(
const std::map<int, Transform> & poses) {_poses = poses;}
456 void setConstraints(
const std::multimap<int, Link> & constraints) {_constraints = constraints;}
491 void setLabels(
const std::map<int, std::string> & labels) {_labels = labels;}
497 void setWeights(
const std::map<int, int> & weights) {_weights = weights;}
504 void setPosterior(
const std::map<int, float> & posterior) {_posterior = posterior;}
513 void setLikelihood(
const std::map<int, float> & likelihood) {_likelihood = likelihood;}
519 void setRawLikelihood(
const std::map<int, float> & rawLikelihood) {_rawLikelihood = rawLikelihood;}
528 void setLocalPath(
const std::vector<int> & localPath) {_localPath=localPath;}
543 void setReducedIds(
const std::map<int, int> & reducedIds) {_reducedIds = reducedIds;}
552 void setWmState(
const std::vector<int> & state) {_wmState = state;}
620 double stamp()
const {
return _stamp;}
642 const std::map<int, Transform> &
poses()
const {
return _poses;}
648 const std::multimap<int, Link> &
constraints()
const {
return _constraints;}
675 const std::map<int, std::string> &
labels()
const {
return _labels;}
681 const std::map<int, int> &
weights()
const {
return _weights;}
687 const std::map<int, float> &
posterior()
const {
return _posterior;}
693 const std::map<int, float> &
likelihood()
const {
return _likelihood;}
705 const std::vector<int> &
localPath()
const {
return _localPath;}
717 const std::map<int, int> &
reducedIds()
const {
return _reducedIds;}
723 const std::vector<int> &
wmState()
const {
return _wmState;}
729 const std::map<int, Transform> &
odomCachePoses()
const {
return _odomCachePoses;}
748 const std::map<std::string, float> &
data()
const {
return _data;}
756 int _loopClosureMapId;
757 int _proximiyDetectionId;
758 int _proximiyDetectionMapId;
761 std::map<int, Signature> _signaturesData;
764 std::map<int, Transform> _poses;
765 std::multimap<int, Link> _constraints;
768 cv::Mat _localizationCovariance;
770 std::map<int, std::string> _labels;
771 std::map<int, int> _weights;
772 std::map<int, float> _posterior;
773 std::map<int, float> _likelihood;
774 std::map<int, float> _rawLikelihood;
776 std::vector<int> _localPath;
779 std::map<int, int> _reducedIds;
781 std::vector<int> _wmState;
783 std::map<int, Transform> _odomCachePoses;
784 std::multimap<int, Link> _odomCacheConstraints;
795 std::map<std::string, float> _data;
797 static std::map<std::string, float> _defaultData;
798 static bool _defaultDataInitialized;