CARLA
Carla.h
Go to the documentation of this file.
1 // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
2 
3 // This file is included before any other file in every compile unit within the
4 // plugin.
5 #pragma once
6 
7 
8 #include "Util/NonCopyable.h"
9 #include "Logging/LogMacros.h"
10 #include "Modules/ModuleInterface.h"
11 
12 DECLARE_LOG_CATEGORY_EXTERN(LogCarla, Log, All);
13 DECLARE_LOG_CATEGORY_EXTERN(LogCarlaServer, Log, All);
14 
15 // DisplayName, GroupName, Third param is always Advanced.
16 // DECLARE_STATS_GROUP(TEXT("Carla"), STATGROUP_Carla, STATCAT_Advanced);
17 DECLARE_STATS_GROUP(TEXT("CarlaSensor"), STATGROUP_CarlaSensor, STATCAT_Advanced);
18 
19 //DECLARE_MEMORY_STAT(TEXT("CARLAMEMORY"), STATGROUP_CARLAMEMORY, STATCAT_Advanced)
20 
21 DECLARE_CYCLE_STAT(TEXT("Read RT"), STAT_CarlaSensorReadRT, STATGROUP_CarlaSensor);
22 DECLARE_CYCLE_STAT(TEXT("Copy Text"), STAT_CarlaSensorCopyText, STATGROUP_CarlaSensor);
23 DECLARE_CYCLE_STAT(TEXT("Buffer Copy"), STAT_CarlaSensorBufferCopy, STATGROUP_CarlaSensor);
24 DECLARE_CYCLE_STAT(TEXT("Stream Send"), STAT_CarlaSensorStreamSend, STATGROUP_CarlaSensor);
25 
26 // Options to compile with extra debug log.
27 #if WITH_EDITOR
28 // #define CARLA_AI_VEHICLES_EXTRA_LOG
29 // #define CARLA_AI_WALKERS_EXTRA_LOG
30 // #define CARLA_ROAD_GENERATOR_EXTRA_LOG
31 // #define CARLA_SERVER_EXTRA_LOG
32 // #define CARLA_TAGGER_EXTRA_LOG
33 // #define CARLA_WEATHER_EXTRA_LOG
34 #endif // WITH_EDITOR
35 
37 {
38  void RegisterSettings();
39  void UnregisterSettings();
40  bool HandleSettingsSaved();
41  void LoadChronoDll();
42 
43 public:
44 
45  /** IModuleInterface implementation */
46  virtual void StartupModule() override;
47  virtual void ShutdownModule() override;
48 
49 };
void UnregisterSettings()
Definition: Carla.cpp:92
virtual void StartupModule() override
IModuleInterface implementation.
Definition: Carla.cpp:14
bool HandleSettingsSaved()
Definition: Carla.cpp:103
DECLARE_STATS_GROUP(TEXT("CarlaSensor"), STATGROUP_CarlaSensor, STATCAT_Advanced)
DECLARE_CYCLE_STAT(TEXT("Read RT"), STAT_CarlaSensorReadRT, STATGROUP_CarlaSensor)
void LoadChronoDll()
Definition: Carla.cpp:20
virtual void ShutdownModule() override
Definition: Carla.cpp:53
void RegisterSettings()
Definition: Carla.cpp:61
DECLARE_LOG_CATEGORY_EXTERN(LogCarla, Log, All)