将 CARLA OpenDrive API 公开给蓝图的辅助类。 更多...
#include <OpenDriveMap.h>
Public 成员函数 | |
FVector | ComputeLocation (FWaypoint Waypoint) const |
Compute the location of a waypoint. | |
TArray< FVector > | ComputeLocations (const TArray< FWaypoint > &Waypoints) const |
Compute the locations of an array of waypoints. | |
FTransform | ComputeTransform (FWaypoint Waypoint) const |
Compute the transform of a waypoint. | |
TArray< FTransform > | ComputeTransforms (const TArray< FWaypoint > &Waypoints) const |
Compute the transforms of an array of waypoints. | |
TArray< FWaypointConnection > | GenerateTopology () const |
Generate the minimum set of waypoints that define the topology of this map. | |
TArray< FWaypoint > | GenerateWaypoints (float ApproxDistance=100.0f) const |
Generate waypoints all over the map at an approximated distance. | |
TArray< FWaypoint > | GenerateWaypointsOnRoadEntries () const |
Generate waypoints on each lane at the start of each road. | |
FWaypoint | GetClosestWaypointOnRoad (FVector Location, bool &Success) const |
Given a location, return the closest point on the centre of a lane. | |
TArray< FWaypoint > | GetNext (FWaypoint Waypoint, float Distance=100.0f) const |
Return the list of waypoints at a given distance such that a vehicle at waypoint could drive to. | |
bool | HasMap () const |
Return whether this map has been initialized. | |
bool | Load (const FString &XODRContent) |
Load this map with an OpenDrive (XODR) file. | |
UOpenDriveMap (const FObjectInitializer &ObjectInitializer) | |
Private 属性 | |
TOptional< carla::road::Map > | Map |
将 CARLA OpenDrive API 公开给蓝图的辅助类。
在文件 OpenDriveMap.h 第 37 行定义.
UOpenDriveMap::UOpenDriveMap | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 OpenDriveMap.cpp 第 52 行定义.
FVector UOpenDriveMap::ComputeLocation | ( | FWaypoint | Waypoint | ) | const |
Compute the location of a waypoint.
在文件 OpenDriveMap.cpp 第 102 行定义.
引用了 ComputeTransform().
被这些函数引用 ComputeLocations().
TArray< FVector > UOpenDriveMap::ComputeLocations | ( | const TArray< FWaypoint > & | Waypoints | ) | const |
Compute the locations of an array of waypoints.
在文件 OpenDriveMap.cpp 第 107 行定义.
引用了 ComputeLocation().
FTransform UOpenDriveMap::ComputeTransform | ( | FWaypoint | Waypoint | ) | const |
Compute the transform of a waypoint.
The X-axis is directed towards the direction of the road at that waypoint.
在文件 OpenDriveMap.cpp 第 115 行定义.
引用了 HasMap(), Map , 以及 FWaypoint::Waypoint.
被这些函数引用 ComputeLocation() , 以及 ComputeTransforms().
TArray< FTransform > UOpenDriveMap::ComputeTransforms | ( | const TArray< FWaypoint > & | Waypoints | ) | const |
Compute the transforms of an array of waypoints.
在文件 OpenDriveMap.cpp 第 122 行定义.
引用了 ComputeTransform().
TArray< FWaypointConnection > UOpenDriveMap::GenerateTopology | ( | ) | const |
Generate the minimum set of waypoints that define the topology of this map.
The waypoints are placed at the entrance of each lane.
在文件 OpenDriveMap.cpp 第 86 行定义.
TArray< FWaypoint > UOpenDriveMap::GenerateWaypoints | ( | float | ApproxDistance = 100.0f | ) | const |
Generate waypoints all over the map at an approximated distance.
在文件 OpenDriveMap.cpp 第 74 行定义.
TArray< FWaypoint > UOpenDriveMap::GenerateWaypointsOnRoadEntries | ( | ) | const |
FWaypoint UOpenDriveMap::GetClosestWaypointOnRoad | ( | FVector | Location, |
bool & | Success ) const |
Given a location, return the closest point on the centre of a lane.
在文件 OpenDriveMap.cpp 第 66 行定义.
引用了 HasMap(), Map , 以及 Success.
Return the list of waypoints at a given distance such that a vehicle at waypoint could drive to.
在文件 OpenDriveMap.cpp 第 130 行定义.
引用了 HasMap(), Map , 以及 FWaypoint::Waypoint.
|
inline |
Return whether this map has been initialized.
在文件 OpenDriveMap.h 第 47 行定义.
被这些函数引用 ComputeTransform(), GenerateTopology(), GenerateWaypoints(), GenerateWaypointsOnRoadEntries(), GetClosestWaypointOnRoad(), GetNext() , 以及 Load().
bool UOpenDriveMap::Load | ( | const FString & | XODRContent | ) |
Load this map with an OpenDrive (XODR) file.
在文件 OpenDriveMap.cpp 第 55 行定义.
引用了 HasMap(), carla::opendrive::OpenDriveParser::Load() , 以及 Map.
被这些函数引用 UOpenDrive::LoadOpenDriveMap().
|
private |
在文件 OpenDriveMap.h 第 97 行定义.
被这些函数引用 ComputeTransform(), GenerateTopology(), GenerateWaypoints(), GenerateWaypointsOnRoadEntries(), GetClosestWaypointOnRoad(), GetNext() , 以及 Load().