CARLA
CarlaRecorderEventAdd.h
Go to the documentation of this file.
1 // Copyright (c) 2017 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 
13 {
14  uint8_t Type; // EActorAttributeType
15  FString Id; // string
16  FString Value; // string
17 };
18 
20 {
21  uint32_t UId;
22  FString Id; // string
23  std::vector<CarlaRecorderActorAttribute> Attributes;
24 };
25 
27 {
28  uint32_t DatabaseId;
29  uint8_t Type;
30  FVector Location;
31  FVector Rotation;
33 
34  void Read(std::ifstream &InFile);
35  void Write(std::ofstream &OutFile) const;
36 };
37 
39 {
40 
41  public:
42  void Add(const CarlaRecorderEventAdd &Event);
43  void Clear(void);
44  void Write(std::ofstream &OutFile);
45 
46  private:
47  std::vector<CarlaRecorderEventAdd> Events;
48 };
std::vector< CarlaRecorderEventAdd > Events
std::vector< CarlaRecorderActorAttribute > Attributes
CarlaRecorderActorDescription Description