Skip to content

Commit 435b535

Browse files
authored
Merge pull request #159 from OpenSimulationInterface/documentation/review_1
Reformatting and review
2 parents b0ea94f + 47234fc commit 435b535

File tree

6 files changed

+366
-262
lines changed

6 files changed

+366
-262
lines changed

osi_environment.proto

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ message EnvironmentalConditions
1818
//
1919
optional TimeOfDay time_of_day = 2;
2020

21-
// Atmospheric pressure in Pascal [Pa] at z=0.0 in world frame (about 101325 [Pa]).
21+
// Atmospheric pressure in Pascal at z=0.0 in world frame (about 101325
22+
// [Pa]).
2223
//
24+
// Unit: [Pa]
2325
optional double atmospheric_pressure = 3;
2426

25-
// Temperature in Kelvin [K] at z=0.0 in world frame.
27+
// Temperature in Kelvin at z=0.0 in world frame.
2628
//
29+
// Unit: [K]
2730
optional double temperature = 4;
2831

2932
// Description of the precipitation.
@@ -38,8 +41,7 @@ message EnvironmentalConditions
3841
// (I = Intensity of precipitation in mm per hour [mm/h])
3942
//
4043
// \par References:
41-
// [1] PAULAT, Marcus, et al. A gridded dataset of hourly precipitation in Germany: Its construction, climatology and application.
42-
// Meteorologische Zeitschrift, 2008, 17. Jg. Nr. 6, S. 719-732.
44+
// [1] PAULAT, Marcus, et al. A gridded dataset of hourly precipitation in Germany: Its construction, climatology and application. Meteorologische Zeitschrift, 2008, 17. Jg. Nr. 6, S. 719-732.
4345
enum Precipitation
4446
{
4547
// Intensity of precipitation is unknown (must not be used in ground truth).
@@ -80,11 +82,15 @@ message EnvironmentalConditions
8082
}
8183

8284
// Definition of discretized fog states according to [2].
83-
// The bandwidth of thick and dense fog was adjusted to fit the German StVO regarding rear fog lights [3].
85+
// The bandwidth of thick and dense fog was adjusted to fit the German StVO
86+
// regarding rear fog lights [3].
8487
// (V = Visibility in meters [m])
8588
//
86-
// Visibility is defined as the length of the atmosphere over which a beam of light travels before its luminous flux is reduced to 5% of its original value (definition used by the Meteorological Office [4]).
87-
// This is approximately equivalent to visibility measured in terms of the contrast of a distant object against its background.
89+
// Visibility is defined as the length of the atmosphere over which a beam
90+
// of light travels before its luminous flux is reduced to 5% of its
91+
// original value (definition used by the Meteorological Office [4]).
92+
// This is approximately equivalent to visibility measured in terms of the
93+
// contrast of a distant object against its background.
8894
//
8995
// \par References:
9096
// [2] SHEPARD, Frank D. Reduced visibility due to fog on the highway. Transportation Research Board, 1996.
@@ -134,15 +140,21 @@ message EnvironmentalConditions
134140
}
135141

136142
// Definition of discretized ambient illumination states:
137-
// Ambient light is any light in the vehicle's environment that is not emitted by the vehicle
138-
// itself. It can include sun/moon light, light from other cars, street lights, etc.
143+
// Ambient light is any light in the vehicle's environment that is not
144+
// emitted by the vehicle itself. It can include sun/moon light, light from
145+
// other cars, street lights, etc.
139146
//
140-
// Lux [lx] is the SI unit of luminance or illumination of an area of exact one square metre, which is
141-
// equal to one lumen per square meter 1 [lx] = 1 [lm/m^2] [5].
142-
// The lumen [lm] is the SI derived unit of luminous flux and a measure of the total
143-
// quantity of visible light emitted by a source. The lumen is defined in relation to the candela [cd] as 1 [lm] =1 [cd sr] where [sr] denotes steradian, the unit of solid angle used in 3D geometry analogous to the radian.
147+
// Lux [lx] is the SI unit of luminance or illumination of an area of exact
148+
// one square metre, which is equal to one lumen per square meter 1 [lx] =
149+
// 1 [lm/m^2] [5].
150+
// The lumen [lm] is the SI derived unit of luminous flux and a measure of
151+
// the total quantity of visible light emitted by a source. The lumen is
152+
// defined in relation to the candela [cd] as 1 [lm] =1 [cd sr] where [sr]
153+
// denotes steradian, the unit of solid angle used in 3D geometry analogous
154+
// to the radian.
144155
//
145-
//Categorization is done based on natural day/night time illuminance levels [6] and standards for required lighting levels on roads [6, 7, 8, 9].
156+
// Categorization is done based on natural day/night time illuminance levels
157+
// [6] and standards for required lighting levels on roads [6, 7, 8, 9].
146158
//
147159
// \par References:
148160
// [5] [The NIST Reference on Constants, Units, and Uncertainty](https://physics.nist.gov/cuu/Units/units.html)
@@ -162,27 +174,33 @@ message EnvironmentalConditions
162174

163175
// Level 1 illumination in ]0.001, 0.01[ [lx]
164176
// E.g. Night with no artificial light.
177+
//
178+
// \note Use \c AMBIENT_ILLUMINATION_LEVEL1 if illumination is less than 0.001 [lx]
165179
AMBIENT_ILLUMINATION_LEVEL1 = 2;
166180

167181
// Level 2 illumination in [0.01, 1[ [lx]
168182
// E.g. Night full moon / Deep twilight.
169183
AMBIENT_ILLUMINATION_LEVEL2 = 3;
170184

171185
// Level 3 illumination in [1, 3[ [lx]
172-
// E.g. Deep to average twilight / Minimum lighting on local low pedestrian conflict roads.
186+
// E.g. Deep to average twilight / Minimum lighting on local low
187+
// pedestrian conflict roads.
173188
AMBIENT_ILLUMINATION_LEVEL3 = 4;
174189

175190
// Level 4 illumination in [3, 10[ [lx]
176191
// E.g. Average to full twilight / Minimum lighting on collector roads /
177-
// Minimum lighting on major and expressway roads with low to average pedestrian conflict.
192+
// Minimum lighting on major and expressway roads with low to average
193+
// pedestrian conflict.
178194
AMBIENT_ILLUMINATION_LEVEL4 = 5;
179195

180196
// Level 5 illumination in [10, 20[ [lx]
181-
// E.g. Minimum lighting on major and expressway roads with high pedestrian conflict.
197+
// E.g. Minimum lighting on major and expressway roads with high
198+
// pedestrian conflict.
182199
AMBIENT_ILLUMINATION_LEVEL5 = 6;
183200

184201
// Level 6 illumination in [20, 400[ [lx]
185-
// E.g. Roads with more lighting / Very dark overcast day to sunrise or sunset on a clear day.
202+
// E.g. Roads with more lighting / Very dark overcast day to sunrise or
203+
// sunset on a clear day.
186204
AMBIENT_ILLUMINATION_LEVEL6 = 7;
187205

188206
// Level 7 illumination in [400, 1000[ [lx]
@@ -195,6 +213,9 @@ message EnvironmentalConditions
195213

196214
// Level 9 illumination in [10000, 120000[ [lx]
197215
// E.g. Full daylight to intense sunlight.
216+
//
217+
// \note Use \c AMBIENT_ILLUMINATION_LEVEL9 if illumination is more than
218+
// 120000 [lx]
198219
AMBIENT_ILLUMINATION_LEVEL9 = 10;
199220
}
200221

@@ -204,9 +225,11 @@ message EnvironmentalConditions
204225
message TimeOfDay
205226
{
206227
// The number of seconds [s] that have passed since midnight local time.
207-
// Used for determining the current state of the circadian rhythm of a driver.
228+
// Used for determining the current state of the circadian rhythm of a
229+
// driver.
208230
//
209-
// \note No changes of daylight saving time or time zones are considered.
210-
optional uint32 seconds_from_midnight = 1;
231+
// \note No changes of daylight saving time or time zones are
232+
// considered.
233+
optional uint32 seconds_since_midnight = 1;
211234
}
212235
}

osi_groundtruth.proto

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,89 +16,93 @@ package osi;
1616
// \brief The ground truth information from the simulation environment.
1717
//
1818
// This ground truth information is supposed to describe the whole simulated
19-
// environment around any simulated vehicle. For each simulated host vehicle
20-
// (might only be one, but could also be multiple) define an area around the
21-
// vehicle which is greater than the combined field of views (FOV) of all
22-
// sensors obstructed in the vehicle. The ground truth data is supposed to
23-
// describe the convex hull of all such areas w.r.t. a global simulation
24-
// coordinate system.
19+
// environment around any simulated vehicle. For each simulated host vehicle
20+
// (there may be one or multiple), define an area around the vehicle which
21+
// is greater than the combined field of views (FOV) of all obstructed sensors
22+
// in the vehicle. The ground truth data is supposed to describe the convex
23+
// hull of all such areas w.r.t. a global simulation coordinate system.
2524
//
26-
// The simulation coordinate system might change during the simulation if and
27-
// only if, all coordinates w.r.t. this coordinate system are also changed.
25+
// The simulation coordinate system may change during the simulation if and
26+
// only if all coordinates w.r.t. this coordinate system are also changed.
2827
//
2928
// The data has to be sent at a rate defined by the receiving partner. When
3029
// sending, values with default values might be left default in order to improve
3130
// performance.
3231
//
33-
// To provide a complete interface, all fields of all messages have to be set,
34-
// unless specifically stated in the field's definition that the field may
35-
// remain unset.
32+
// To provide a complete interface, all fields of all contained messages must be
33+
// properly set unless specifically stated in the field's definition that the
34+
// field may remain unset.
3635
//
3736
// In enums (e.g. types) the unknown (first / default) value is not allowed to
3837
// be used in the ground truth interface.
3938
//
4039
message GroundTruth
4140
{
42-
// The interface version used by the sender (simulation environment).
43-
//
41+
// The interface version used by the sender (i.e. the simulation
42+
// environment).
4443
optional InterfaceVersion version = 1;
4544

46-
// The data timestamp of the simulation environment. Zero time is arbitrary
47-
// but must be identical for all messages. Zero time does not need to
48-
// coincide with the unix epoch. Recommended is the starting time point of
49-
// the simulation.
45+
// The data timestamp of the simulation environment. The zero time point is
46+
// arbitrary but must be identical for all messages.
47+
// Recommendation: Zero time point for start point of the simulation.
48+
//
49+
// \note Zero time point does not need to coincide with the unix epoch.
5050
//
5151
// \note For ground truth data this timestamp coincides both with the
5252
// notional simulation time the data applies to and the time it was sent
5353
// (there is no inherent latency for ground truth data, as opposed to
5454
// sensor data).
5555
optional Timestamp timestamp = 2;
5656

57-
// A list of vehicles.
57+
// The list of (host) vehicles.
5858
//
5959
repeated Vehicle vehicle = 3;
6060

61-
// A list of moving objects (excluding vehicles).
61+
// The list of all other moving objects (i.e. excluding vehicles).
6262
//
6363
repeated MovingObject moving_object = 4;
6464

65-
// A list of stationary objects (excluding traffic signs and traffic lights).
66-
//
65+
// The list of stationary objects (excluding traffic signs and traffic
66+
// lights).
6767
repeated StationaryObject stationary_object = 5;
6868

69-
// A list of traffic signs.
69+
// The list of traffic signs.
7070
//
7171
repeated TrafficSign traffic_sign = 6;
7272

73-
// A list of traffic lights.
73+
// The list of traffic lights.
7474
//
7575
repeated TrafficLight traffic_light = 7;
7676

77-
// A list of road surface markings (LaneMarkings are excluded and defined as LaneBoundaries as part of the Lanes).
77+
// The list of road surface markings (lane markings are excluded and
78+
// defined as \c LaneBoundary).
7879
//
7980
repeated RoadMarking road_marking = 8;
8081

81-
// A list of lanes forming a road network.
82+
// The list of lanes forming a road network.
8283
//
8384
repeated Lane lane = 9;
8485

85-
// A list of lane boundaries from lanes.
86+
// The list of lane boundaries from lanes.
8687
//
8788
repeated LaneBoundary lane_boundary = 10;
8889

89-
// A list of passengers in the (host) vehicle(s).
90+
// The list of passengers in the (host) vehicle(s).
9091
//
9192
repeated Occupant occupant = 11;
9293

9394
// Conditions of the environment.
9495
//
9596
optional EnvironmentalConditions environmental_conditions = 12;
9697

97-
// The country code in 3 digit numeric format: ISO Code 3166/1 [1,2].
98-
// e.g. Germany = 276, USA = 840
98+
// The ISO country code in 3 digit numeric format according to:
99+
// ISO Code 3166/1 [1,2].
100+
// E.g. Germany = 276, USA = 840.
101+
//
102+
// Unit: []
99103
//
100104
// \par References:
101-
// [1] [ISO 3166/1 Country codes] (https://www.iso.org/obp/ui/)
102-
// [2] [ISO 3166/1 Wikipedia] (https://en.wikipedia.org/wiki/ISO_3166-1)
105+
// [1] [International Standard ISO 3166-1: Codes for the representation of names of countries and their subdivisions – Part 1: Country codes, third ed., 2013] (https://www.iso.org/obp/ui/)
106+
// [2] [Wikipedia ISO 3166/1] (https://en.wikipedia.org/wiki/ISO_3166-1)
103107
optional uint32 country_code = 13;
104108
}

osi_hostvehicledata.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ package osi;
1515
//
1616
message HostVehicleData
1717
{
18-
// Current estimated location based on GPS- and related navigation sensors
18+
// Current estimated location based on GPS- and related navigation sensors.
1919
//
2020
// \note Note that dimension and base_polygon need not be set.
2121
//
2222
optional BaseMoving location = 1;
2323

24-
// Current estimated location error based on GPS- and related navigation sensors
24+
// Current estimated location error based on GPS- and related navigation
25+
// sensors.
2526
//
2627
// \note Note that dimension and base_polygon need not be set.
2728
//
2829
optional BaseMoving location_rmse = 2;
29-
3030
}

0 commit comments

Comments
 (0)