#include <ActorFactory.h>
Static Public Member Functions | |
static SharedPtr< Actor > | MakeActor (EpisodeProxy episode, rpc::Actor actor_description, GarbageCollectionPolicy garbage_collection_policy) |
Create an Actor based on the provided actor_description. More... | |
Definition at line 21 of file ActorFactory.h.
|
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.
Definition at line 73 of file ActorFactory.cpp.
References carla::rpc::Actor::description, carla::rpc::Actor::HasAStream(), carla::rpc::ActorDescription::id, and carla::StringUtil::StartsWith().
Referenced by carla::client::detail::ActorVariant::MakeActor(), carla::client::detail::Simulator::MakeActor(), and carla::client::detail::Simulator::SpawnActor().