CARLA
 
载入中...
搜索中...
未找到
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"
11#include "carla/rpc/String.h"
12#include "carla/rpc/Transform.h"
13
14#ifdef LIBCARLA_INCLUDED_FROM_UE4
18#endif // LIBCARLA_INCLUDED_FROM_UE4
19
20#include <vector>
21
22namespace carla {
23namespace rpc {
24
26 public:
27
29
31 std::vector<rpc::BoneTransformDataIn> bone_transforms)
33
34#ifdef LIBCARLA_INCLUDED_FROM_UE4
35
36 operator FWalkerBoneControlIn() const {
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
49 };
50
51} // namespace rpc
52} // namespace carla
std::vector< rpc::BoneTransformDataIn > bone_transforms
WalkerBoneControlIn(std::vector< rpc::BoneTransformDataIn > bone_transforms)
MSGPACK_DEFINE_ARRAY(bone_transforms)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133