#include <ActorFactory.h>
静态 Public 成员函数 | |
static SharedPtr< Actor > | MakeActor (EpisodeProxy episode, rpc::Actor actor_description, GarbageCollectionPolicy garbage_collection_policy) |
Create an Actor based on the provided actor_description. | |
在文件 ActorFactory.h 第 21 行定义.
|
static |
Create an Actor based on the provided actor_description.
episode must point to the episode in which the actor is living.
Do not call this class directly, use Simulator::MakeActor.
If garbage_collection_policy is GarbageCollectionPolicy::Enabled, the shared pointer returned is provided with a custom deleter that calls Destroy() on the actor.
在文件 ActorFactory.cpp 第 73 行定义.
引用了 carla::rpc::Actor::description, carla::rpc::Actor::HasAStream(), carla::rpc::ActorDescription::id , 以及 carla::StringUtil::StartsWith().
被这些函数引用 carla::client::detail::ActorVariant::MakeActor(), carla::client::detail::Simulator::MakeActor() , 以及 carla::client::detail::Simulator::SpawnActor().