CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
UOpenDriveMap类 参考

将 CARLA OpenDrive API 公开给蓝图的辅助类。 更多...

#include <OpenDriveMap.h>

+ 类 UOpenDriveMap 继承关系图:
+ UOpenDriveMap 的协作图:

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< FWaypointConnectionGenerateTopology () const
 Generate the minimum set of waypoints that define the topology of this map.
 
TArray< FWaypointGenerateWaypoints (float ApproxDistance=100.0f) const
 Generate waypoints all over the map at an approximated distance.
 
TArray< FWaypointGenerateWaypointsOnRoadEntries () 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< FWaypointGetNext (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::MapMap
 

详细描述

将 CARLA OpenDrive API 公开给蓝图的辅助类。

在文件 OpenDriveMap.h37 行定义.

构造及析构函数说明

◆ UOpenDriveMap()

UOpenDriveMap::UOpenDriveMap ( const FObjectInitializer & ObjectInitializer)

在文件 OpenDriveMap.cpp52 行定义.

成员函数说明

◆ ComputeLocation()

FVector UOpenDriveMap::ComputeLocation ( FWaypoint Waypoint) const

Compute the location of a waypoint.

在文件 OpenDriveMap.cpp102 行定义.

引用了 ComputeTransform().

被这些函数引用 ComputeLocations().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ComputeLocations()

TArray< FVector > UOpenDriveMap::ComputeLocations ( const TArray< FWaypoint > & Waypoints) const

Compute the locations of an array of waypoints.

在文件 OpenDriveMap.cpp107 行定义.

引用了 ComputeLocation().

+ 函数调用图:

◆ ComputeTransform()

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.cpp115 行定义.

引用了 HasMap(), Map , 以及 FWaypoint::Waypoint.

被这些函数引用 ComputeLocation() , 以及 ComputeTransforms().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ComputeTransforms()

TArray< FTransform > UOpenDriveMap::ComputeTransforms ( const TArray< FWaypoint > & Waypoints) const

Compute the transforms of an array of waypoints.

在文件 OpenDriveMap.cpp122 行定义.

引用了 ComputeTransform().

+ 函数调用图:

◆ GenerateTopology()

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.cpp86 行定义.

引用了 HasMap() , 以及 Map.

+ 函数调用图:

◆ GenerateWaypoints()

TArray< FWaypoint > UOpenDriveMap::GenerateWaypoints ( float ApproxDistance = 100.0f) const

Generate waypoints all over the map at an approximated distance.

在文件 OpenDriveMap.cpp74 行定义.

引用了 HasMap() , 以及 Map.

+ 函数调用图:

◆ GenerateWaypointsOnRoadEntries()

TArray< FWaypoint > UOpenDriveMap::GenerateWaypointsOnRoadEntries ( ) const

Generate waypoints on each lane at the start of each road.

在文件 OpenDriveMap.cpp95 行定义.

引用了 HasMap() , 以及 Map.

+ 函数调用图:

◆ GetClosestWaypointOnRoad()

FWaypoint UOpenDriveMap::GetClosestWaypointOnRoad ( FVector Location,
bool & Success ) const

Given a location, return the closest point on the centre of a lane.

在文件 OpenDriveMap.cpp66 行定义.

引用了 HasMap(), Map , 以及 Success.

+ 函数调用图:

◆ GetNext()

TArray< FWaypoint > UOpenDriveMap::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.

在文件 OpenDriveMap.cpp130 行定义.

引用了 HasMap(), Map , 以及 FWaypoint::Waypoint.

+ 函数调用图:

◆ HasMap()

bool UOpenDriveMap::HasMap ( ) const
inline

Return whether this map has been initialized.

在文件 OpenDriveMap.h47 行定义.

被这些函数引用 ComputeTransform(), GenerateTopology(), GenerateWaypoints(), GenerateWaypointsOnRoadEntries(), GetClosestWaypointOnRoad(), GetNext() , 以及 Load().

+ 这是这个函数的调用关系图:

◆ Load()

bool UOpenDriveMap::Load ( const FString & XODRContent)

Load this map with an OpenDrive (XODR) file.

在文件 OpenDriveMap.cpp55 行定义.

引用了 HasMap(), carla::opendrive::OpenDriveParser::Load() , 以及 Map.

被这些函数引用 UOpenDrive::LoadOpenDriveMap().

+ 函数调用图:
+ 这是这个函数的调用关系图:

类成员变量说明

◆ Map

TOptional<carla::road::Map> UOpenDriveMap::Map
private

该类的文档由以下文件生成: