Skip to content

Commit 8950185

Browse files
authored
Merge pull request #59 from OpenSimulationInterface/feature/define-rain-and-fog
Resolve issue #54 (fog definition)
2 parents 6adfdeb + ccc92f4 commit 8950185

File tree

1 file changed

+80
-26
lines changed

1 file changed

+80
-26
lines changed

osi_environment.proto

+80-26
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,102 @@ message EnvironmentalConditions
1212
// The ambient illumination of the environment.
1313
//
1414
optional AmbientIllumination ambient_illumination = 1;
15-
1615
// The time of day.
1716
//
18-
optional TimeOfDay time_of_day = 2;
19-
20-
// Atmospheric pressure in Pascal at z=0.0 in world frame
17+
optional TimeOfDay time_of_day = 2;
18+
// Atmospheric pressure in Pascal at z=0.0 in world frame.
2119
//
2220
optional double atmospheric_pressure = 3;
23-
24-
// Temperature in Kelvin at z=0.0 in world frame
21+
// Temperature in Kelvin at z=0.0 in world frame.
2522
//
2623
optional double temperature = 4;
27-
28-
// Precipitation
24+
// Precipitation.
2925
//
3026
optional Precipitation precipitation = 5;
27+
// Fog.
28+
//
29+
optional Fog fog = 6;
3130

32-
// Definition of precipitation states. See https://en.wikipedia.org/wiki/Rain#Measurement
31+
// Definition of precipitation states according to [1].
32+
// (I = Intensity of precipitation in mm per hour)
3333
//
34+
// \par References:
35+
// [1] PAULAT, Marcus, et al. A gridded dataset of hourly precipitation in Germany: Its construction, climatology and application.
36+
// Meteorologische Zeitschrift, 2008, 17. Jg. Nr. 6, S. 719-732.
3437
enum Precipitation
3538
{
36-
// Light intensity rain, when the precipitation rate is < 2.5 mm per hour
39+
// Intensity of precipitation is unknown (must not be used in ground truth).
40+
//
41+
PRECIPITATION_UNKNOWN = 0;
42+
// Other (unspecified but known) intensity of precipitation.
43+
//
44+
PRECIPITATION_OTHER = 1;
45+
// No precipitation, when I = [0,0.1[
3746
//
38-
PRECIPITATION_RAIN_LIGHT = 0;
39-
40-
// Medium intensity rain, when the precipitation rate is between 2.5 mm and 10 mm per hour
47+
PRECIPITATION_NONE = 2;
48+
// Very light intensity of precipitation, when I = [0.1,0.5[
4149
//
42-
PRECIPITATION_RAIN_MEDIUM = 1;
43-
44-
// High intensity rain, when the precipitation rate is between 10 mm and 50 mm per hour
50+
PRECIPITATION_VERY_LIGHT = 3;
51+
// Light intensity of precipitation, when I = [0.5,1.9[
4552
//
46-
PRECIPITATION_RAIN_HIGH = 2;
47-
48-
// Violent intensity rain, when the precipitation rate is > 50 mm per hour
53+
PRECIPITATION_LIGHT = 4;
54+
// Moderate intensity of precipitation, when I = [1.9,8.1[
4955
//
50-
PRECIPITATION_RAIN_VIOLENT = 3;
51-
}
56+
PRECIPITATION_MODERATE = 5;
57+
// Heavy intensity of precipitation, when I = [8.1,34[
58+
//
59+
PRECIPITATION_HEAVY = 6;
60+
// Very heavy intensity of precipitation, when I = [34,149[
61+
//
62+
PRECIPITATION_VERY_HEAVY = 7;
63+
// Extreme intensity of precipitation, when I = [149,infinity[
64+
//
65+
PRECIPITATION_EXTREME = 8;
66+
}
67+
68+
// Definition of fog states according to [2] the bandwith of thick and dense fog was adjusted to fit the German StVo regarding rear fog lights [3].
69+
// (V = Visibility in meters)
70+
//
71+
// Visability is defined as the lenght 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]).
72+
// This is approximately equivalent to visibility measured by the contrast of a distant object against its background.
73+
//
74+
// \par References:
75+
// [2] SHEPARD, Frank D. Reduced visibility due to fog on the highway. Transportation Research Board, 1996.
76+
// [3] [StVO §17 chapter 3](https://www.stvo.de/strassenverkehrsordnung/101-17-beleuchtung)
77+
// [4] [Homepage of the Meteorological Office](http://www.metoffice.gov.uk/guide/weather/observations-guide/how-we-measure-visibility)
78+
enum Fog
79+
{
80+
// Visibility is unknown (must not be used in ground truth).
81+
//
82+
FOG_UNKOWN = 0;
83+
// Other (unspecified but known) fog intensity.
84+
//
85+
FOG_OTHER = 1;
86+
// Excellent visibility, when V = [40000,infinity[
87+
//
88+
FOG_EXCELLENT_VISIBILITY = 2;
89+
// Good visibility, when V = [10000,40000[
90+
//
91+
FOG_GOOD_VISIBILITY = 3;
92+
// Moderate visibility, when V = [4000,10000[
93+
//
94+
FOG_MODERATE_VISIBILITY = 4;
95+
// Poor visibility, when V = [2000,4000[
96+
//
97+
FOG_POOR_VISIBILITY = 5;
98+
// Mist, when V = [1000,2000[
99+
//
100+
FOG_MIST = 6;
101+
// Fog, when V = [200,1000[
102+
//
103+
FOG_LIGHT = 7;
104+
// Thick fog, when V = [50,200[
105+
//
106+
FOG_THICK = 8;
107+
// Dense fog, when V = [0,50[
108+
// (allowed to use rear fog light according to [3])
109+
FOG_DENSE = 9;
110+
}
52111

53112
// Definition of ambient illumination states.
54113
//
@@ -57,23 +116,18 @@ message EnvironmentalConditions
57116
// Ambient illumination is unknown (must not be used in ground truth).
58117
//
59118
AMBIENT_ILLUMINATION_UNKNOWN = 0;
60-
61119
// Other (unspecified but known) ambient illumination.
62120
//
63121
AMBIENT_ILLUMINATION_OTHER = 1;
64-
65122
// Ambient illumination index is "bright".
66123
// E.g. daytime with sunshine.
67124
AMBIENT_ILLUMINATION_BRIGHT = 2;
68-
69125
// Ambient illumination index is "medium".
70126
// E.g. daytime with overcast sky.
71127
AMBIENT_ILLUMINATION_MEDIUM = 3;
72-
73128
// Ambient illumination index is "low".
74129
// E.g. during twilight (dawn/dusk) or in a tunnel.
75130
AMBIENT_ILLUMINATION_LOW = 4;
76-
77131
// Ambient illumination index is "dark".
78132
// E.g. night time, no sunlight.
79133
AMBIENT_ILLUMINATION_DARK = 5;

0 commit comments

Comments
 (0)