CARLA
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
carla::client::detail::ActorFactory类 参考

#include <ActorFactory.h>

静态 Public 成员函数

static SharedPtr< ActorMakeActor (EpisodeProxy episode, rpc::Actor actor_description, GarbageCollectionPolicy garbage_collection_policy)
 Create an Actor based on the provided actor_description.
 

详细描述

在文件 ActorFactory.h21 行定义.

成员函数说明

◆ MakeActor()

SharedPtr< Actor > carla::client::detail::ActorFactory::MakeActor ( EpisodeProxy episode,
rpc::Actor actor_description,
GarbageCollectionPolicy garbage_collection_policy )
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.cpp73 行定义.

引用了 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().

+ 函数调用图:
+ 这是这个函数的调用关系图:

该类的文档由以下文件生成: