#include <Client.h>
Public 成员函数 | |
void | ApplyBatch (std::vector< rpc::Command > commands, bool do_tick_cue=false) const |
std::vector< rpc::CommandResponse > | ApplyBatchSync (std::vector< rpc::Command > commands, bool do_tick_cue=false) const |
Client (const std::string &host, uint16_t port, size_t worker_threads=0u) | |
构建一个 carla 客户端。 | |
World | GenerateOpenDriveWorld (std::string opendrive, const rpc::OpendriveGenerationParameters ¶ms, bool reset_settings=true) const |
通过 OpenDrive 文件生成一个新的世界。 | |
std::vector< std::string > | GetAvailableMaps () const |
获取当前服务中心提供的所有可用地图名称。 | |
std::string | GetClientVersion () const |
返回此客户端 API 版本的字符串。 | |
carla::client::detail::EpisodeProxy | GetCurrentEpisode () const |
获取当前模拟器中的活动场景实例。 | |
TrafficManager | GetInstanceTM (uint16_t port=TM_DEFAULT_PORT) const |
获取当前模拟器中的 TrafficManager 实例。 | |
std::vector< std::string > | GetRequiredFiles (const std::string &folder="", const bool download=true) const |
获取指定文件夹中的所需文件列表,默认情况下会下载所需文件。 如果文件夹路径为空,则使用默认路径。 | |
std::string | GetServerVersion () const |
获取当前连接的模拟器版本字符串。 | |
time_duration | GetTimeout () |
World | GetWorld () const |
获取当前模拟器中的活跃世界实例。 | |
World | LoadWorld (std::string map_name, bool reset_settings=true, rpc::MapLayer map_layers=rpc::MapLayer::All) const |
加载指定名称的场景地图。 | |
void | LoadWorldIfDifferent (std::string map_name, bool reset_settings=true, rpc::MapLayer map_layers=rpc::MapLayer::All) const |
如果当前地图与请求地图不同,则加载新地图。 | |
World | ReloadWorld (bool reset_settings=true) const |
重新加载世界环境。 通过调用 _simulator->ReloadEpisode 来实现,是否重置设置由参数决定。 返回重载后的世界对象。 | |
std::string | ReplayFile (std::string name, double start, double duration, uint32_t follow_id, bool replay_sensors) |
void | RequestFile (const std::string &name) const |
请求指定名称的文件,模拟器会处理文件的加载或下载。 | |
bool | SetFilesBaseFolder (const std::string &path) |
设置文件系统的基路径(文件夹)。 用于设置模拟器读取文件的路径。 返回操作是否成功。 | |
void | SetReplayerIgnoreHero (bool ignore_hero) |
void | SetReplayerIgnoreSpectator (bool ignore_spectator) |
void | SetReplayerTimeFactor (double time_factor) |
void | SetTimeout (time_duration timeout) |
设置网络操作的超时时间。超时将抛出 rpc::timeout 异常 | |
std::string | ShowRecorderActorsBlocked (std::string name, double min_time, double min_distance) |
std::string | ShowRecorderCollisions (std::string name, char type1, char type2) |
std::string | ShowRecorderFileInfo (std::string name, bool show_all) |
std::string | StartRecorder (std::string name, bool additional_data=false) |
void | StopRecorder (void) |
void | StopReplayer (bool keep_actors) |
Private 属性 | |
std::shared_ptr< detail::Simulator > | _simulator |
在文件 client/Client.h 第 22 行定义.
|
inlineexplicit |
构建一个 carla 客户端。
host | 运行模拟器的主机IP地址。 |
port | 连接到模拟器的TCP端口。 |
worker_threads | 要使用的异步线程数,默认为 0(即使用所有可用的硬件并发线程)。 |
在文件 client/Client.h 第 225 行定义.
|
inline |
在文件 client/Client.h 第 200 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 208 行定义.
引用了 _simulator.
|
inline |
通过 OpenDrive 文件生成一个新的世界。
opendrive | OpenDrive 格式的文件路径。 |
params | 生成 OpenDrive 世界时的参数。 |
reset_settings | 是否重置设置。 |
在文件 client/Client.h 第 114 行定义.
引用了 _simulator.
|
inline |
|
inline |
|
inline |
|
inline |
获取当前模拟器中的 TrafficManager 实例。
port | TrafficManager 使用的端口,默认为 TM_DEFAULT_PORT。 |
在文件 client/Client.h 第 129 行定义.
引用了 _simulator.
|
inline |
|
inline |
|
inline |
在文件 client/Client.h 第 41 行定义.
引用了 _simulator.
|
inline |
获取当前模拟器中的活跃世界实例。
在文件 client/Client.h 第 123 行定义.
引用了 _simulator.
被这些函数引用 LoadWorldIfDifferent().
|
inline |
加载指定名称的场景地图。
map_name | 地图名称。 |
reset_settings | 是否重置设置。 |
map_layers | 需要加载的地图层。 |
在文件 client/Client.h 第 85 行定义.
引用了 _simulator.
|
inline |
如果当前地图与请求地图不同,则加载新地图。
在文件 client/Client.h 第 94 行定义.
引用了 _simulator, carla::client::World::GetMap() , 以及 GetWorld().
重新加载世界环境。 通过调用 _simulator->ReloadEpisode 来实现,是否重置设置由参数决定。 返回重载后的世界对象。
在文件 client/Client.h 第 77 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 173 行定义.
引用了 _simulator.
|
inline |
|
inline |
|
inline |
在文件 client/Client.h 第 190 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 195 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 185 行定义.
引用了 _simulator.
|
inline |
|
inline |
在文件 client/Client.h 第 168 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 162 行定义.
引用了 _simulator.
|
inline |
|
inline |
在文件 client/Client.h 第 139 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 144 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 179 行定义.
引用了 _simulator.
|
private |
在文件 client/Client.h 第 221 行定义.
被这些函数引用 ApplyBatch(), ApplyBatchSync(), GenerateOpenDriveWorld(), GetAvailableMaps(), GetClientVersion(), GetCurrentEpisode(), GetInstanceTM(), GetRequiredFiles(), GetServerVersion(), GetTimeout(), GetWorld(), LoadWorld(), LoadWorldIfDifferent(), ReloadWorld(), ReplayFile(), RequestFile(), SetFilesBaseFolder(), SetReplayerIgnoreHero(), SetReplayerIgnoreSpectator(), SetReplayerTimeFactor(), SetTimeout(), ShowRecorderActorsBlocked(), ShowRecorderCollisions(), ShowRecorderFileInfo(), StartRecorder(), StopRecorder() , 以及 StopReplayer().