Skip to content

Commit f1b1588

Browse files
author
Stefan Cyliax
authored
Merge pull request #472 from OpenSimulationInterface/455-introducing-emitting-objects
Introducing emitting objects
2 parents 3ad5c67 + 75e73ea commit f1b1588

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed

osi_common.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,3 +579,37 @@ message WavelengthData
579579
//
580580
optional double samples_number = 3;
581581
}
582+
583+
//
584+
// \brief Definition of a spatial signal strength distribution
585+
// for an emitting / transmitting / receiving entity
586+
// with a horizontal and a vertical angle
587+
// and the corresponding signal strength in dBm (decibels per milliwatt).
588+
//
589+
message SpatialSignalStrength
590+
{
591+
// Horizontal angle (azimuth) of emission / transmission / reception
592+
// in the entity's coordinate system.
593+
//
594+
// Unit: rad
595+
//
596+
optional double horizontal_angle = 1;
597+
598+
// Vertical angle (elevation) of emission / transmission / reception
599+
// in the entity's coordinate system.
600+
//
601+
// Unit: rad
602+
//
603+
optional double vertical_angle = 2;
604+
605+
// Emitted / transmitted /received signal strength
606+
// of the emitting / transmitting / receiving entity
607+
// at the previously defined horizontal and
608+
// vertical angle for one specific wavelength.
609+
// The value for the signal strength
610+
// is given in dBm (decibels per milliwatt).
611+
//
612+
// Unit: dBm
613+
//
614+
optional double signal_strength = 3;
615+
}

osi_object.proto

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ message StationaryObject
9696
//
9797
optional Color color = 4;
9898

99+
// The attributes of the emitting structure if stationary object is classified as such.
100+
//
101+
optional EmittingStructureAttribute emitting_structure_attribute = 5;
102+
99103
// Definition of object types.
100104
//
101105
enum Type
@@ -163,8 +167,8 @@ message StationaryObject
163167
//
164168
TYPE_OVERHEAD_STRUCTURE = 14;
165169

166-
// Landmarks corresponding to light sources or reflective structures
167-
// in the environment, like street lights or reflective poles on the
170+
// Landmarks corresponding to reflective structures
171+
// in the environment, like reflective poles on the
168172
// road boarder.
169173
//
170174
TYPE_REFLECTIVE_STRUCTURE = 15;
@@ -177,6 +181,11 @@ message StationaryObject
177181
// Object is a speed bump.
178182
//
179183
TYPE_SPEED_BUMP = 17;
184+
185+
// Landmarks corresponding to sources of electromagnetic waves
186+
// in the environment, like street lights.
187+
//
188+
TYPE_EMITTING_STRUCTURE = 18;
180189
}
181190

182191
// Definition of material types.
@@ -303,6 +312,26 @@ message StationaryObject
303312
//
304313
COLOR_WHITE = 10;
305314
}
315+
316+
//
317+
// \brief Attributes of type emitting structure. The horizontal_angle and the vertical_angle in
318+
// emitted_spatial_intensity are symmetrical across the normal, which is defined by the mounting position
319+
// of the emitting structure.
320+
//
321+
message EmittingStructureAttribute
322+
{
323+
// This message determines the range of the emitted wavelength and its
324+
// desired number of samples.
325+
//
326+
repeated WavelengthData wavelength_data = 1;
327+
328+
// Spatial signal strength distribution of the emitted electromagnetic wave.
329+
// For every sample in wavelength_data an emitted_spatial_signal_strength has to be defined.
330+
//
331+
// \note emitted_spatial_signal_strength.size() = WavelengthData.samples_number.size()
332+
//
333+
repeated SpatialSignalStrength emitted_spatial_signal_strength = 3;
334+
}
306335
}
307336
}
308337

0 commit comments

Comments
 (0)