#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) | |
Construct a carla client. | |
World | GenerateOpenDriveWorld (std::string opendrive, const rpc::OpendriveGenerationParameters ¶ms, bool reset_settings=true) const |
std::vector< std::string > | GetAvailableMaps () const |
std::string | GetClientVersion () const |
Return the version string of this client API. | |
carla::client::detail::EpisodeProxy | GetCurrentEpisode () const |
Return an instance of the Episode currently active in the simulator. | |
TrafficManager | GetInstanceTM (uint16_t port=TM_DEFAULT_PORT) const |
Return an instance of the TrafficManager currently active in the simulator. | |
std::vector< std::string > | GetRequiredFiles (const std::string &folder="", const bool download=true) const |
std::string | GetServerVersion () const |
Return the version string of the simulator we are connected to. | |
time_duration | GetTimeout () |
World | GetWorld () const |
Return an instance of the world currently active in the simulator. | |
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 |
Return (and load) a new world (map) only when the requested map is different from the current one | |
World | ReloadWorld (bool reset_settings=true) const |
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) |
Set a timeout for networking operations. | |
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 第 20 行定义.
|
inlineexplicit |
Construct a carla client.
host | IP address of the host machine running the simulator. |
port | TCP port to connect with the simulator. |
worker_threads | number of asynchronous threads to use, or 0 to use all available hardware concurrency. |
在文件 client/Client.h 第 183 行定义.
|
inline |
在文件 client/Client.h 第 162 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 168 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 98 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 54 行定义.
引用了 _simulator.
|
inline |
|
inline |
Return an instance of the Episode currently active in the simulator.
在文件 client/Client.h 第 117 行定义.
引用了 _simulator.
|
inline |
Return an instance of the TrafficManager currently active in the simulator.
在文件 client/Client.h 第 112 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 62 行定义.
引用了 _simulator.
|
inline |
Return the version string of the simulator we are connected to.
在文件 client/Client.h 第 50 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 40 行定义.
引用了 _simulator.
|
inline |
Return an instance of the world currently active in the simulator.
在文件 client/Client.h 第 107 行定义.
引用了 _simulator.
被这些函数引用 LoadWorldIfDifferent().
|
inline |
在文件 client/Client.h 第 74 行定义.
引用了 _simulator.
|
inline |
Return (and load) a new world (map) only when the requested map is different from the current one
在文件 client/Client.h 第 83 行定义.
引用了 _simulator, carla::client::World::GetMap() , 以及 GetWorld().
|
inline |
在文件 client/Client.h 第 70 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 141 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 66 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 58 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 154 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 158 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 150 行定义.
引用了 _simulator.
|
inline |
Set a timeout for networking operations.
If set, any networking operation taking longer than timeout throws rpc::timeout.
在文件 client/Client.h 第 36 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 137 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 133 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 129 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 121 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 125 行定义.
引用了 _simulator.
|
inline |
在文件 client/Client.h 第 146 行定义.
引用了 _simulator.
|
private |
在文件 client/Client.h 第 180 行定义.
被这些函数引用 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().