Skip to content

Commit 707942f

Browse files
author
Kmeid Saad
committed
Merge branch 'feature/sm/sensorviewconfig-extension' of https://github.com/OpenSimulationInterface/open-simulation-interface into feature/sm/sensorviewconfig-extension
Signed-off-by: Kmeid Saad <kmeid.saad@ansys.com>
2 parents c355624 + 2afcc25 commit 707942f

File tree

1 file changed

+105
-67
lines changed

1 file changed

+105
-67
lines changed

osi_sensorviewconfiguration.proto

Lines changed: 105 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -686,68 +686,7 @@ message CameraSensorViewConfiguration
686686
//
687687
optional uint32 number_of_pixels_vertical = 7;
688688

689-
// Number of rays to cast across horizontal field of view.
690-
//
691-
// \note This is a characteristic of the ray tracing engine of the
692-
// environment simulation, not a direct characteristic of the sensor.
693-
//
694-
// \rules
695-
// is_greater_than_or_equal_to: 1
696-
// \endrules
697-
//
698-
optional uint32 number_of_rays_horizontal = 8;
699-
700-
// Number of rays to cast across vertical field of view.
701-
//
702-
// \note This is a characteristic of the ray tracing engine of the
703-
// environment simulation, not a direct characteristic of the sensor.
704-
//
705-
// \rules
706-
// is_greater_than_or_equal_to: 1
707-
// \endrules
708-
//
709-
optional uint32 number_of_rays_vertical = 9;
710-
711-
// Maximum number of interactions to take into account.
712-
//
713-
// \note This is a characteristic of the ray tracing engine of the
714-
// environment simulation, not a direct characteristic of the sensor.
715-
//
716-
// \rules
717-
// is_greater_than_or_equal_to: 1
718-
// \endrules
719-
//
720-
optional uint32 max_number_of_interactions = 10;
721-
722-
// In use-cases where a spectral ray-tracer is used, this message determines the range of the wavelength
723-
// and its desired number of samples.
724-
//
725-
optional WavelengthData wavelength_data = 11;
726-
727-
// \brief Detailed WavelengthRange message.
728-
//
729-
// Defines the start (minimum) and the end (maximum) values of the wavelength.
730-
// Additionally, the number of samples within this range is defined in this message.
731-
//
732-
message WavelengthData
733-
{
734-
// The start, or the minimum, wavelength to be considered by the spectral ray tracer.
735-
//
736-
// Unit: nm
737-
//
738-
optional uint32 start = 1;
739-
740-
// The end, or the maximum, wavelength to be considered by the spectral ray tracer.
741-
// Unit: nm
742-
//
743-
optional uint32 end = 2;
744-
745-
// Number of samples to be considered withing the defined wavelength range.
746-
//
747-
optional uint32 samples_number = 3;
748-
}
749-
750-
// Format for image data (includes number, kind and format of channels).
689+
// Format for image data (includes number, kind and format of channels).
751690
//
752691
// In the message provided by the sensor model, this field can
753692
// be repeated and all values are acceptable to the model, with
@@ -765,7 +704,7 @@ message CameraSensorViewConfiguration
765704
// is_greater_than_or_equal_to: 1
766705
// \endrules
767706
//
768-
repeated ChannelFormat channel_format = 12;
707+
repeated ChannelFormat channel_format = 8;
769708

770709
// Channel format.
771710
//
@@ -813,27 +752,126 @@ message CameraSensorViewConfiguration
813752
//
814753
CHANNEL_FORMAT_RGB_F32_LIN = 9;
815754

816-
// Bayer RGGB Channels UINT8 FP Linear.
755+
// Bayer BGGR Channels UINT8 FP Linear.
817756
//
818757
CHANNEL_FORMAT_BAYER_BGGR_U8_LIN = 10;
819758

820-
// Bayer RGGB Channels UINT16 FP Linear.
759+
// Bayer BGGR Channels UINT16 FP Linear.
821760
//
822761
CHANNEL_FORMAT_BAYER_BGGR_U16_LIN = 11;
823762

824-
// Bayer RGGB Channels UINT32 FP Linear.
763+
// Bayer BGGR Channels UINT32 FP Linear.
825764
//
826765
CHANNEL_FORMAT_BAYER_BGGR_U32_LIN = 12;
827766

828-
// Bayer RGGB Channels Single Precision FP Linear.
767+
// Bayer BGGR Channels Single Precision FP Linear.
829768
//
830769
CHANNEL_FORMAT_BAYER_BGGR_F32_LIN = 13;
831770

771+
// Bayer RGGB Channels UINT8 FP Linear.
772+
//
773+
CHANNEL_FORMAT_BAYER_RGGB_U8_LIN = 14;
774+
775+
// Bayer RGGB Channels UINT16 FP Linear.
776+
//
777+
CHANNEL_FORMAT_BAYER_RGGB_U16_LIN = 15;
778+
779+
// Bayer RGGB Channels UINT32 FP Linear.
780+
//
781+
CHANNEL_FORMAT_BAYER_RGGB_U32_LIN = 16;
782+
783+
// Bayer RGGB Channels Single Precision FP Linear.
784+
//
785+
CHANNEL_FORMAT_BAYER_RGGB_F32_LIN = 17;
786+
787+
// Read Clear Clear Clear Channels UINT8 FP Linear.
788+
//
789+
CHANNEL_FORMAT_RCCC_U8_LIN = 18;
790+
791+
// Read Clear Clear Clear Channels UINT16 FP Linear.
792+
//
793+
CHANNEL_FORMAT_RCCC_U16_LIN = 19;
794+
795+
// Read Clear Clear Clear Channels UINT32 FP Linear.
796+
//
797+
CHANNEL_FORMAT_RCCC_U32_LIN = 20;
798+
799+
// Read Clear Clear Clear Channels Single Precision FP Linear.
800+
//
801+
CHANNEL_FORMAT_RCCC_F32_LIN = 21;
802+
803+
// Read Clear Clear Blue Channels UINT8 FP Linear.
804+
//
805+
CHANNEL_FORMAT_RCCB_U8_LIN = 22;
806+
807+
// Read Clear Clear Blue Channels UINT16 FP Linear.
808+
//
809+
CHANNEL_FORMAT_RCCB_U16_LIN = 23;
810+
811+
// Read Clear Clear Blue Channels UINT32 FP Linear.
812+
//
813+
CHANNEL_FORMAT_RCCB_U32_LIN = 24;
814+
815+
// Read Clear Clear Blue Channels Single Precision FP Linear.
816+
//
817+
CHANNEL_FORMAT_RCCB_F32_LIN = 25;
818+
819+
832820
// TBD: Further channel permutations and padding (e.g. RGBZ,
833821
// BGR, BAYER_RGGB/GBRG/GRBG/...), non-BAYER filters, non-linear
834822
// encodings, ...
835823
}
836824

825+
// Number of samples per pixel.
826+
//
827+
// \note This is a characteristic of the ray tracing engine of the
828+
// environment simulation, not a direct characteristic of the sensor.
829+
//
830+
// \rules
831+
// is_greater_than_or_equal_to: 1
832+
// \endrules
833+
//
834+
optional uint32 samples_per_pixel = 9;
835+
836+
// Maximum number of interactions to take into account.
837+
//
838+
// \note This is a characteristic of the ray tracing engine of the
839+
// environment simulation, not a direct characteristic of the sensor.
840+
//
841+
// \rules
842+
// is_greater_than_or_equal_to: 1
843+
// \endrules
844+
//
845+
optional uint32 max_number_of_interactions = 10;
846+
847+
// In use-cases where a spectral ray-tracer is used, this message determines the range of the wavelength
848+
// and its desired number of samples.
849+
//
850+
optional WavelengthData wavelength_data = 11;
851+
852+
// \brief Detailed WavelengthRange message.
853+
//
854+
// Defines the start (minimum) and the end (maximum) values of the wavelength.
855+
// Additionally, the number of samples within this range is defined in this message.
856+
//
857+
message WavelengthData
858+
{
859+
// The start, or the minimum, wavelength to be considered by the spectral ray tracer.
860+
//
861+
// Unit: nm
862+
//
863+
optional uint32 start = 1;
864+
865+
// The end, or the maximum, wavelength to be considered by the spectral ray tracer.
866+
// Unit: nm
867+
//
868+
optional uint32 end = 2;
869+
870+
// Number of samples to be considered withing the defined wavelength range.
871+
//
872+
optional uint32 samples_number = 3;
873+
}
874+
837875
// TBD: Optical (and other) effects to apply to image, etc.
838876
//
839877
}

0 commit comments

Comments
 (0)