Skip to content

Commit

Permalink
Fixed include errors causing package errors on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJansen committed Jul 9, 2024
1 parent 083c6c5 commit 155a4cc
Show file tree
Hide file tree
Showing 23 changed files with 62 additions and 39 deletions.
6 changes: 6 additions & 0 deletions Unreal/Plugins/AirSim/Source/AirBlueprintLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
#include "GameFramework/Actor.h"
#include "Components/InputComponent.h"
#include "EngineUtils.h"
#include "Engine/Blueprint.h"
#include "GameFramework/PlayerInput.h"
#include "IImageWrapperModule.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "AssetRegistry/AssetData.h"
#include "Kismet/KismetMathLibrary.h"
#include "Components/MeshComponent.h"
#include "StaticMeshResources.h"
#include "Rendering/PositionVertexBuffer.h"
#include "LandscapeProxy.h"
#include "Kismet/GameplayStatics.h"
#include "Kismet/KismetStringLibrary.h"
Expand All @@ -21,6 +25,8 @@
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "Runtime/Core/Public/HAL/FileManager.h"
#include "common/AirSimSettings.hpp"
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
#include <string>
#include <regex>
#include "AirBlueprintLib.generated.h"
Expand Down
3 changes: 3 additions & 0 deletions Unreal/Plugins/AirSim/Source/Annotation/AnnotationComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
// Licensed under the MIT License.
#pragma once

#include "Materials/MaterialInterface.h"
#include "Engine/Texture2D.h"
#include "Materials/MaterialInstanceDynamic.h"
#include "Runtime/Engine/Classes/Components/StaticMeshComponent.h"
#include "Runtime/Engine/Public/SkeletalRenderPublic.h"

Expand Down
7 changes: 7 additions & 0 deletions Unreal/Plugins/AirSim/Source/Annotation/ObjectAnnotator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

#include <vector>
#include <string>
#include "Components/MeshComponent.h"
#include "Components/SceneComponent.h"
#include "UObject/ObjectMacros.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "ShowFlags.h"
#include "UObject/ScriptMacros.h"
#include "Runtime/Engine/Classes/GameFramework/Actor.h"

class FColorGenerator
Expand Down
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/Beacons/DynamicBlockBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "AirLib/include/common/AirSimSettings.hpp"

#include "DynamicBlockBeacon.generated.h"
Expand Down
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/Beacons/DynamicRackBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "AirLib/include/common/AirSimSettings.hpp"

#include "DynamicRackBeacon.generated.h"
Expand Down
5 changes: 5 additions & 0 deletions Unreal/Plugins/AirSim/Source/Beacons/FiducialBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#pragma once

#include "CoreMinimal.h"
#include "Materials/Material.h"
#include "Materials/MaterialInstanceDynamic.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "Engine/Texture2D.h"
#include "GameFramework/Actor.h"
#include "FiducialBeacon.generated.h"

Expand Down
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/Beacons/TemplateBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "AirLib/include/common/AirSimSettings.hpp"

#include "TemplateBeacon.generated.h"
Expand Down
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/Beacons/UWBBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "UWBBeacon.generated.h"

UCLASS()
Expand Down
3 changes: 2 additions & 1 deletion Unreal/Plugins/AirSim/Source/Beacons/WifiBeacon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "AirLib/include/common/AirSimSettings.hpp"

#include "WifiBeacon.generated.h"


Expand Down
8 changes: 8 additions & 0 deletions Unreal/Plugins/AirSim/Source/DetectionComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
#pragma once

#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "GameFramework/Actor.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Components/MeshComponent.h"
#include "Components/ActorComponent.h"
#include "Components/SceneComponent.h"
#include "TextureResource.h"
#include "Components/SceneCaptureComponent2D.h"
#include "Components/SkinnedMeshComponent.h"
#include "ObjectFilter.h"
#include <string>
#include "DetectionComponent.generated.h"
Expand Down
7 changes: 6 additions & 1 deletion Unreal/Plugins/AirSim/Source/LidarCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
#include "Containers/Queue.h"
#include "RHIGPUReadback.h"
#include "common/WorkerThread.hpp"
#include "Components/SceneCaptureComponent2D.h"
#include "UObject/ObjectMacros.h"
#include "GameFramework/Actor.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Components/ArrowComponent.h"
#include "Components/StaticMeshComponent.h"
#include "Components/SceneCaptureComponent2D.h"
#include "Components/SkinnedMeshComponent.h"
#include "Camera/CameraActor.h"
#include "Materials/Material.h"
#include "Runtime/Core/Public/PixelFormat.h"
#include "TextureResource.h"
#include "common/AirSimSettings.hpp"
#include "AirBlueprintLib.h"
#include "sensors/lidar/GPULidarSimple.hpp"
Expand Down
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/PIPCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "Annotation/ObjectAnnotator.h"
#include "common/ImageCaptureBase.hpp"
#include "common/common_utils/Utils.hpp"
#include "Components/StaticMeshComponent.h"
#include <Engine/StaticMesh.h>
#include "common/AirSimSettings.hpp"
#include "NedTransform.h"
#include "DetectionComponent.h"
Expand Down
1 change: 1 addition & 0 deletions Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>
#include "AirSimCameraDirector.h"
#include "common/AirSimSettings.hpp"
#include "AssetRegistry/AssetData.h"
#include "common/ClockFactory.hpp"
#include "api/ApiServerBase.hpp"
#include "api/ApiProvider.hpp"
Expand Down
1 change: 1 addition & 0 deletions Unreal/Plugins/AirSim/Source/SimMode/SimModeWorldBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vector>
#include "Kismet/KismetSystemLibrary.h"
#include "api/VehicleSimApiBase.hpp"
#include "AssetRegistry/AssetData.h"
#include "physics/PhysicsEngineBase.hpp"
#include "physics/World.hpp"
#include "physics/PhysicsWorld.hpp"
Expand Down
8 changes: 8 additions & 0 deletions Unreal/Plugins/AirSim/Source/TextureShuffleActor.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

#include "CoreMinimal.h"
#include "Materials/Material.h"
#include "UObject/ObjectMacros.h"
#include "GameFramework/Actor.h"
#include "PhysicalMaterials/PhysicalMaterial.h"
#include "Materials/MaterialInterface.h"
#include "Materials/MaterialInstanceDynamic.h"
#include "Engine/Texture2D.h"
#include "Components/StaticMeshComponent.h"
#include "Engine/TextureRenderTarget2D.h"
#include "common/common_utils/Utils.hpp"
#include "common/AirSimSettings.hpp"
#include "Engine/StaticMeshActor.h"
Expand Down
1 change: 1 addition & 0 deletions Unreal/Plugins/AirSim/Source/UnrealImageCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "CoreMinimal.h"
#include "PIPCamera.h"
#include "UnrealClient.h"
#include "common/ImageCaptureBase.hpp"
#include "common/common_utils/UniqueValueMap.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "UnrealEchoSensor.h"
#include "AirBlueprintLib.h"
#include "common/Common.hpp"
#include "Async/ParallelFor.h"
#include "NedTransform.h"
#include "DrawDebugHelpers.h"
#include "EngineUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "UnrealLidarSensor.h"
#include "AirBlueprintLib.h"
#include "common/Common.hpp"
#include "Async/ParallelFor.h"
#include "NedTransform.h"
#include "DrawDebugHelpers.h"
#include "Engine/Engine.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,6 @@ void ASimModeComputerVision::initializePauseState()
pause(false);
}

bool ASimModeComputerVision::isPaused() const
{
return current_clockspeed_ == 0;
}

void ASimModeComputerVision::pause(bool is_paused)
{
if (is_paused)
current_clockspeed_ = 0;
else
current_clockspeed_ = getSettings().clock_speed;

UAirBlueprintLib::setUnrealClockSpeed(this, current_clockspeed_);
}

void ASimModeComputerVision::continueForTime(double seconds)
{
pause_period_start_ = ClockFactory::get()->nowNanos();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

#include "CoreMinimal.h"

#include "SimMode/SimModeBase.h"
#include "ComputerVisionPawn.h"
#include "common/Common.hpp"
#include "ComputerVisionPawnSimApi.h"
#include "api/VehicleSimApiBase.hpp"
#include "SimMode/SimModeBase.h"

#include "SimModeComputerVision.generated.h"


Expand All @@ -19,8 +17,6 @@ class AIRSIM_API ASimModeComputerVision : public ASimModeBase
virtual void BeginPlay() override;
virtual void Tick(float DeltaSeconds) override;

virtual bool isPaused() const override;
virtual void pause(bool is_paused) override;
virtual void continueForTime(double seconds) override;
virtual void continueForFrames(uint32_t frames) override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ void ASimModeSkidVehicle::initializePauseState()
pause(false);
}

bool ASimModeSkidVehicle::isPaused() const
{
return current_clockspeed_ == 0;
}

void ASimModeSkidVehicle::pause(bool is_paused)
{
if (is_paused)
current_clockspeed_ = 0;
else
current_clockspeed_ = getSettings().clock_speed;

UAirBlueprintLib::setUnrealClockSpeed(this, current_clockspeed_);
}

void ASimModeSkidVehicle::continueForTime(double seconds)
{
pause_period_start_ = ClockFactory::get()->nowNanos();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class AIRSIM_API ASimModeSkidVehicle : public ASimModeBase
virtual void BeginPlay() override;
virtual void Tick(float DeltaSeconds) override;

virtual bool isPaused() const override;
virtual void pause(bool is_paused) override;
virtual void continueForTime(double seconds) override;
virtual void continueForFrames(uint32_t frames) override;

Expand Down
1 change: 1 addition & 0 deletions Unreal/Plugins/AirSim/Source/WorldSimApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "api/WorldSimApiBase.hpp"
#include "SimMode/SimModeBase.h"
#include "Components/StaticMeshComponent.h"
#include "AssetRegistry/AssetData.h"
#include "Runtime/Engine/Classes/Engine/StaticMesh.h"
#include <string>

Expand Down

0 comments on commit 155a4cc

Please sign in to comment.