Skip to content

Commit 49adb5f

Browse files
authored
Merge pull request #50 from OpenSimulationInterface/feature/environment_changes
Insert pressure, temperature and precipitation
2 parents e52ef07 + 6c0e6c0 commit 49adb5f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

osi_environment.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,31 @@ message EnvironmentalConditions
1414

1515
/// The time of day.
1616
optional TimeOfDay time_of_day = 2;
17+
18+
/// Atmospheric pressure in Pascal at z=0.0 in world frame
19+
optional double atmospheric_pressure = 3;
20+
21+
/// Temperature in Kelvin at z=0.0 in world frame
22+
optional double temperature = 4;
23+
24+
/// Precipitation
25+
optional Precipitation precipitation = 5;
26+
27+
/// Definition of precipitation states. See https://en.wikipedia.org/wiki/Rain#Measurement
28+
enum Precipitation
29+
{
30+
/// Light intensity rain, when the precipitation rate is < 2.5 mm per hour
31+
PRECIPITATION_RAIN_LIGHT = 0;
32+
33+
/// Medium intensity rain, when the precipitation rate is between 2.5 mm and 10 mm per hour
34+
PRECIPITATION_RAIN_MEDIUM = 1;
35+
36+
/// High intensity rain, when the precipitation rate is between 10 mm and 50 mm per hour
37+
PRECIPITATION_RAIN_HIGH = 2;
38+
39+
/// Violent intensity rain, when the precipitation rate is > 50 mm per hour
40+
PRECIPITATION_RAIN_VIOLENT = 3;
41+
}
1742

1843
/// Definition of ambient illumination states.
1944
enum AmbientIllumination

0 commit comments

Comments
 (0)