OpenKarto.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2011, SRI International (R)
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #include <OpenKarto/OpenKarto.h>
19 
20 namespace karto
21 {
22 
24  {
25  MetaClass::Register<AbstractParameter>("AbstractParameter");
26 
27  MetaClass::Register<Parameter<kt_bool> >("ParameterBool").Base<AbstractParameter>();
28  MetaClass::Register<Parameter<kt_char> >("ParameterChar").Base<AbstractParameter>();
29 
30  MetaClass::Register<Parameter<kt_int8s> >("ParameterInt8s").Base<AbstractParameter>();
31  MetaClass::Register<Parameter<kt_int8u> >("ParameterInt8u").Base<AbstractParameter>();
32  MetaClass::Register<Parameter<kt_int16s> >("ParameterInt16s").Base<AbstractParameter>();
33  MetaClass::Register<Parameter<kt_int16u> >("ParameterInt16u").Base<AbstractParameter>();
34  MetaClass::Register<Parameter<kt_int32s> >("ParameterInt32s").Base<AbstractParameter>();
35  MetaClass::Register<Parameter<kt_int32u> >("ParameterInt32u").Base<AbstractParameter>();
36  MetaClass::Register<Parameter<kt_int64s> >("ParameterInt64s").Base<AbstractParameter>();
37  MetaClass::Register<Parameter<kt_int64u> >("ParameterInt64u").Base<AbstractParameter>();
38 
39  MetaClass::Register<Parameter<kt_float> >("ParameterFloat").Base<AbstractParameter>();
40  MetaClass::Register<Parameter<kt_double> >("ParameterDouble").Base<AbstractParameter>();
41 
42  MetaClass::Register<Parameter<karto::String> >("ParameterString").Base<AbstractParameter>();
43 
44  MetaClass::Register<Parameter<karto::Size2<kt_int32s> > >("ParameterSize2Int32s").Base<AbstractParameter>();
45  MetaClass::Register<Parameter<karto::Size2<kt_int32u> > >("ParameterSize2Int32u").Base<AbstractParameter>();
46  MetaClass::Register<Parameter<karto::Size2<kt_double> > >("ParameterSize2Double").Base<AbstractParameter>();
47 
48  MetaClass::Register<Parameter<karto::Vector2i> >("ParameterVector2i").Base<AbstractParameter>();
49  MetaClass::Register<Parameter<karto::Vector3i> >("ParameterVector3i").Base<AbstractParameter>();
50  MetaClass::Register<Parameter<karto::Vector4i> >("ParameterVector4i").Base<AbstractParameter>();
51 
52  MetaClass::Register<Parameter<karto::Vector2iu> >("ParameterVector2iu").Base<AbstractParameter>();
53  MetaClass::Register<Parameter<karto::Vector3iu> >("ParameterVector3iu").Base<AbstractParameter>();
54  MetaClass::Register<Parameter<karto::Vector4iu> >("ParameterVector4iu").Base<AbstractParameter>();
55 
56  MetaClass::Register<Parameter<karto::Vector2d> >("ParameterVector2d").Base<AbstractParameter>();
57  MetaClass::Register<Parameter<karto::Vector3d> >("ParameterVector3d").Base<AbstractParameter>();
58  MetaClass::Register<Parameter<karto::Vector4d> >("ParameterVector4d").Base<AbstractParameter>();
59 
60  MetaClass::Register<Parameter<karto::Quaternion> >("ParameterQuaternion").Base<AbstractParameter>();
61 
62  MetaClass::Register<Parameter<karto::Color> >("ParameterColor").Base<AbstractParameter>();
63 
64  MetaClass::Register<Parameter<karto::Pose2> >("ParameterPose2").Base<AbstractParameter>();
65  MetaClass::Register<Parameter<karto::Pose3> >("ParameterPose3").Base<AbstractParameter>();
66 
67  MetaClass::Register<Parameter<karto::gps::PointGps> >("ParameterPointGps").Base<AbstractParameter>();
68 
69  MetaClass::Register<ParameterEnum>("ParameterEnum").Base<Parameter<kt_int64s> >();
70 
71 
72  MetaClass::Register<Object>("Object")
73  .Base<Parameter<kt_int32s> >();
74 
75  // Objects
76 
77  MetaClass::Register<ModuleParameters>("ModuleParameters")
78  .Base<Object>()
79  .Attribute("ObjectType", ObjectType_ModuleParameters);
80 
81  MetaClass::Register<CustomItem>("CustomItem")
82  .Base<Object>();
83 
84  MetaClass::Register<DatasetInfo>("DatasetInfo")
85  .Base<Object>()
86  .Attribute("ObjectType", ObjectType_DatasetInfo);
87 
88  // Sensors
89 
90  MetaClass::Register<Sensor>("Sensor")
91  .Base<Object>()
92  .Attribute("ObjectType", ObjectType_Sensor);
93 
94  MetaClass::Register<Drive>("Drive")
95  .Base<Sensor>()
96  .Attribute("ObjectType", ObjectType_Drive);
97 
98  MetaClass::Register<LaserRangeFinder>("LaserRangeFinder")
99  .Base<Sensor>()
100  .Attribute("ObjectType", ObjectType_LaserRangeFinder)
107 // .Parameter("Type", &LaserRangeFinder::GetType, &LaserRangeFinder::SetType);
108 
109  // SensorData
110  MetaClass::Register<SensorData>("SensorData")
111  .Base<Object>()
112  .Attribute("ObjectType", ObjectType_SensorData);
113 
114  MetaClass::Register<LaserRangeScan>("LaserRangeScan")
115  .Base<SensorData>()
116  .Attribute("ObjectType", ObjectType_LaserRangeScan);
117 
118  MetaClass::Register<DrivePose>("DrivePose")
119  .Base<SensorData>()
120  .Attribute("ObjectType", ObjectType_DrivePose);
121 
122  MetaClass::Register<LocalizedObject>("LocalizedObject")
123  .Base<SensorData>()
124  .Attribute("ObjectType", ObjectType_LocalizedObject);
125 
126  MetaClass::Register<LocalizedLaserScan>("LocalizedLaserScan")
127  .Base<LocalizedObject>()
128  .Attribute("ObjectType", ObjectType_LocalizedLaserScan);
129 
130  MetaClass::Register<LocalizedPointScan>("LocalizedPointScan")
131  .Base<LocalizedLaserScan>()
132  .Attribute("ObjectType", ObjectType_LocalizedPointScan);
133 
134  MetaClass::Register<LocalizedRangeScan>("LocalizedRangeScan")
135  .Base<LocalizedLaserScan>()
136  .Attribute("ObjectType", ObjectType_LocalizedRangeScan);
137 
138  // Grid
139  MetaClass::Register<Grid<kt_int8u> >("GridInt8u")
140  .Base<Object>();
141 
142  MetaClass::Register<Grid<kt_int32u> >("GridInt32u")
143  .Base<Object>();
144 
145  MetaClass::Register<Grid<kt_float> >("GridFloat")
146  .Base<Object>();
147 
148  MetaClass::Register<Grid<kt_double> >("GridDouble")
149  .Base<Object>();
150 
151  MetaClass::Register<OccupancyGrid>("OccupancyGrid")
152  .Base<Grid<kt_int8u> >()
153  .Attribute("ObjectType", ObjectType_OccupancyGrid);
154  }
155 
156 }
const kt_objecttype ObjectType_LocalizedPointScan
Definition: Object.h:266
const kt_objecttype ObjectType_LaserRangeFinder
Definition: Object.h:236
const kt_objecttype ObjectType_ModuleParameters
Definition: Object.h:311
void SetRangeThreshold(kt_double rangeThreshold)
Definition: Sensor.cpp:127
const kt_objecttype ObjectType_LocalizedLaserScan
Definition: Object.h:271
kt_double GetAngularResolution() const
Definition: Sensor.h:359
const kt_objecttype ObjectType_Sensor
Definition: Object.h:196
void SetMinimumAngle(kt_double minimumAngle)
Definition: Sensor.h:328
void SetMaximumRange(kt_double maximumRange)
Definition: Sensor.h:293
const kt_objecttype ObjectType_LocalizedObject
Definition: Object.h:256
void SetAngularResolution(kt_double angularResolution)
Definition: Sensor.cpp:138
const kt_objecttype ObjectType_DrivePose
Definition: Object.h:246
const kt_objecttype ObjectType_LocalizedRangeScan
Definition: Object.h:261
void SetMaximumAngle(kt_double maximumAngle)
Definition: Sensor.h:348
void InitializeOpenKartoMetaClasses()
Definition: OpenKarto.cpp:23
const kt_objecttype ObjectType_DatasetInfo
Definition: Object.h:316
kt_double GetMinimumAngle() const
Definition: Sensor.h:319
const kt_objecttype ObjectType_SensorData
Definition: Object.h:201
void SetMinimumRange(kt_double minimumRange)
Definition: Sensor.h:273
const kt_objecttype ObjectType_Drive
Definition: Object.h:231
kt_double GetMaximumAngle() const
Definition: Sensor.h:339
Definition: Any.cpp:20
kt_double GetMinimumRange() const
Definition: Sensor.h:264
kt_double GetRangeThreshold() const
Definition: Sensor.h:304
const kt_objecttype ObjectType_OccupancyGrid
Definition: Object.h:291
const kt_objecttype ObjectType_LaserRangeScan
Definition: Object.h:251
kt_double GetMaximumRange() const
Definition: Sensor.h:284


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:24