Skip to content

Commit 4ccd758

Browse files
Markus WaldmannMarkus Waldmann
authored andcommitted
Added sun message
Signed-off-by: Markus Waldmann <Markus.Waldmann@stud.hs-kempten.de>
1 parent 841f509 commit 4ccd758

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

osi_environment.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ message EnvironmentalConditions
109109
//
110110
optional CloudState cloud_state = 10;
111111

112+
// Definition of the Sun.
113+
//
114+
optional Sun sun = 12;
115+
112116
// Definition of discretized precipitation states according to [1].
113117
// (I = Intensity of precipitation in mm per hour mm/h)
114118
//
@@ -424,4 +428,24 @@ message EnvironmentalConditions
424428
//
425429
CLOUD_STATE_NOSKY = 11;
426430
}
431+
432+
//
433+
// \brief Specification of sun properties.
434+
//
435+
// \note Defines the specification of sun properties according to ASAM OpenSCENARIO
436+
//
437+
message Sun
438+
{
439+
// Azimuth of the sun, counted counterclockwise, 0=north, PI/2 = east, PI=south, 3/2 PI=west. Unit: radian; Range: [0..2PI].
440+
//
441+
optional double azimuth = 1;
442+
443+
// Solar elevation angle, 0=x/y plane, PI/2=zenith. Unit: rad; Range: [-PI..PI].
444+
//
445+
optional double elevation = 2;
446+
447+
// Illuminance of the sun, direct sunlight is around 100,00 lx. Unit: lux; Range: [0..inf[.
448+
//
449+
optional double intensity = 3;
450+
}
427451
}

0 commit comments

Comments
 (0)