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