Skip to content
Snippets Groups Projects
Commit 9baf050c authored by Christoph Kochendoerfer's avatar Christoph Kochendoerfer
Browse files

Added vehicleCatalog path to the additional information.

parent 90ca3b9e
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,13 @@ mantle_api::ScenarioInfo OpenScenarioEngine::GetScenarioInfo() const ...@@ -51,6 +51,13 @@ mantle_api::ScenarioInfo OpenScenarioEngine::GetScenarioInfo() const
info.description = scenario_data_ptr_->GetFileHeader()->GetDescription(); info.description = scenario_data_ptr_->GetFileHeader()->GetDescription();
info.scenario_timeout_duration = storyboard_->GetDuration(); info.scenario_timeout_duration = storyboard_->GetDuration();
info.additional_information.emplace("full_scenario_path", ResolveScenarioPath(scenario_file_path_)); info.additional_information.emplace("full_scenario_path", ResolveScenarioPath(scenario_file_path_));
if (scenario_data_ptr_->GetOpenScenarioCategory()->GetScenarioDefinition()->GetCatalogLocations()->GetVehicleCatalog() != nullptr)
{
const auto& vehicle_catalog_path = scenario_data_ptr_->GetOpenScenarioCategory()->GetScenarioDefinition()->GetCatalogLocations()->GetVehicleCatalog()->GetDirectory()->GetPath();
info.additional_information.emplace("vehicle_catalog_path", vehicle_catalog_path);
}
if (scenario_definition_ptr_->GetRoadNetwork()->GetLogicFile() != nullptr) if (scenario_definition_ptr_->GetRoadNetwork()->GetLogicFile() != nullptr)
{ {
info.additional_information.emplace( info.additional_information.emplace(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment