CARLA
 
载入中...
搜索中...
未找到
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/OpenDrive/OpenDrive.h
浏览该文件的文档.
1// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
10
11#include "Kismet/BlueprintFunctionLibrary.h"
12
13#include "OpenDrive.generated.h"
14
15UCLASS()
16class CARLA_API UOpenDrive : public UBlueprintFunctionLibrary
17{
18 GENERATED_BODY()
19
20public:
21
22 /// Return the OpenDrive XML associated to @a MapName, or empty if the file
23 /// is not found.
24 UFUNCTION(BlueprintCallable, Category="CARLA|OpenDrive")
25 static FString GetXODR(const UWorld *World);
26
27 /// Return the OpenDrive XML associated to @a MapName, or empty if the file
28 /// is not found.
29 UFUNCTION(BlueprintCallable, Category="CARLA|OpenDrive")
30 static FString GetXODRByPath(FString XODRPath, FString MapName);
31
32 UFUNCTION(BlueprintCallable, Category="CARLA|OpenDrive")
33 static FString FindPathToXODRFile(const FString &InMapName);
34
35 UFUNCTION(BlueprintCallable, Category="CARLA|OpenDrive")
36 static FString LoadXODR(const FString &MapName);
37
38 /// Load OpenDriveMap associated to the given MapName. Return nullptr if no
39 /// XODR can be found with same MapName.
40 UFUNCTION(BlueprintCallable, Category="CARLA|OpenDrive")
41 static UOpenDriveMap *LoadOpenDriveMap(const FString &MapName);
42
43 /// Load OpenDriveMap associated to the currently loaded map. Return nullptr
44 /// if no XODR can be found that matches the current map.
45 UFUNCTION(BlueprintPure, Category="CARLA|OpenDrive", meta=(WorldContext="WorldContextObject"))
46 static UOpenDriveMap *LoadCurrentOpenDriveMap(const UObject *WorldContextObject);
47};
将 CARLA OpenDrive API 公开给蓝图的辅助类。