MIRA
MappingParameter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) by
3  * MetraLabs GmbH (MLAB), GERMANY
4  * and
5  * Neuroinformatics and Cognitive Robotics Labs (NICR) at TU Ilmenau, GERMANY
6  * All rights reserved.
7  *
8  * Redistribution and modification of this code is strictly prohibited.
9  *
10  * IN NO EVENT SHALL "MLAB" OR "NICR" BE LIABLE TO ANY PARTY FOR DIRECT,
11  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
12  * THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF "MLAB" OR
13  * "NICR" HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14  *
15  * "MLAB" AND "NICR" SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
16  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18  * ON AN "AS IS" BASIS, AND "MLAB" AND "NICR" HAVE NO OBLIGATION TO
19  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR MODIFICATIONS.
20  */
21 
30 #ifndef _MIRA_MAPPINGPARAMETER_H_
31 #define _MIRA_MAPPINGPARAMETER_H_
32 
33 namespace mira
34 {
35 
37 
39 {
40 public:
41 
42  struct Thresholds
43  {
45  Thresholds(int obstacle, int freespace) :
46  obstacleThreshold(obstacle), freespaceThreshold(freespace) {}
47 
48  template <typename Reflector>
49  void reflect(Reflector& r)
50  {
51  r.property("FreespaceThreshold", freespaceThreshold, "Freespace threshold for maps", 100);
52  r.property("ObstacleThreshold", obstacleThreshold, "Obstacle threshold for maps", 100);
53  }
54 
57  };
58 
59 public:
60 
61  template <typename Reflector>
62  void reflect(Reflector& r)
63  {
64  r.property("GlobalThreshold", global, "Global thresholds for maps", Thresholds(100, 100));
65  r.property("LocalThreshold", local, "Local thresholds for maps", Thresholds(140, 100));
66 
67  r.property("MinObstacleDistance", minObstacleDistance, "Minimum obstacle distance", 0.35);
68  r.property("MaxObstacleDistance", maxObstacleDistance, "Maximum obstacle distance", 1.0);
69 
70  r.property("MinObstacleObservationTime", minObstacleObservationTime,
71  "Minimum time an obstacle must be observed, before it is included"
72  "as static obstacle into the global map in seconds", 3.0f);
73  }
74 
75 public:
76 
79 
82 
84 };
86 
87 }
88 
89 #endif
int freespaceThreshold
Definition: MappingParameter.h:56
Thresholds()
Definition: MappingParameter.h:44
Thresholds global
Definition: MappingParameter.h:78
void reflect(Reflector &r)
Definition: MappingParameter.h:49
float maxObstacleDistance
Definition: MappingParameter.h:81
float minObstacleObservationTime
Definition: MappingParameter.h:83
void reflect(Reflector &r)
Definition: MappingParameter.h:62
Thresholds local
Definition: MappingParameter.h:77
float minObstacleDistance
Definition: MappingParameter.h:80
Definition: MappingParameter.h:38
Thresholds(int obstacle, int freespace)
Definition: MappingParameter.h:45
Definition: MappingParameter.h:42
int obstacleThreshold
Definition: MappingParameter.h:55