CARLA
 
载入中...
搜索中...
未找到
Carla.h
浏览该文件的文档.
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
13DECLARE_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);
17DECLARE_STATS_GROUP(TEXT("CarlaSensor"), STATGROUP_CarlaSensor, STATCAT_Advanced);
18
19//DECLARE_MEMORY_STAT(TEXT("CARLAMEMORY"), STATGROUP_CARLAMEMORY, STATCAT_Advanced)
20
21DECLARE_CYCLE_STAT(TEXT("Read RT"), STAT_CarlaSensorReadRT, STATGROUP_CarlaSensor);
22DECLARE_CYCLE_STAT(TEXT("Copy Text"), STAT_CarlaSensorCopyText, STATGROUP_CarlaSensor);
23DECLARE_CYCLE_STAT(TEXT("Buffer Copy"), STAT_CarlaSensorBufferCopy, STATGROUP_CarlaSensor);
24DECLARE_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();
41 void LoadChronoDll();
42
43public:
44
45 /** IModuleInterface implementation */
46 virtual void StartupModule() override;
47 virtual void ShutdownModule() override;
48
49};
DECLARE_CYCLE_STAT(TEXT("Read RT"), STAT_CarlaSensorReadRT, STATGROUP_CarlaSensor)
DECLARE_STATS_GROUP(TEXT("CarlaSensor"), STATGROUP_CarlaSensor, STATCAT_Advanced)
DECLARE_LOG_CATEGORY_EXTERN(LogCarla, Log, All)
void RegisterSettings()
Definition Carla.cpp:61
void UnregisterSettings()
Definition Carla.cpp:92
virtual void ShutdownModule() override
Definition Carla.cpp:53
void LoadChronoDll()
Definition Carla.cpp:20
virtual void StartupModule() override
IModuleInterface implementation
Definition Carla.cpp:14
bool HandleSettingsSaved()
Definition Carla.cpp:103