Skip to content

Generator does not consider DynamicConstrains in LongitudinalDistanceAction

When generating stubs for LongitudinalDistanceAction DynamicConstrains are not considered right (pyhon3 generate.py --force -c LongitudinalDistanceAction).

Right now, when it finds the property DynamicConstrains it creates the following converter (openScenario parser to Mantle): OPENSCENARIO::ConvertScenarioDynamicConstraints(lateralDistanceAction_->GetDynamicConstraints())

As dynamic constrains behave differently if NOT SET (see also: https://www.asam.net/static_downloads/ASAM_OpenSCENARIO_V1.1.1_Model_Documentation/modelDocumentation/index.html), the converter call should be: OPENSCENARIO::ConvertScenarioDynamicConstraints(lateralDistanceAction_->IsSetDynamicConstraints(), lateralDistanceAction_->GetDynamicConstraints())

The correct version is currently implemented manually (see engine/src/Storyboard/MotionControlAction/LongitudinalDistanceAction.h) so that the generator skips it. On the long run the generator should interpret such "annotations".