Noah 590c2ddccd Updates to data
2025-05-02 09:25:36 -04:00

88 lines
2.0 KiB
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "HAL/Runnable.h"
#include "ObservationData.generated.h"
/**
*
*/
USTRUCT(BlueprintType)
struct FImageShape
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Observation")
float image_width = 640.f;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Observation")
float image_height = 480.f;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Observation")
int32 channel = 3;
};
USTRUCT(BlueprintType)
struct FObservationCameraInfo
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(BlueprintReadWrite, Category = "Observation")
TMap<FString, FString> info = {
{"video_fps", "30"},
{"video_codec", "mp4v"},
{"video_pix_fmt", "yuv420p"},
{"video_is_depth_map", "false"},
{"has_audio", "false"}
};
};
USTRUCT(BlueprintType)
struct FObservationCameraObject
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString cameraName = TEXT("front_camera");
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString dtype = TEXT("image");
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FImageShape shape = FImageShape();
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString filePath = FString();
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString timeStamp = FString();
};
USTRUCT(BlueprintType)
struct FObservationPayload
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString type = FString();
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString request_id = FString();
UPROPERTY(BlueprintReadWrite, Category = "Observation")
FString timeStamp = FString();
UPROPERTY(BlueprintReadWrite, Category = "Observation")
TMap<FString, float> ObservationState;
UPROPERTY(BlueprintReadWrite, Category = "Observation")
TArray<FObservationCameraObject> ObservationCameras;
};