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"
12 
13 namespace carla {
14 namespace client {
15 
16  class Walker : public Actor {
17  public:
18 
21 
22  explicit Walker(ActorInitializer init) : Actor(std::move(init)) {}
23 
24  /// Apply @a control to this Walker.
25  void ApplyControl(const Control &control);
26 
27  void ApplyControl(const BoneControl &bone_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 
35  private:
36 
38  };
39 
40 } // namespace client
41 } // namespace carla
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:99
Used to initialize Actor classes.
Definition: ActorState.h:93
Walker(ActorInitializer init)
Definition: Walker.h:22
Control GetWalkerControl() const
Return the control last applied to this Walker.
Definition: Walker.cpp:25
Represents an actor in the simulation.
Definition: client/Actor.h:18
Control _control
Definition: Walker.h:37
void ApplyControl(const Control &control)
Apply control to this Walker.
Definition: Walker.cpp:14