From 78ff7b2fac8eda64c57fc5cddd361d84cc2d9229 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Tue, 28 May 2024 08:17:40 +0200 Subject: [PATCH 01/21] Add test generating output trace files Signed-off-by: ClemensLinnhoff --- .../Catalogs/Vehicles/VehicleCatalog.xosc | 435 ++++++++++++++++++ .../README.md | 24 + .../SystemStructure.ssd | 265 +++++++++++ .../control_scenario.xosc | 130 ++++++ .../straight_500m.xodr | 116 +++++ .../system_structure.png | Bin 0 -> 172608 bytes 6 files changed, 970 insertions(+) create mode 100644 test/integration/004_integration_output_validation/Catalogs/Vehicles/VehicleCatalog.xosc create mode 100644 test/integration/004_integration_output_validation/README.md create mode 100644 test/integration/004_integration_output_validation/SystemStructure.ssd create mode 100644 test/integration/004_integration_output_validation/control_scenario.xosc create mode 100644 test/integration/004_integration_output_validation/straight_500m.xodr create mode 100644 test/integration/004_integration_output_validation/system_structure.png diff --git a/test/integration/004_integration_output_validation/Catalogs/Vehicles/VehicleCatalog.xosc b/test/integration/004_integration_output_validation/Catalogs/Vehicles/VehicleCatalog.xosc new file mode 100644 index 0000000..b96a039 --- /dev/null +++ b/test/integration/004_integration_output_validation/Catalogs/Vehicles/VehicleCatalog.xosc @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/integration/004_integration_output_validation/README.md b/test/integration/004_integration_output_validation/README.md new file mode 100644 index 0000000..337a181 --- /dev/null +++ b/test/integration/004_integration_output_validation/README.md @@ -0,0 +1,24 @@ +# 004 Integration Test Output Validation + +This test uses the same scenario and similar setup as 003. +Additionally, the TrafficUpdate and TrafficCommandUpdate outputs of the model are written to trace files. + +## System Structure Definition + +The traffic participant model is connected to the esmini FMU, as shown in the following image. +It has an osi3::SensorView message as well as the optional osi3::TrafficCommand as input. +The traffic participant outputs both the osi3::TrafficUpdate and the optional osi3::TrafficCommandUpdate back to the esmini scenario player. +The traffic participant outputs are additionally connected to trace file writer FMUs. + +System Structure + +## Scenario + +The ego vehicle is placed on a straight road. +The movement of the ego vehicle is defined by a speed action after 10 s in the scenario file. +However, the behavior of the ego vehicle is fully controlled by the traffic participant model. + +## Pass/Fail Criterion + +The test fails, if the model crashes during runtime. +Additionally, all trace files are checked with osi-validation after the simulation. diff --git a/test/integration/004_integration_output_validation/SystemStructure.ssd b/test/integration/004_integration_output_validation/SystemStructure.ssd new file mode 100644 index 0000000..6fc87d1 --- /dev/null +++ b/test/integration/004_integration_output_validation/SystemStructure.ssd @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/integration/004_integration_output_validation/control_scenario.xosc b/test/integration/004_integration_output_validation/control_scenario.xosc new file mode 100644 index 0000000..ee67cba --- /dev/null +++ b/test/integration/004_integration_output_validation/control_scenario.xosc @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/integration/004_integration_output_validation/straight_500m.xodr b/test/integration/004_integration_output_validation/straight_500m.xodr new file mode 100644 index 0000000..ce7c576 --- /dev/null +++ b/test/integration/004_integration_output_validation/straight_500m.xodr @@ -0,0 +1,116 @@ + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + +