Skip to content

Commit 89f3a93

Browse files
authored
Merge pull request #184 from OpenSimulationInterface/feature/Vehicle-definition
Extend definition of vehicles
2 parents eb11168 + 54c3d91 commit 89f3a93

File tree

1 file changed

+93
-9
lines changed

1 file changed

+93
-9
lines changed

osi_object.proto

Lines changed: 93 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ message Vehicle
3434

3535
// The base parameters of the vehicle (as a characteristic moving object).
3636
//
37+
// \note The bounding box includes mirrors.
38+
//
3739
optional BaseMoving base = 2;
3840

3941
// The type of the vehicle.
@@ -91,6 +93,18 @@ message Vehicle
9193
// through.
9294
optional double ground_clearance = 12;
9395

96+
// Median radius of the wheels.
97+
//
98+
// Unit: [m]
99+
//
100+
optional double radius_wheel = 13;
101+
102+
// Number of independent wheels.
103+
//
104+
// Unit: []
105+
//
106+
optional uint32 number_wheels = 14;
107+
94108
// Definition of vehicle types.
95109
//
96110
enum Type
@@ -102,26 +116,72 @@ message Vehicle
102116
// Other (unspecified but known) type of vehicle.
103117
//
104118
TYPE_OTHER = 1;
119+
120+
// Vehicle is a small car.
121+
//
122+
// Definition:
123+
//
124+
TYPE_SMALL_CAR = 2;
125+
126+
// Vehicle is a medium car.
127+
//
128+
// Definition:
129+
//
130+
TYPE_MEDIUM_CAR = 3;
131+
132+
// Vehicle is a compact car.
133+
//
134+
// Definition:
135+
//
136+
TYPE_COMPACT_CAR = 4;
137+
138+
// Vehicle is a luxury car.
139+
//
140+
// Definition:
141+
//
142+
TYPE_LUXURY_CAR = 5;
143+
144+
// Vehicle is a delivery van.
145+
//
146+
// Definition:
147+
//
148+
TYPE_DELIVERY_VAN = 6;
105149

106-
// Vehicle is a normal car.
150+
// Vehicle is a heavy truck.
107151
//
108-
TYPE_CAR = 2;
152+
TYPE_HEAVY_TRUCK = 7;
109153

110-
// Vehicle is a truck, bus, or large van.
154+
// Vehicle is a truck with semitrailer.
111155
//
112-
TYPE_TRUCK = 3;
156+
TYPE_SEMITRAILER = 8;
157+
158+
// Vehicle is a trailer (possibly attached to another vehicle).
159+
//
160+
TYPE_TRAILER = 9;
113161

114162
// Vehicle is a motorbike or moped.
115163
//
116-
TYPE_MOTORBIKE = 4;
164+
TYPE_MOTORBIKE = 10;
117165

118166
// Vehicle is a bicycle (without motor and specific lights).
119167
//
120-
TYPE_BICYCLE = 5;
168+
TYPE_BICYCLE = 11;
121169

122-
// Vehicle is a trailer (possibly attached to another vehicle).
170+
// Vehicle is a bus.
171+
//
172+
TYPE_BUS = 12;
173+
174+
// Vehicle is a tram.
175+
//
176+
TYPE_TRAM = 13;
177+
178+
// Vehicle is a train.
179+
//
180+
TYPE_TRAIN = 14;
181+
182+
// Vehicle is a wheelchair.
123183
//
124-
TYPE_TRAILER = 6;
184+
TYPE_WHEELCHAIR = 15;
125185
}
126186

127187
//
@@ -204,7 +264,7 @@ message Vehicle
204264

205265
// Light is off.
206266
//
207-
GENERIC_LIGHT_STATE_OFF = 2;
267+
GENERIC_LIGHT_STATE_OFF = 2;
208268

209269
// Light is on.
210270
//
@@ -332,5 +392,29 @@ message StationaryObject
332392
// Object is a delineator (e.g. at a construction site).
333393
//
334394
TYPE_DELINEATOR = 6;
395+
396+
// Object is a pole.
397+
//
398+
TYPE_POLE = 2000;
399+
400+
// Object is a tree.
401+
//
402+
TYPE_TREE = 2001;
403+
404+
// Object is a barrier.
405+
//
406+
TYPE_BARRIER = 2002;
407+
408+
// Object is vegetation.
409+
//
410+
TYPE_VEGETATION = 2003;
411+
412+
// Object is a curbstone.
413+
//
414+
TYPE_CURBSTONE = 2004;
415+
416+
// Object is a wall.
417+
//
418+
TYPE_WALL = 2005;
335419
}
336420
}

0 commit comments

Comments
 (0)