CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Sensor
ObstacleDetectionSensor.h
Go to the documentation of this file.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include "
Carla/Sensor/Sensor.h
"
10
#include "
Carla/Actor/ActorDefinition.h
"
11
#include "
Carla/Actor/ActorDescription.h
"
12
#include "ObstacleDetectionSensor.generated.h"
13
14
class
UCarlaEpisode
;
15
16
/// A sensor to register collisions.
17
UCLASS()
18
class CARLA_API
AObstacleDetectionSensor
: public
ASensor
19
{
20
GENERATED_BODY()
21
22
public
:
23
24
static
FActorDefinition
GetSensorDefinition();
25
26
AObstacleDetectionSensor
(
const
FObjectInitializer &ObjectInitializer);
27
28
void
Set(
const
FActorDescription
&Description)
override
;
29
30
virtual
void
PostPhysTick(UWorld *World, ELevelTick TickType,
float
DeltaSeconds)
override
;
31
32
private
:
33
34
UFUNCTION()
35
void
OnObstacleDetectionEvent(
36
AActor
*
Actor
,
37
AActor
*OtherActor,
38
float
Distance,
39
const
FHitResult &Hit);
40
41
private
:
42
43
float
Distance
;
44
45
float
HitRadius
;
46
47
bool
bOnlyDynamics =
false
;
48
49
bool
bDebugLineTrace =
false
;
50
};
AObstacleDetectionSensor::Distance
float Distance
Definition:
ObstacleDetectionSensor.h:43
AObstacleDetectionSensor
A sensor to register collisions.
Definition:
ObstacleDetectionSensor.h:18
ActorDescription.h
FActorDefinition
A definition of a Carla Actor with all the variation and attributes.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorDefinition.h:17
ASensor
Base class for sensors.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h:23
Sensor.h
carla::traffic_manager::Actor
carla::SharedPtr< cc::Actor > Actor
Definition:
LocalizationUtils.h:26
UCarlaEpisode
A simulation episode.
Definition:
CarlaEpisode.h:38
ActorDefinition.h
AActor
FActorDescription
A description of a Carla Actor with all its variation.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorDescription.h:15
AObstacleDetectionSensor::HitRadius
float HitRadius
Definition:
ObstacleDetectionSensor.h:45
Generated by
1.8.13