Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environmental conditions DRAFT for V4.0.0. #601

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stmswald
Copy link
Contributor

@stmswald stmswald commented Nov 23, 2021

With this draft the osi_environment.proto gets a major overhaul for OSI V4.0.0.

The basic idea is to move all attributes of the environment to an own message to create new messages easier for all attributes of the environmental conditions.

For now this is done exemplarily for the ambient illumination message.
Within this message there is the old Enum type, but it is easier now to create a numerical value range.

This draft is created and handled by the harmonization group.

TODO's:

Will be for filled by PR #593 and merged into this PR after release of V3.5.0.

Related:

Moved the enum values to an own message of AmbientIllumination

Signed-off-by: Markus Waldmann <Markus.Waldmann@stud.hs-kempten.de>
@stmswald stmswald changed the title Created message for AmbientIllumination Environmental conditions DRAFT for V4.0.0. Nov 23, 2021
// other cars, street lights etc.
//
message AmbientIllumination
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing the actual field value which uses the enum from this message.

For example AmbientIlluminationLevel level = 1;.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are absolutely right. I haven't added a field yet, because how to name the ENUM field and how to name the field for the numerical value range?

AmbientIlluminationLevel level = 1
double intensity = 2

{
// Ambient illumination is unknown (must not be used in ground truth).
//
AMBIENT_ILLUMINATION_UNKNOWN = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum types should be prefixed with the full enum name and include another underscore right before the actual type. So if the enum name is AmbientIlluminationLevel it should be AMBIENT_ILLUMINATION_LEVEL_1, AMBIENT_ILLUMINATION_LEVEL_OTHER etc.

see https://opensimulationinterface.github.io/osi-documentation/#_interface_conventions

Copy link
Contributor Author

@stmswald stmswald Nov 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but then the naming goes like this
AMBIENT_ILLUMINATION_LEVEL_UNKNOWN = 0
...
AMBIENT_ILLUMINATION_LEVEL_LEVEL1
AMBIENT_ILLUMINATION_LEVEL_LEVEL2
sounds wired, how to solve this?
AMBIENT_ILLUMINATION_LEVEL_1
AMBIENT_ILLUMINATION_LEVEL_2
maybe?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMBIENT_ILLUMINATION_LEVEL_1 would not sound too bad, I think. Though, I don't know if we actually need the "AmbientIllumination" term in the types if the enum is located within the AmbientIllumination message anyway. Maybe we could name the enum Level and have the types LEVEL_UNKOWN, LEVEL_OTHER, LEVEL_1...LEVEL_9? It has been done similarly with Type, Material, etc. in other messages like StationaryObject.

@HendrikAmelunxen HendrikAmelunxen added this to To do in Harmonisation via automation Jan 18, 2022
@HendrikAmelunxen HendrikAmelunxen added the Harmonisation The Group in the ASAM development project working on harmonisation with other standards. label Jan 18, 2022
@HendrikAmelunxen HendrikAmelunxen added this to the V4.0.0 milestone Jan 18, 2022
@HendrikAmelunxen HendrikAmelunxen moved this from To do to In progress in Harmonisation Jan 18, 2022
@thempen thempen moved this from In progress to To do in Harmonisation Sep 28, 2022
@thempen thempen added the SensorModeling The Group in the ASAM development project working on sensor modeling topics. label Feb 15, 2023
@PhRosenberger PhRosenberger self-assigned this Mar 3, 2023
@ClemensLinnhoff ClemensLinnhoff added AUTOSAR ADI Topics connected to AUTOSAR ADI definition. OpenMSL Required to enable sub-libraries in OpenMSL. and removed AUTOSAR ADI Topics connected to AUTOSAR ADI definition. labels Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Harmonisation The Group in the ASAM development project working on harmonisation with other standards. OpenMSL Required to enable sub-libraries in OpenMSL. SensorModeling The Group in the ASAM development project working on sensor modeling topics.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

7 participants