CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderWalkerBones.h
浏览该文件的文档.
1// Copyright (c) 2021 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <fstream>
10#include <vector>
11
12#pragma pack(push, 1)
14{
15 FString Name;
16 FVector Location;
17 FVector Rotation;
18
19 CarlaRecorderWalkerBone(FString &InName, FVector &InLocation, FVector &InRotation) :
20 Name(InName), Location(InLocation), Rotation(InRotation) {}
21};
22
24{
25 uint32_t DatabaseId;
26 std::vector<CarlaRecorderWalkerBone> Bones;
27
28 void Read(std::ifstream &InFile);
29
30 void Write(std::ofstream &OutFile);
31
32 void Clear();
33
34};
35#pragma pack(pop)
36
38{
39public:
40
41 void Add(const CarlaRecorderWalkerBones &InObj);
42
43 void Clear(void);
44
45 void Write(std::ofstream &OutFile);
46
47private:
48
49 std::vector<CarlaRecorderWalkerBones> Walkers;
50};
void Write(std::ofstream &OutFile)
std::vector< CarlaRecorderWalkerBones > Walkers
void Add(const CarlaRecorderWalkerBones &InObj)
CarlaRecorderWalkerBone(FString &InName, FVector &InLocation, FVector &InRotation)
void Read(std::ifstream &InFile)
std::vector< CarlaRecorderWalkerBone > Bones
void Write(std::ofstream &OutFile)