CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
LibCarla/source/carla/rpc/WalkerBoneControlIn.h
浏览该文件的文档.
1
// Copyright (c) 2019 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
#include "
carla/rpc/BoneTransformDataIn.h
"
11
#include "
carla/rpc/String.h
"
12
#include "
carla/rpc/Transform.h
"
13
14
#ifdef LIBCARLA_INCLUDED_FROM_UE4
15
#include <
compiler/enable-ue4-macros.h
>
16
#include "
Carla/Walker/WalkerBoneControlIn.h
"
17
#include <
compiler/disable-ue4-macros.h
>
18
#endif
// LIBCARLA_INCLUDED_FROM_UE4
19
20
#include <vector>
21
22
namespace
carla
{
23
namespace
rpc {
24
25
class
WalkerBoneControlIn
{
26
public
:
27
28
WalkerBoneControlIn
() =
default
;
29
30
explicit
WalkerBoneControlIn
(
31
std::vector<rpc::BoneTransformDataIn>
bone_transforms
)
32
:
bone_transforms
(
bone_transforms
) {}
33
34
#ifdef LIBCARLA_INCLUDED_FROM_UE4
35
36
operator
FWalkerBoneControlIn
()
const
{
37
FWalkerBoneControlIn
Control;
38
for
(
auto
&bone_transform :
bone_transforms
) {
39
Control.
BoneTransforms
.Add(ToFString(bone_transform.first), bone_transform.second);
40
}
41
return
Control;
42
}
43
44
#endif
// LIBCARLA_INCLUDED_FROM_UE4
45
46
std::vector<rpc::BoneTransformDataIn>
bone_transforms
;
47
48
MSGPACK_DEFINE_ARRAY
(
bone_transforms
);
49
};
50
51
}
// namespace rpc
52
}
// namespace carla
BoneTransformDataIn.h
MsgPack.h
WalkerBoneControlIn.h
carla::rpc::WalkerBoneControlIn
Definition
LibCarla/source/carla/rpc/WalkerBoneControlIn.h:25
carla::rpc::WalkerBoneControlIn::bone_transforms
std::vector< rpc::BoneTransformDataIn > bone_transforms
Definition
LibCarla/source/carla/rpc/WalkerBoneControlIn.h:46
carla::rpc::WalkerBoneControlIn::WalkerBoneControlIn
WalkerBoneControlIn(std::vector< rpc::BoneTransformDataIn > bone_transforms)
Definition
LibCarla/source/carla/rpc/WalkerBoneControlIn.h:30
carla::rpc::WalkerBoneControlIn::WalkerBoneControlIn
WalkerBoneControlIn()=default
carla::rpc::WalkerBoneControlIn::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(bone_transforms)
disable-ue4-macros.h
enable-ue4-macros.h
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
String.h
Transform.h
FWalkerBoneControlIn
Definition
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Walker/WalkerBoneControlIn.h:13
FWalkerBoneControlIn::BoneTransforms
TMap< FString, FTransform > BoneTransforms
Definition
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Walker/WalkerBoneControlIn.h:17
制作者
1.10.0