CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
client
detail
ActorVariant.cpp
浏览该文件的文档.
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
ActorFactory.h
ActorList.h
ActorVariant.h
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::client::detail::ActorVariant::MakeActor
void MakeActor(EpisodeProxy episode) const
Definition
ActorVariant.cpp:16
carla::client::detail::ActorVariant::_value
boost::variant2::variant< rpc::Actor, SharedPtr< client::Actor > > _value
Definition
ActorVariant.h:94
carla::client::detail::EpisodeProxyImpl< EpisodeProxyPointerType::Strong >
carla::client::GarbageCollectionPolicy::Disabled
@ Disabled
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0