A sensor to register collisions. 更多...
#include <ObstacleDetectionSensor.h>
Public 成员函数 | |
AObstacleDetectionSensor (const FObjectInitializer &ObjectInitializer) | |
virtual void | PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) override |
void | Set (const FActorDescription &Description) override |
Public 成员函数 继承自 ASensor | |
ASensor (const FObjectInitializer &ObjectInitializer) | |
virtual void | BeginPlay () |
boost::optional< FActorAttribute > | GetAttribute (const FString Name) |
const UCarlaEpisode & | GetEpisode () const |
URandomEngine * | GetRandomEngine () |
int32 | GetSeed () const |
auto | GetToken () const |
Return the token that allows subscribing to this sensor's stream. | |
bool | IsStreamReady () |
FDataStream | MoveDataStream () |
virtual void | OnFirstClientConnected () |
virtual void | OnLastClientDisconnected () |
void | PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
virtual void | PrePhysTick (float DeltaSeconds) |
void | SetDataStream (FDataStream InStream) |
Replace the FDataStream associated with this sensor. | |
void | SetEpisode (const UCarlaEpisode &InEpisode) |
void | SetSeed (int32 InSeed) |
void | Tick (const float DeltaTime) final |
静态 Public 成员函数 | |
static FActorDefinition | GetSensorDefinition () |
Private 成员函数 | |
void | OnObstacleDetectionEvent (AActor *Actor, AActor *OtherActor, float Distance, const FHitResult &Hit) |
Private 属性 | |
bool | bDebugLineTrace = false |
bool | bOnlyDynamics = false |
float | Distance |
float | HitRadius |
额外继承的成员函数 | |
Protected 成员函数 继承自 ASensor | |
void | EndPlay (EEndPlayReason::Type EndPlayReason) override |
template<typename SensorT > | |
FAsyncDataStream | GetDataStream (const SensorT &Self) |
Return the FDataStream associated with this sensor. | |
void | PostActorCreated () override |
Protected 属性 继承自 ASensor | |
bool | bIsActive = false |
URandomEngine * | RandomEngine = nullptr |
Random Engine used to provide noise for sensor output. | |
int32 | Seed = 123456789 |
Seed of the pseudo-random engine. | |
A sensor to register collisions.
在文件 ObstacleDetectionSensor.h 第 18 行定义.
AObstacleDetectionSensor::AObstacleDetectionSensor | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 ObstacleDetectionSensor.cpp 第 20 行定义.
|
static |
在文件 ObstacleDetectionSensor.cpp 第 26 行定义.
引用了 UActorBlueprintFunctionLibrary::MakeObstacleDetectorDefinitions().
|
private |
在文件 ObstacleDetectionSensor.cpp 第 133 行定义.
引用了 ASensor::Episode, carla::streaming::detail::token_type::get_stream_id(), ASensor::GetDataStream(), ASensor::GetEpisode(), carla::ros2::ROS2::GetInstance(), ASensor::GetToken(), ASensor::IsStreamReady() , 以及 UCarlaEpisode::SerializeActor().
被这些函数引用 PostPhysTick().
|
overridevirtual |
重载 ASensor .
在文件 ObstacleDetectionSensor.cpp 第 57 行定义.
引用了 bDebugLineTrace, bOnlyDynamics, Distance, HitRadius, OnObstacleDetectionEvent() , 以及 PostPhysTick().
被这些函数引用 PostPhysTick().
|
overridevirtual |
|
private |
在文件 ObstacleDetectionSensor.h 第 49 行定义.
被这些函数引用 PostPhysTick() , 以及 Set().
|
private |
在文件 ObstacleDetectionSensor.h 第 47 行定义.
被这些函数引用 PostPhysTick() , 以及 Set().
|
private |
在文件 ObstacleDetectionSensor.h 第 43 行定义.
被这些函数引用 PostPhysTick().
|
private |
在文件 ObstacleDetectionSensor.h 第 45 行定义.
被这些函数引用 PostPhysTick() , 以及 Set().