A ray-cast based Radar sensor. 更多...
#include <Radar.h>
类 | |
struct | RayData |
Public 成员函数 | |
ARadar (const FObjectInitializer &ObjectInitializer) | |
void | Set (const FActorDescription &Description) override |
void | SetHorizontalFOV (float NewHorizontalFOV) |
void | SetPointsPerSecond (int NewPointsPerSecond) |
void | SetRange (float NewRange) |
void | SetVerticalFOV (float NewVerticalFOV) |
Public 成员函数 继承自 ASensor | |
ASensor (const FObjectInitializer &ObjectInitializer) | |
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 () |
Protected 成员函数 | |
void | BeginPlay () override |
virtual void | PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaTime) override |
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 属性 | |
float | HorizontalFOV |
int | PointsPerSecond |
float | Range |
float | VerticalFOV |
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. | |
Private 类型 | |
using | FRadarData = carla::sensor::data::RadarData |
Private 成员函数 | |
void | CalculateCurrentVelocity (const float DeltaTime) |
float | CalculateRelativeVelocity (const FHitResult &OutHit, const FVector &RadarLocation) |
void | SendLineTraces (float DeltaTime) |
Private 属性 | |
FVector | CurrentVelocity |
FVector | PrevLocation |
Used to compute the velocity of the radar | |
FRadarData | RadarData |
std::vector< RayData > | Rays |
FCollisionQueryParams | TraceParams |
|
private |
ARadar::ARadar | ( | const FObjectInitializer & | ObjectInitializer | ) |
引用了 ASensor::RandomEngine , 以及 TraceParams.
|
overrideprotectedvirtual |
|
private |
|
private |
|
static |
|
overrideprotectedvirtual |
重载 ASensor .
引用了 CalculateCurrentVelocity(), carla::streaming::detail::token_type::get_stream_id(), ASensor::GetDataStream(), carla::ros2::ROS2::GetInstance(), ASensor::GetToken(), PostPhysTick(), RadarData, carla::sensor::data::RadarData::Reset() , 以及 SendLineTraces().
被这些函数引用 PostPhysTick().
|
private |
引用了 CalculateRelativeVelocity(), URandomEngine::GetUniformFloat(), URandomEngine::GetUniformFloatInRange(), HorizontalFOV, PointsPerSecond, RadarData, ASensor::RandomEngine, Range, Rays, SendLineTraces(), TraceParams, VerticalFOV , 以及 carla::sensor::data::RadarData::WriteDetection().
被这些函数引用 PostPhysTick() , 以及 SendLineTraces().
|
overridevirtual |
void ARadar::SetHorizontalFOV | ( | float | NewHorizontalFOV | ) |
引用了 HorizontalFOV.
void ARadar::SetPointsPerSecond | ( | int | NewPointsPerSecond | ) |
void ARadar::SetVerticalFOV | ( | float | NewVerticalFOV | ) |
引用了 VerticalFOV.
|
private |
被这些函数引用 CalculateCurrentVelocity() , 以及 CalculateRelativeVelocity().
|
protected |
被这些函数引用 SendLineTraces() , 以及 SetHorizontalFOV().
|
protected |
被这些函数引用 SendLineTraces() , 以及 SetPointsPerSecond().
|
private |
Used to compute the velocity of the radar
被这些函数引用 BeginPlay() , 以及 CalculateCurrentVelocity().
|
private |
被这些函数引用 PostPhysTick(), SendLineTraces() , 以及 SetPointsPerSecond().
|
protected |
被这些函数引用 SendLineTraces() , 以及 SetRange().
|
private |
被这些函数引用 SendLineTraces().
|
private |
被这些函数引用 ARadar() , 以及 SendLineTraces().
|
protected |
被这些函数引用 SendLineTraces() , 以及 SetVerticalFOV().