Skip to content

Commit 6097eac

Browse files
Add material properties to stationary objects
1 parent ecb9cfc commit 6097eac

File tree

1 file changed

+141
-9
lines changed

1 file changed

+141
-9
lines changed

osi_object.proto

Lines changed: 141 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ message StationaryObject
2727
//
2828
optional Type type = 3;
2929

30+
// The dominating material of the structure.
31+
//
32+
optional Material material = 4;
33+
34+
// The dominating density of the material of the structure.
35+
//
36+
optional Density density = 5;
37+
38+
// The dominating color of the material of the structure.
39+
//
40+
optional Color color = 6;
41+
3042
// Definition of object types.
3143
//
3244
enum Type
@@ -104,6 +116,126 @@ message StationaryObject
104116
//
105117
TYPE_CONSTRUCTION_SITE_ELEMENT = 16;
106118
}
119+
120+
// Definition of material types.
121+
//
122+
enum Material
123+
{
124+
// Type of the material is unknown (must not be used in ground truth).
125+
//
126+
MATERIAL_UNKNOWN = 0;
127+
128+
// Other (unspecified but known) type of material.
129+
//
130+
MATERIAL_OTHER = 1;
131+
132+
// Wooden structure.
133+
//
134+
MATERIAL_WOOD = 2;
135+
136+
// Plastic structure.
137+
//
138+
MATERIAL_PLASTIC = 3;
139+
140+
// Concrete structure.
141+
//
142+
MATERIAL_CONCRETE = 4;
143+
144+
// Metal structure.
145+
//
146+
MATERIAL_METAL = 5;
147+
148+
// Natural stone structure.
149+
//
150+
MATERIAL_STONE = 6;
151+
152+
// Glas structure.
153+
//
154+
MATERIAL_GLAS = 7;
155+
156+
// Mud structure.
157+
//
158+
MATERIAL_MUD = 8;
159+
}
160+
161+
162+
// Definition of material density types.
163+
//
164+
enum Density
165+
{
166+
// Type of the material density is unknown (must not be used in ground truth).
167+
//
168+
DENSITY_UNKNOWN = 0;
169+
170+
// Other (unspecified but known) type of material density.
171+
//
172+
DENSITY_OTHER = 1;
173+
174+
// No perforation - solid;
175+
//
176+
DENSITY_SOLID = 2;
177+
178+
// Perforation max. ]0; 100] [mm]
179+
DENSITY_SMALL_MESH = 3;
180+
181+
// Perforation max. ]100; 500] [mm]
182+
DENSITY_MEDIAN_MESH = 4;
183+
184+
// Perforation max. ]500; 5000] [mm]
185+
DENSITY_LARGE_MESH = 5;
186+
187+
// Perforation max. ]5000; infinity] [mm]
188+
DENSITY_OPEN = 6;
189+
}
190+
191+
// Definition of colors for structures.
192+
//
193+
enum Color
194+
{
195+
// Color is unknown (must not be used in ground truth).
196+
//
197+
COLOR_UNKNOWN = 0;
198+
199+
// Other (unspecified but known) color.
200+
//
201+
COLOR_OTHER = 1;
202+
203+
// Yellow.
204+
//
205+
COLOR_YELLOW = 2;
206+
207+
// Green.
208+
//
209+
COLOR_GREEN = 3;
210+
211+
// Blue.
212+
//
213+
COLOR_BLUE = 4;
214+
215+
// Violet.
216+
//
217+
COLOR_VIOLET = 5;
218+
219+
// Red.
220+
//
221+
COLOR_RED = 6;
222+
223+
// Orange.
224+
//
225+
COLOR_ORANGE = 7;
226+
227+
// Black.
228+
//
229+
COLOR_BLACK = 8;
230+
231+
// GREY.
232+
//
233+
COLOR_GREY = 9;
234+
235+
// White.
236+
//
237+
COLOR_WHITE = 10;
238+
}
107239
}
108240

109241
//
@@ -126,18 +258,18 @@ message MovingObject
126258
//
127259
optional BaseMoving base = 2;
128260

261+
// The type of the object.
262+
//
263+
optional Type type = 3;
264+
129265
// The IDs of the lanes that this object is assigned to.
130266
//
131267
// \note Might be multiple if the object is switching lanes or moving from
132268
// one lane into another following lane.
133269
//
134270
// \note OSI uses singular instead of plural for repeated field names.
135271
//
136-
repeated Identifier assigned_lane_id = 3;
137-
138-
// The type of the object.
139-
//
140-
optional Type type = 4;
272+
repeated Identifier assigned_lane_id = 4;
141273

142274
// Specific information about the vehicle.
143275
//
@@ -157,7 +289,7 @@ message MovingObject
157289
// Other (unspecified but known) type of moving object.
158290
//
159291
TYPE_OTHER = 1;
160-
292+
161293
// Object is a vehicle.
162294
//
163295
TYPE_VEHICLE = 2;
@@ -168,7 +300,7 @@ message MovingObject
168300

169301
// Object is an animal.
170302
//
171-
TYPE_ANIMAL = 4;
303+
TYPE_ANIMAL = 4;
172304
}
173305

174306
//
@@ -212,7 +344,7 @@ message MovingObject
212344
// including tire.
213345
//
214346
// Unit: [m]
215-
//
347+
//
216348
optional double radius_wheel = 4;
217349

218350
// Number of independent wheels.
@@ -273,7 +405,7 @@ message MovingObject
273405
// Definition: Hatchback car with maximum length 4 m.
274406
//
275407
TYPE_SMALL_CAR = 2;
276-
408+
277409
// Vehicle is a compact car.
278410
//
279411
// Definition: Hatchback car with length between 4 and 4.5 m.

0 commit comments

Comments
 (0)