CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderEventAdd.h
浏览该文件的文档.
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 <sstream>
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::istream &InFile);
35 void Write(std::ostream &OutFile) const;
36};
37
39{
40
41 public:
42 void Add(const CarlaRecorderEventAdd &Event);
43 void Clear(void);
44 void Write(std::ostream &OutFile);
45 void Read(std::istream &InFile);
46 const std::vector<CarlaRecorderEventAdd>& GetEvents();
47
48 private:
49 std::vector<CarlaRecorderEventAdd> Events;
50};
std::vector< CarlaRecorderEventAdd > Events
void Add(const CarlaRecorderEventAdd &Event)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
const std::vector< CarlaRecorderEventAdd > & GetEvents()
std::vector< CarlaRecorderActorAttribute > Attributes
void Write(std::ostream &OutFile) const
void Read(std::istream &InFile)
CarlaRecorderActorDescription Description