CARLA
ActorVariant.cpp
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 
8 
10 #include "carla/client/ActorList.h"
11 
12 namespace carla {
13 namespace client {
14 namespace detail {
15 
16  void ActorVariant::MakeActor(EpisodeProxy episode) const {
18  episode,
19  boost::variant2::get<rpc::Actor>(std::move(_value)),
21  }
22 
23 } // namespace detail
24 } // namespace client
25 } // namespace carla
void MakeActor(EpisodeProxy episode) const
static SharedPtr< Actor > MakeActor(EpisodeProxy episode, rpc::Actor actor_description, GarbageCollectionPolicy garbage_collection_policy)
Create an Actor based on the provided actor_description.
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
boost::variant2::variant< rpc::Actor, SharedPtr< client::Actor > > _value
Definition: ActorVariant.h:94