-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLocalizationConfig.hpp
66 lines (50 loc) · 2.03 KB
/
LocalizationConfig.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef LOCALIZATION_TASK_CONFIG_HPP_
#define LOCALIZATION_TASK_CONFIG_HPP_
#include <string>
#include <base/Time.hpp>
#include <base/Pose.hpp>
namespace localization
{
enum SubSampling
{
None,
VoxelGrid
//TODO: add MultiLevelSurface based subsampling
};
struct ICPDebugInformation
{
base::Time time;
int successful_alignments;
int failed_alignments;
double last_fitness_score;
double icp_alignment_time;
ICPDebugInformation() : time(base::Time::now()), successful_alignments(0), failed_alignments(0), last_fitness_score(-1.0), icp_alignment_time(0.0) {}
};
struct GICPConfiguration
{
/** The maximum distance threshold between two correspondent points in source <-> target */
double max_correspondence_distance;
/** The maximum number of iterations the internal optimization should run for */
unsigned maximum_iterations;
/** The transformation epsilon (maximum allowable difference between two consecutive transformations) */
double transformation_epsilon;
/** The number of neighbors used when selecting a point neighbourhood */
unsigned correspondence_randomness;
/** Maximum number of iterations at the optimization step */
unsigned maximum_optimizer_iterations;
/** Set the rotation epsilon (maximum allowable difference between two consecutive rotations) */
double rotation_epsilon;
/** Maximum mean square error of the final transformation between input cloud and model */
double max_mean_square_error;
/** Odometry delta in meter, after which a new icp match is performed */
double icp_match_interval;
/** Time in seconds, after which a new icp match is performed */
double icp_match_interval_time;
GICPConfiguration() : max_correspondence_distance(2.5),
maximum_iterations(50), transformation_epsilon(1e-5),
correspondence_randomness(20), maximum_optimizer_iterations(20),
rotation_epsilon(2e-3), max_mean_square_error(1.0),
icp_match_interval(2.0), icp_match_interval_time(1.0) {}
};
}
#endif