CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Sensor
GnssSensor.h
Go to the documentation of this file.
1
// Copyright (c) 2019 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
11
#include "
Carla/Actor/ActorDefinition.h
"
12
#include "
Carla/Actor/ActorDescription.h
"
13
14
#include <
compiler/disable-ue4-macros.h
>
15
#include "
carla/geom/GeoLocation.h
"
16
#include <
compiler/enable-ue4-macros.h
>
17
18
#include "GnssSensor.generated.h"
19
20
/// Gnss sensor representation
21
/// The actual position calculation is done one server side
22
UCLASS()
23
class CARLA_API
AGnssSensor
: public
ASensor
24
{
25
GENERATED_BODY()
26
27
public
:
28
29
AGnssSensor
(
const
FObjectInitializer &ObjectInitializer);
30
31
static
FActorDefinition
GetSensorDefinition();
32
33
void
Set(
const
FActorDescription
&ActorDescription);
34
35
// virtual void PrePhysTick(float DeltaSeconds) override;
36
virtual
void
PostPhysTick(UWorld *World, ELevelTick TickType,
float
DeltaSeconds)
override
;
37
38
void
SetLatitudeDeviation(
float
Value);
39
void
SetLongitudeDeviation(
float
Value);
40
void
SetAltitudeDeviation(
float
Value);
41
42
void
SetLatitudeBias(
float
Value);
43
void
SetLongitudeBias(
float
Value);
44
void
SetAltitudeBias(
float
Value);
45
46
float
GetLatitudeDeviation()
const
;
47
float
GetLongitudeDeviation()
const
;
48
float
GetAltitudeDeviation()
const
;
49
50
float
GetLatitudeBias()
const
;
51
float
GetLongitudeBias()
const
;
52
float
GetAltitudeBias()
const
;
53
54
protected
:
55
56
virtual
void
BeginPlay()
override
;
57
58
private
:
59
60
carla::geom::GeoLocation
CurrentGeoReference
;
61
62
float
LatitudeDeviation
;
63
float
LongitudeDeviation
;
64
float
AltitudeDeviation
;
65
66
float
LatitudeBias
;
67
float
LongitudeBias
;
68
float
AltitudeBias
;
69
};
GeoLocation.h
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
AGnssSensor::CurrentGeoReference
carla::geom::GeoLocation CurrentGeoReference
Definition:
GnssSensor.h:60
ASensor
Base class for sensors.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h:23
Sensor.h
AGnssSensor::LatitudeDeviation
float LatitudeDeviation
Definition:
GnssSensor.h:62
AGnssSensor::LongitudeBias
float LongitudeBias
Definition:
GnssSensor.h:67
ActorDefinition.h
AGnssSensor::AltitudeDeviation
float AltitudeDeviation
Definition:
GnssSensor.h:64
enable-ue4-macros.h
FActorDescription
A description of a Carla Actor with all its variation.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorDescription.h:15
AGnssSensor
Gnss sensor representation The actual position calculation is done one server side.
Definition:
GnssSensor.h:23
disable-ue4-macros.h
AGnssSensor::AltitudeBias
float AltitudeBias
Definition:
GnssSensor.h:68
AGnssSensor::LongitudeDeviation
float LongitudeDeviation
Definition:
GnssSensor.h:63
AGnssSensor::LatitudeBias
float LatitudeBias
Definition:
GnssSensor.h:66
carla::geom::GeoLocation
Definition:
GeoLocation.h:16
Generated by
1.8.13