Merge branch 'nestor' into dev
This commit is contained in:
commit
9a189d8d25
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "ModuleManager.h"
|
||||
|
||||
#include "NonCopyable.h"
|
||||
#include "Util/NonCopyable.h"
|
||||
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogCarla, Log, All);
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogCarlaServer, Log, All);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "Carla.h"
|
||||
#include "DynamicWeather.h"
|
||||
|
||||
#include "IniFile.h"
|
||||
#include "Util/IniFile.h"
|
||||
|
||||
#include "Components/ArrowComponent.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "CommandLine.h"
|
||||
#include "DynamicWeather.h"
|
||||
#include "IniFile.h"
|
||||
#include "Util/IniFile.h"
|
||||
|
||||
// INI file sections.
|
||||
#define S_CARLA_SERVER TEXT("CARLA/Server")
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "GraphTypes.h"
|
||||
#include "ListView.h"
|
||||
#include "Position.h"
|
||||
#include "Util/ListView.h"
|
||||
|
||||
#include <array>
|
||||
#include <list>
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
// CARLA, Copyright (C) 2017 Computer Vision Center (CVC)
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace MapGen {
|
||||
|
||||
template<typename IT>
|
||||
class CARLA_API ListView
|
||||
{
|
||||
public:
|
||||
|
||||
using iterator = IT;
|
||||
|
||||
explicit ListView(iterator begin, iterator end) : Begin(begin), End(end) {}
|
||||
|
||||
template <typename STL_CONTAINER>
|
||||
explicit ListView(STL_CONTAINER &StlContainer) :
|
||||
Begin(iterator(StlContainer.begin())),
|
||||
End(iterator(StlContainer.end())) {}
|
||||
|
||||
ListView(const ListView &) = default;
|
||||
ListView &operator=(const ListView &) = delete;
|
||||
|
||||
iterator begin() const {
|
||||
return Begin;
|
||||
}
|
||||
|
||||
iterator end() const {
|
||||
return End;
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return Begin == End;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
const iterator Begin;
|
||||
|
||||
const iterator End;
|
||||
};
|
||||
|
||||
} // namespace MapGen
|
|
@ -14,9 +14,9 @@
|
|||
|
||||
#define LOCTEXT_NAMESPACE "CarlaRoadMap"
|
||||
|
||||
/// ============================================================================
|
||||
/// -- Static local methods ----------------------------------------------------
|
||||
/// ============================================================================
|
||||
// =============================================================================
|
||||
// -- Static local methods -----------------------------------------------------
|
||||
// =============================================================================
|
||||
|
||||
static uint32 ClampFloatToUInt(const float Value, int32 Min, int32 Max)
|
||||
{
|
||||
|
@ -31,9 +31,9 @@ static float GetRotatedAzimuthAngle(const FVector &Direction)
|
|||
return SphericalCoords.Y + PI;
|
||||
}
|
||||
|
||||
/// ============================================================================
|
||||
/// -- FRoadMapPixelData -------------------------------------------------------
|
||||
/// ============================================================================
|
||||
// =============================================================================
|
||||
// -- FRoadMapPixelData --------------------------------------------------------
|
||||
// =============================================================================
|
||||
|
||||
uint16 FRoadMapPixelData::Encode(bool IsRoad, bool HasDirection, const FVector &Direction)
|
||||
{
|
||||
|
@ -58,9 +58,9 @@ FColor FRoadMapPixelData::EncodeAsColor() const
|
|||
}
|
||||
}
|
||||
|
||||
/// ============================================================================
|
||||
/// -- URoadMap ----------------------------------------------------------------
|
||||
/// ============================================================================
|
||||
// =============================================================================
|
||||
// -- URoadMap -----------------------------------------------------------------
|
||||
// =============================================================================
|
||||
|
||||
URoadMap::URoadMap(const FObjectInitializer& ObjectInitializer) :
|
||||
Super(ObjectInitializer),
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "GraphTypes.h"
|
||||
#include "NonCopyable.h"
|
||||
#include "Util/NonCopyable.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
// CARLA, Copyright (C) 2017 Computer Vision Center (CVC)
|
||||
|
||||
#pragma once
|
||||
|
||||
template<typename IT>
|
||||
class CARLA_API ListView
|
||||
{
|
||||
public:
|
||||
|
||||
using iterator = IT;
|
||||
|
||||
explicit ListView(iterator begin, iterator end) : Begin(begin), End(end) {}
|
||||
|
||||
template <typename STL_CONTAINER>
|
||||
explicit ListView(STL_CONTAINER &StlContainer) :
|
||||
Begin(iterator(StlContainer.begin())),
|
||||
End(iterator(StlContainer.end())) {}
|
||||
|
||||
ListView(const ListView &) = default;
|
||||
ListView &operator=(const ListView &) = delete;
|
||||
|
||||
iterator begin() const {
|
||||
return Begin;
|
||||
}
|
||||
|
||||
iterator end() const {
|
||||
return End;
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return Begin == End;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
const iterator Begin;
|
||||
|
||||
const iterator End;
|
||||
};
|
|
@ -7,5 +7,5 @@ public:
|
|||
|
||||
NonCopyable(const NonCopyable &) = delete;
|
||||
|
||||
void operator=(const NonCopyable &x) = delete;
|
||||
void operator=(const NonCopyable &) = delete;
|
||||
};
|
|
@ -3,7 +3,7 @@
|
|||
#include "Carla.h"
|
||||
#include "WeatherDescription.h"
|
||||
|
||||
#include "IniFile.h"
|
||||
#include "Util/IniFile.h"
|
||||
|
||||
static FString PrecipitationTypeToString(EPrecipitationType PrecipitationType)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue