Skip to content

Commit 9ebca79

Browse files
Resolve issue #54
1 parent 49f96a4 commit 9ebca79

File tree

3 files changed

+52
-19
lines changed

3 files changed

+52
-19
lines changed

osi_common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ message InterfaceVersion
1212
/// The field containing the version number. Should be left on default, not to be modified by sender. Increments will
1313
/// happen as part of changes to the whole interface.
1414
optional uint32 major = 1 [default = 2];
15-
optional uint32 minor = 2 [default = 1];
15+
optional uint32 minor = 2 [default = 2];
1616
optional uint32 patch = 3 [default = 0];
1717
}
1818

osi_environment.proto

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,59 @@ message EnvironmentalConditions
2323

2424
/// Precipitation
2525
optional Precipitation precipitation = 5;
26+
27+
/// Fog
28+
optional Fog fog = 6;
2629

27-
/// Definition of precipitation states.
28-
/// See GLICKMAN, Todd S.; ZENK, Walter. Glossary of meteorology. American Meteorological Society, 2000. and JEBSON, S. Fact sheet number 3: Water in the Atmosphere. 2007.
30+
/// Definition of precipitation states
31+
/// Quote: 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.
2932
enum Precipitation
3033
{
31-
/// Rain intensity is unknown (must not be used in ground truth).
32-
PRECIPITATION_RAIN_UNKNOWN = 0;
33-
/// Other (unspecified but known) rain intensity
34-
PRECIPITATION_RAIN_OTHER = 1;
35-
/// No rain, when the precipitation rate is < 0.25 mm per hour
36-
PRECIPITATION_RAIN_NONE = 2;
37-
/// Light intensity rain, when the precipitation rate is between 0.25 mm and 2.5 mm per hour
38-
PRECIPITATION_RAIN_LIGHT = 3;
39-
/// Medium intensity rain, when the precipitation rate is between 2.5 mm and 7.6 mm per hour
40-
PRECIPITATION_RAIN_MEDIUM = 4;
41-
/// High intensity rain, when the precipitation rate is between 7.6 mm and 50 mm per hour
42-
PRECIPITATION_RAIN_HIGH = 5;
43-
/// Violent intensity rain, when the precipitation rate is > 50 mm per hour
44-
PRECIPITATION_RAIN_VIOLENT = 6;
45-
}
34+
/// Intensity of precipitation is unknown (must not be used in ground truth).
35+
PRECIPITATION_UNKNOWN = 0;
36+
/// Other (unspecified but known) intensity of precipitation
37+
PRECIPITATION_OTHER = 1;
38+
/// No precipitation, when the precipitation rate is between 0 and 0.1 mm per hour
39+
PRECIPITATION_NONE = 2;
40+
/// Very light intensity of precipitation, when the precipitation rate is between 0.1 and 0.5 mm per hour
41+
PRECIPITATION_VERY_LIGHT = 3;
42+
/// Light intensity of precipitation, when the precipitation rate is between 0.5 and 1.9 mm per hour
43+
PRECIPITATION_LIGHT = 4;
44+
/// Moderate intensity of precipitation, when the precipitation rate is between 1.9 and 8.1 mm per hour
45+
PRECIPITATION_MODERATE = 5;
46+
/// Heavy intensity of precipitation, when the precipitation rate is between 8.1 and 34 mm per hour
47+
PRECIPITATION_HEAVY = 6;
48+
/// Very heavy intensity of precipitation, when the precipitation rate is between 34 and 149 mm per hour
49+
PRECIPITATION_VERY_HEAVY = 7;
50+
/// Extreme intensity of precipitation, when the precipitation rate is > 149 mm per hour
51+
PRECIPITATION_EXTREME = 8;
52+
}
53+
54+
/// Definition of fog states by visibility
55+
/// Quote: SHEPARD, Frank D. Reduced visibility due to fog on the highway. Transportation Research Board, 1996. (International classification of visibility)
56+
enum Fog
57+
{
58+
/// Visibility is unknown (must not be used in ground truth)
59+
FOG_UNKOWN = 0;
60+
/// Other (unspecified but known) fog intensity
61+
FOG_OTHER = 1;
62+
/// Excellent visibility, when visibility > 40,000 m
63+
FOG_EXCELLENT_VISIBILITY = 2;
64+
/// Good visibility, when visibility is between 10,000 and 40,000 m
65+
FOG_GOOD_VISIBILITY = 3;
66+
/// Moderate visibility, when visibility is between 4000 and 10,000 m
67+
FOG_MODERATE_VISIBILITY = 4;
68+
/// Poor visibility, when visibility is between 2000 and 4000 m
69+
FOG_POOR_VISIBILITY = 5;
70+
/// Mist, when visibility is between 1000 and 2000 m
71+
FOG_MIST = 6;
72+
/// Fog, when visibility is between 200 and 1000 m
73+
FOG_LIGHT = 7;
74+
/// Thick fog, when visibility is between 40 and 200 m
75+
FOG_THICK = 8;
76+
/// Dense fog, when visibility < 40 m
77+
FOG_DENSE = 9;
78+
}
4679

4780
/// Definition of ambient illumination states.
4881
enum AmbientIllumination

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def run(self):
7474

7575
setup(
7676
name='open-simulation-interface',
77-
version='2.0.0',
77+
version='2.2.0',
7878
description='A generic interface for the environmental perception of'
7979
'automated driving functions in virtual scenarios.',
8080
author='Carlo van Driesten, Timo Hanke, Nils Hirsenkorn,'

0 commit comments

Comments
 (0)