CARLA
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RssSensor.cpp
Go to the documentation of this file.
1 // Copyright (c) 2019 Intel Labs.
2 //
3 // This work is licensed under the terms of the MIT license.
4 // For a copy, see <https://opensource.org/licenses/MIT>.
5 
6 #include "Carla.h"
8 #include "StaticMeshResources.h"
9 
11 {
12  return UActorBlueprintFunctionLibrary::MakeGenericSensorDefinition(TEXT("other"), TEXT("rss"));
13 }
14 
15 ARssSensor::ARssSensor(const FObjectInitializer &ObjectInitializer)
16  : Super(ObjectInitializer)
17 {
18  PrimaryActorTick.bCanEverTick = false;
19 
20  auto MeshComp = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("RootComponent"));
21  MeshComp->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
22  MeshComp->bHiddenInGame = true;
23  MeshComp->CastShadow = false;
24  RootComponent = MeshComp;
25 }
ARssSensor(const FObjectInitializer &ObjectInitializer)
A definition of a Carla Actor with all the variation and attributes.
static FActorDefinition MakeGenericSensorDefinition(const FString &Type, const FString &Id)