esmini icon indicating copy to clipboard operation
esmini copied to clipboard

How to use UserDefinedXXX elements

Open Yocote0111 opened this issue 2 years ago • 1 comments

There are many user defined elements defined in OpenSCENARIO such as:

  • UserDefinedAction
  • UserDefinedValueCondition
  • UserDefinedDistribution (introduced in 1.1)
  • UserDefinedAnimation (introduced in 1.2)
  • UserDefinedComponent (introduced in 1.2)
  • UserDefinedLight (introduced in 1.2)

How can I use these elements in esmini? Are there some kinds of functions / extension mechanisms / guides for implementing and/or using these elements?

Yocote0111 avatar Feb 02 '23 06:02 Yocote0111

Short answer: No. None of these features are implemented yet.

esmini OpenSCENARIO coverage is documented here

Elaborations:

There are many user defined elements defined in OpenSCENARIO such as:

  • UserDefinedAction

No. We haven't yet had the need for this.

  • UserDefinedValueCondition

No. But I think VariableConditioncan be used for similar use cases, although with some limitations. For example, if you have a variable in an external process (e.g. vehicle simulator) you can represent it in the scenario and keep it up to date by reporting its value from the external process to esmini (see SE_SetVariable* functions). Then the variable can used in VariableConditions.

One limitation is the range of possible types, only basic types supported (boolean, integer, double, string). The UserDefinedValueCondition could probably represent any type (as long as the standard Rules makes sense.

  • UserDefinedDistribution (introduced in 1.1)

No. Currently only supporting deterministic distributions.

  • UserDefinedAnimation (introduced in 1.2)
  • UserDefinedComponent (introduced in 1.2)
  • UserDefinedLight (introduced in 1.2)

No. Lights and animations not yet supported. It's in the backlog, but low priority (no need emerged yet).

How can I use these elements in esmini? Are there some kinds of functions / extension mechanisms / guides for implementing and/or using these elements?

So, currently you can't use these features in esmini. But we're curious about potential need and use cases for these features. Do you have specific use cases in mind?

eknabevcc avatar Feb 05 '23 13:02 eknabevcc