CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
LibCarla/source/carla/rpc/EnvironmentObject.h
浏览该文件的文档.
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
21
struct
EnvironmentObject
{
22
Transform
transform
;
23
geom::BoundingBox
bounding_box
;
24
uint64_t
id
= 0;
25
std::string
name
;
26
CityObjectLabel
type
=
CityObjectLabel::None
;
27
28
#ifdef LIBCARLA_INCLUDED_FROM_UE4
29
30
EnvironmentObject
(
const
FEnvironmentObject
&
EnvironmentObject
)
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
CarlaRecorderPacketId::BoundingBox
@ BoundingBox
BoundingBox.h
MsgPack.h
ObjectLabel.h
carla::geom::BoundingBox
Definition
LibCarla/source/carla/geom/BoundingBox.h:26
carla::geom::Transform
Definition
geom/Transform.h:23
carla::rpc::CityObjectLabel
CityObjectLabel
Definition
ObjectLabel.h:16
carla::rpc::CityObjectLabel::None
@ None
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
Transform.h
FEnvironmentObject
Definition
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Util/EnvironmentObject.h:33
carla::rpc::EnvironmentObject
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:21
carla::rpc::EnvironmentObject::EnvironmentObject
EnvironmentObject(const FEnvironmentObject &EnvironmentObject)
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:30
carla::rpc::EnvironmentObject::type
CityObjectLabel type
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:26
carla::rpc::EnvironmentObject::name
std::string name
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:25
carla::rpc::EnvironmentObject::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(transform, bounding_box, id, name, type)
carla::rpc::EnvironmentObject::bounding_box
geom::BoundingBox bounding_box
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:23
carla::rpc::EnvironmentObject::id
uint64_t id
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:24
carla::rpc::EnvironmentObject::transform
Transform transform
Definition
LibCarla/source/carla/rpc/EnvironmentObject.h:22
制作者
1.10.0