Skip to content

Commit b833f5d

Browse files
LukasElsterStefan Cyliax
authored andcommitted
Changes in osi_common reversed and new structure in osi_object to specify emitting objects.
Signed-off-by: @lukas.elster <lukas.elster@tu-darmstadt.de>
1 parent db3c35f commit b833f5d

File tree

2 files changed

+34
-83
lines changed

2 files changed

+34
-83
lines changed

osi_common.proto

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -579,76 +579,3 @@ message WavelengthData
579579
//
580580
optional double samples_number = 3;
581581
}
582-
583-
//
584-
// \brief Distribution of data points and data values
585-
//
586-
// Defines the breakpoints of the corresponding distribution and the corresponding distribution values.
587-
//
588-
message DistributionData
589-
{
590-
// Defines the type of the breakpoints for the distribution function.
591-
//
592-
optional Breakpoints breakpoints = 1;
593-
594-
// Defines the value of breakpoints of the distribution function for continuous or not equally distributed cases.
595-
//
596-
repeated double points = 2;
597-
598-
// Defines the start value, end value and the sample number if distribution has equally discretized breakpoints.
599-
// In case of BREAKPOINTS_SPHERICAL the first one is azimuth and the second is elevation direction.
600-
// In case of BREAKPOINTS_RECTANGULAR the first one is x- and the second is y-direction.
601-
//
602-
repeated double WaveLengthData = 3;
603-
604-
// Defines the type of the data distribution.
605-
//
606-
optional Distribution distribution = 4;
607-
608-
// Defines the normalized value of the distribution.
609-
// In case of DISTRIBUTION_EQUAL the value of all points is equal to the double data.
610-
// In case of DISTRIBUTION_GAUSSIAN there has to be two values in the following order:
611-
// expected value, variance
612-
// If the type is DISTRIBUTION_CUSTOM data corresponds to a Lookup-Table with points
613-
// defined via the breakpoints.
614-
// The maximum value of the distribution is defined in the osi message, in which this
615-
// message is used.
616-
//
617-
// Unit: %
618-
//
619-
repeated double data = 5;
620-
621-
// Definition of distribution types. The values of the data distribution is defined in the field data.
622-
//
623-
enum Breakpoints
624-
{
625-
// The breakpoints of the distribution is user-defined (e.g. breakpoints Lookup-Table).
626-
//
627-
BREAKPOINTS_CUSTOM = 0;
628-
629-
// The breakpoints of the distribution are in azimuth and elevation (spherical shape).
630-
//
631-
BREAKPOINTS_SPHERICAL = 1;
632-
633-
// The breakpoints of the distribution are in x- and y-coordinates (rectangular shape).
634-
//
635-
BREAKPOINTS_RECTANGULAR = 2;
636-
}
637-
638-
// Definition of distribution types. The values of the data distribution is defined in the field data.
639-
//
640-
enum Distribution
641-
{
642-
// The distribution corresponds to a user-defined distribution (e.g. Lookup-Table).
643-
//
644-
DISTRIBUTION_CUSTOM = 0;
645-
646-
// The distribution corresponds to an equal distribution.
647-
//
648-
DISTRIBUTION_EQUAL = 1;
649-
650-
// The distribution corresponds to a Gaussian distribution.
651-
//
652-
DISTRIBUTION_GAUSSIAN = 2;
653-
}
654-
}

osi_object.proto

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -314,30 +314,54 @@ message StationaryObject
314314
}
315315

316316
//
317-
// Attributes of type emitting structure
317+
// \brief Attributes of type emitting structure
318318
//
319319
message EmittingStructureAttribute
320320
{
321-
// In use-cases where a spectral ray-tracer is used, this message
322-
// determines the range of the wavelength and its desired number
323-
// of samples.
321+
// This message determines the range of the wavelength and its
322+
// desired number of samples.
324323
//
325324
repeated WavelengthData wavelength_data = 1;
326325

327326
// Original intensities of emitted electromagnetic wave referred to a discrete
328-
// wavelength defined in WavelengthData. This maximum value is weighted based on the DistributionData.
327+
// wavelength defined in WavelengthData. This maximum value is weighted based on the IntensityDistribution.
329328
//
330329
// Unit: W/m^2
331330
//
332-
// \note The size of the message has to be equal to the the size of WavelengthData samples_number
331+
// \note max_intensity_per_wavelength.size() = WavelengthData.samples_number.size()
333332
//
334-
repeated double intensity_per_wavelength = 2;
333+
repeated double max_intensity_per_wavelength = 2;
335334

336-
// Intensities of emitted electromagnetic wave.
335+
// Distribution of the emitted electromagnetic wave's intensity based on the intensity_per_wavelength as
336+
// maximum value.
337337
//
338-
// Unit: %
338+
repeated IntensityDistribution emitted_intensity_distribution = 3;
339+
340+
//
341+
// \brief Definition of a intensity distribution with a horizontal and a vertical angle
342+
// and the corresponding intensity
339343
//
340-
repeated DistributionData EDF = 4;
344+
message IntensityDistribution
345+
{
346+
// Horizontal deflection (azimuth) of emission in emitting object
347+
// coordinates.
348+
//
349+
// Unit: rad
350+
optional double horizontal_angle = 1;
351+
352+
// Vertical deflection (elevation) of emission in emitting object
353+
// coordinates.
354+
//
355+
// Unit: rad
356+
optional double vertical_angle = 2;
357+
358+
// Emitted intensity of emitting object at this point for one specific wavelength.
359+
// The value corresponds to the intensity defined in max_intensity_per_wavelength.
360+
//
361+
// Unit: dB
362+
//
363+
optional double intensity = 3;
364+
}
341365
}
342366
}
343367
}

0 commit comments

Comments
 (0)