OSC-ALKS-scenarios icon indicating copy to clipboard operation
OSC-ALKS-scenarios copied to clipboard

"rule" constraint

Open yhamadi75 opened this issue 1 year ago • 1 comments
trafficstars

Hi, I need a clarification with respect to multiple ConstraintGroups. The standard says that multiple constraint groups are combined by an OR. (like below for "Ego_InitPosition_LaneId" in "alks_scenario_4_5_1_cut_out_fully_blocking_template.xosc").

At contrary when there is just one group, it's an AND, like for "Ego_InitSpeed_Ve0_kph" below.

Now is it possible to have nested ConstraintGroups with associated generalizing of the previous semantic? Or can we just have siblings constraint groups? I did not find this information in the XML doc.

Thanks for clarifying.

<ParameterDeclaration name="Ego_InitSpeed_Ve0_kph" parameterType="double" value="60.0">
  <ConstraintGroup>
    <!--The scenarios are meant to be run with a positive ego speed up to 60 kph.-->
    <ValueConstraint rule="greaterThan" value="0.0" />
    <ValueConstraint rule="lessOrEqual" value="60.0" />
  </ConstraintGroup>
</ParameterDeclaration>

yhamadi75 avatar Oct 19 '24 21:10 yhamadi75