CARLA
 
载入中...
搜索中...
未找到
Walker.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
13
14namespace carla {
15namespace client {
16
17 class Walker : public Actor {
18 public:
19
23
24 explicit Walker(ActorInitializer init) : Actor(std::move(init)) {}
25
26 /// Apply @a control to this Walker.
27 void ApplyControl(const Control &control);
28
29 /// Return the control last applied to this Walker.
30 ///
31 /// @note This function does not call the simulator, it returns the Control
32 /// received in the last tick.
34
36 void SetBonesTransform(const BoneControlIn &bones);
37 void BlendPose(float blend);
38 void ShowPose() { BlendPose(1.0f); };
39 void HidePose() { BlendPose(0.0f); };
41
42 private:
43
45 };
46
47} // namespace client
48} // namespace carla
Used to initialize Actor classes.
Represents an actor in the simulation.
rpc::WalkerControl Control
Definition Walker.h:20
Walker(ActorInitializer init)
Definition Walker.h:24
void BlendPose(float blend)
Definition Walker.cpp:33
void GetPoseFromAnimation()
Definition Walker.cpp:37
Control GetWalkerControl() const
Return the control last applied to this Walker.
Definition Walker.cpp:21
rpc::WalkerBoneControlIn BoneControlIn
Definition Walker.h:21
void ApplyControl(const Control &control)
Apply control to this Walker.
Definition Walker.cpp:14
rpc::WalkerBoneControlOut BoneControlOut
Definition Walker.h:22
BoneControlOut GetBonesTransform()
Definition Walker.cpp:25
void SetBonesTransform(const BoneControlIn &bones)
Definition Walker.cpp:29
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133