RapyutaSimulationPlugins
OccupancyMapGenerator.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 #include "CoreMinimal.h"
18 
19 #include "Engine/StaticMeshActor.h"
20 
21 #include "GameFramework/Actor.h"
22 
23 
24 
25 #include "OccupancyMapGenerator.generated.h"
26 
27 
28 
46 class RAPYUTASIMULATIONPLUGINS_API AOccupancyMapGenerator : public AActor
47 
48 {
49 
50 
51 
52 public:
53 
63 
64 
65 
66 protected:
67 
76  virtual void BeginPlay() override;
77 
78 
79 
80 public:
81 
83 
84 
89  AStaticMeshActor* Map;
90 
91 
92 
94 
95 
100  float GridRes = 0.05;
101 
102 
103 
105 
106 
111  float MaxVerticalHeight = 10; // [m]
112 
113 
114 
115 
120  FString Filename = "ue4_map";
121 
122 
123 
124 
129  TArray<uint8> OccupancyGrid;
130 
131 
132 
133 
158  bool WriteToFile(int width, int height, float originx, float originy);
159 
160 };
161 
AOccupancyMapGenerator::OccupancyGrid
TArray< uint8 > OccupancyGrid
Definition: OccupancyMapGenerator.h:129
AOccupancyMapGenerator::Map
AStaticMeshActor * Map
Generate map to cover bounding box of this actor. Please select actor such as ground plane.
Definition: OccupancyMapGenerator.h:89
AOccupancyMapGenerator
Actor to Generate 2D occupancy map for navigation/localization with LineTraceSingleByChannel.
Definition: OccupancyMapGenerator.h:46