|
RapyutaSimulationPlugins
|
Actor to Generate 2D occupancy map for navigation/localization with LineTraceSingleByChannel. More...
#include <OccupancyMapGenerator.h>


Public Member Functions | |
| AOccupancyMapGenerator () | |
| Construct a new AOccupancyMapGenerator object. More... | |
| bool | WriteToFile (int width, int height, float originx, float originy) |
| Save .pgm and .yaml files. More... | |
Public Attributes | |
| AStaticMeshActor * | Map |
| Generate map to cover bounding box of this actor. Please select actor such as ground plane. More... | |
| float | GridRes = 0.05 |
| [m/pixel] More... | |
| float | MaxVerticalHeight = 10 |
| [m] More... | |
| FString | Filename = "ue4_map" |
| TArray< uint8 > | OccupancyGrid |
Protected Member Functions | |
| virtual void | BeginPlay () override |
| Generate occupancy map with given paramters and save to files. More... | |
Actor to Generate 2D occupancy map for navigation/localization with LineTraceSingleByChannel.
Generate 2D occupancy map with given parameter and save to file with beginplay.
How to use: Place this actor to the level, set parameters(select Map and max vertical height), and play simulation, then map file will be saved.
| AOccupancyMapGenerator::AOccupancyMapGenerator | ( | ) |
Construct a new AOccupancyMapGenerator object.
|
overrideprotectedvirtual |
Generate occupancy map with given paramters and save to files.
Called when the game starts or when spawned.
| bool AOccupancyMapGenerator::WriteToFile | ( | int | width, |
| int | height, | ||
| float | originx, | ||
| float | originy | ||
| ) |
| FString AOccupancyMapGenerator::Filename = "ue4_map" |
| float AOccupancyMapGenerator::GridRes = 0.05 |
[m/pixel]
| AStaticMeshActor* AOccupancyMapGenerator::Map |
Generate map to cover bounding box of this actor. Please select actor such as ground plane.
| float AOccupancyMapGenerator::MaxVerticalHeight = 10 |
| TArray<uint8> AOccupancyMapGenerator::OccupancyGrid |
1.8.17