Helper class for exposing CARLA OpenDrive API to blueprints. More...
#include <OpenDriveMap.h>
Inheritance diagram for UOpenDriveMap:
Collaboration diagram for UOpenDriveMap:Public Member Functions | |
| FVector | ComputeLocation (FWaypoint Waypoint) const |
| Compute the location of a waypoint. More... | |
| TArray< FVector > | ComputeLocations (const TArray< FWaypoint > &Waypoints) const |
| Compute the locations of an array of waypoints. More... | |
| FTransform | ComputeTransform (FWaypoint Waypoint) const |
| Compute the transform of a waypoint. More... | |
| TArray< FTransform > | ComputeTransforms (const TArray< FWaypoint > &Waypoints) const |
| Compute the transforms of an array of waypoints. More... | |
| TArray< FWaypointConnection > | GenerateTopology () const |
| Generate the minimum set of waypoints that define the topology of this map. More... | |
| TArray< FWaypoint > | GenerateWaypoints (float ApproxDistance=100.0f) const |
| Generate waypoints all over the map at an approximated distance. More... | |
| TArray< FWaypoint > | GenerateWaypointsOnRoadEntries () const |
| Generate waypoints on each lane at the start of each road. More... | |
| FWaypoint | GetClosestWaypointOnRoad (FVector Location, bool &Success) const |
| Given a location, return the closest point on the centre of a lane. More... | |
| 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. More... | |
| bool | HasMap () const |
| Return whether this map has been initialized. More... | |
| bool | Load (const FString &XODRContent) |
| Load this map with an OpenDrive (XODR) file. More... | |
| UOpenDriveMap (const FObjectInitializer &ObjectInitializer) | |
Private Attributes | |
| TOptional< carla::road::Map > | Map |
Helper class for exposing CARLA OpenDrive API to blueprints.
Definition at line 37 of file OpenDriveMap.h.
| UOpenDriveMap::UOpenDriveMap | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 52 of file OpenDriveMap.cpp.
| FVector UOpenDriveMap::ComputeLocation | ( | FWaypoint | Waypoint | ) | const |
Compute the location of a waypoint.
Definition at line 102 of file OpenDriveMap.cpp.
References ComputeTransform().
Referenced by ComputeLocations().
Here is the call graph for this function:
Here is the caller graph for this function:| TArray< FVector > UOpenDriveMap::ComputeLocations | ( | const TArray< FWaypoint > & | Waypoints | ) | const |
Compute the locations of an array of waypoints.
Definition at line 107 of file OpenDriveMap.cpp.
References ComputeLocation().
Here is the call graph for this function:| 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.
Definition at line 115 of file OpenDriveMap.cpp.
References HasMap(), Map, and FWaypoint::Waypoint.
Referenced by ComputeLocation(), and ComputeTransforms().
Here is the call graph for this function:
Here is the caller graph for this function:| TArray< FTransform > UOpenDriveMap::ComputeTransforms | ( | const TArray< FWaypoint > & | Waypoints | ) | const |
Compute the transforms of an array of waypoints.
Definition at line 122 of file OpenDriveMap.cpp.
References ComputeTransform().
Here is the call graph for this function:| 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.
Definition at line 86 of file OpenDriveMap.cpp.
Here is the call graph for this function:| TArray< FWaypoint > UOpenDriveMap::GenerateWaypoints | ( | float | ApproxDistance = 100.0f | ) | const |
Generate waypoints all over the map at an approximated distance.
Definition at line 74 of file OpenDriveMap.cpp.
Here is the call graph for this function:| TArray< FWaypoint > UOpenDriveMap::GenerateWaypointsOnRoadEntries | ( | ) | const |
Generate waypoints on each lane at the start of each road.
Definition at line 95 of file OpenDriveMap.cpp.
Here is the call graph for this function:| FWaypoint UOpenDriveMap::GetClosestWaypointOnRoad | ( | FVector | Location, |
| bool & | Success | ||
| ) | const |
Given a location, return the closest point on the centre of a lane.
Definition at line 66 of file OpenDriveMap.cpp.
Here is the call graph for this function:Return the list of waypoints at a given distance such that a vehicle at waypoint could drive to.
Definition at line 130 of file OpenDriveMap.cpp.
References HasMap(), Map, and FWaypoint::Waypoint.
Here is the call graph for this function:
|
inline |
Return whether this map has been initialized.
Definition at line 47 of file OpenDriveMap.h.
References carla::client::detail::Load(), and Success.
Referenced by ComputeTransform(), GenerateTopology(), GenerateWaypoints(), GenerateWaypointsOnRoadEntries(), GetClosestWaypointOnRoad(), GetNext(), and Load().
Here is the call graph for this function:
Here is the caller graph for this function:| bool UOpenDriveMap::Load | ( | const FString & | XODRContent | ) |
Load this map with an OpenDrive (XODR) file.
Definition at line 55 of file OpenDriveMap.cpp.
References HasMap(), carla::opendrive::OpenDriveParser::Load(), and Map.
Referenced by UOpenDrive::LoadOpenDriveMap().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 97 of file OpenDriveMap.h.
Referenced by ComputeTransform(), GenerateTopology(), GenerateWaypoints(), GenerateWaypointsOnRoadEntries(), GetClosestWaypointOnRoad(), GetNext(), and Load().
1.8.13