CARLA
LibCarla/source/carla/rpc/EnvironmentObject.h
Go to the documentation of this file.
1 // Copyright (c) 2020 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 "carla/MsgPack.h"
10 
11 #include <cstdint>
12 
13 #include "carla/geom/BoundingBox.h"
14 #include "carla/rpc/Transform.h"
15 #include "carla/rpc/ObjectLabel.h"
16 
17 namespace carla {
18 namespace rpc {
19 
20  // Name is under discussion
24  uint64_t id = 0;
25  std::string name;
27 
28 #ifdef LIBCARLA_INCLUDED_FROM_UE4
29 
31  : transform(EnvironmentObject.Transform),
32  bounding_box(EnvironmentObject.BoundingBox),
33  id(EnvironmentObject.Id),
34  name(TCHAR_TO_UTF8(*EnvironmentObject.Name)),
35  type(EnvironmentObject.ObjectLabel) {}
36 
37 #endif // LIBCARLA_INCLUDED_FROM_UE4
38 
39  MSGPACK_DEFINE_ARRAY(transform, bounding_box, id, name, type);
40  };
41 
42 } // namespace rpc
43 } // namespace carla
44 
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:99
MSGPACK_DEFINE_ARRAY(transform, bounding_box, id, name, type)