CARLA
Walker.h
Go to the documentation of this file.
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 
9 #include "carla/client/Actor.h"
13 
14 namespace carla {
15 namespace 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.
33  Control GetWalkerControl() const;
34 
36  void SetBonesTransform(const BoneControlIn &bones);
37  void BlendPose(float blend);
38  void ShowPose() { BlendPose(1.0f); };
39  void HidePose() { BlendPose(0.0f); };
40  void GetPoseFromAnimation();
41 
42  private:
43 
45  };
46 
47 } // namespace client
48 } // namespace carla
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
void GetPoseFromAnimation()
Definition: Walker.cpp:37
Used to initialize Actor classes.
void BlendPose(float blend)
Definition: Walker.cpp:33
BoneControlOut GetBonesTransform()
Definition: Walker.cpp:25
Walker(ActorInitializer init)
Definition: Walker.h:24
Control GetWalkerControl() const
Return the control last applied to this Walker.
Definition: Walker.cpp:21
Represents an actor in the simulation.
Definition: client/Actor.h:18
Control _control
Definition: Walker.h:44
void ApplyControl(const Control &control)
Apply control to this Walker.
Definition: Walker.cpp:14