CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
carla::client::Client类 参考

#include <Client.h>

+ carla::client::Client 的协作图:

Public 成员函数

void ApplyBatch (std::vector< rpc::Command > commands, bool do_tick_cue=false) const
 
std::vector< rpc::CommandResponseApplyBatchSync (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 &params, 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.h20 行定义.

构造及析构函数说明

◆ Client()

carla::client::Client::Client ( const std::string & host,
uint16_t port,
size_t worker_threads = 0u )
inlineexplicit

Construct a carla client.

参数
hostIP address of the host machine running the simulator.
portTCP port to connect with the simulator.
worker_threadsnumber of asynchronous threads to use, or 0 to use all available hardware concurrency.

在文件 client/Client.h183 行定义.

成员函数说明

◆ ApplyBatch()

void carla::client::Client::ApplyBatch ( std::vector< rpc::Command > commands,
bool do_tick_cue = false ) const
inline

在文件 client/Client.h162 行定义.

引用了 _simulator.

◆ ApplyBatchSync()

std::vector< rpc::CommandResponse > carla::client::Client::ApplyBatchSync ( std::vector< rpc::Command > commands,
bool do_tick_cue = false ) const
inline

在文件 client/Client.h168 行定义.

引用了 _simulator.

◆ GenerateOpenDriveWorld()

World carla::client::Client::GenerateOpenDriveWorld ( std::string opendrive,
const rpc::OpendriveGenerationParameters & params,
bool reset_settings = true ) const
inline

在文件 client/Client.h98 行定义.

引用了 _simulator.

◆ GetAvailableMaps()

std::vector< std::string > carla::client::Client::GetAvailableMaps ( ) const
inline

在文件 client/Client.h54 行定义.

引用了 _simulator.

◆ GetClientVersion()

std::string carla::client::Client::GetClientVersion ( ) const
inline

Return the version string of this client API.

在文件 client/Client.h45 行定义.

引用了 _simulator.

◆ GetCurrentEpisode()

carla::client::detail::EpisodeProxy carla::client::Client::GetCurrentEpisode ( ) const
inline

Return an instance of the Episode currently active in the simulator.

在文件 client/Client.h117 行定义.

引用了 _simulator.

◆ GetInstanceTM()

TrafficManager carla::client::Client::GetInstanceTM ( uint16_t port = TM_DEFAULT_PORT) const
inline

Return an instance of the TrafficManager currently active in the simulator.

在文件 client/Client.h112 行定义.

引用了 _simulator.

◆ GetRequiredFiles()

std::vector< std::string > carla::client::Client::GetRequiredFiles ( const std::string & folder = "",
const bool download = true ) const
inline

在文件 client/Client.h62 行定义.

引用了 _simulator.

◆ GetServerVersion()

std::string carla::client::Client::GetServerVersion ( ) const
inline

Return the version string of the simulator we are connected to.

在文件 client/Client.h50 行定义.

引用了 _simulator.

◆ GetTimeout()

time_duration carla::client::Client::GetTimeout ( )
inline

在文件 client/Client.h40 行定义.

引用了 _simulator.

◆ GetWorld()

World carla::client::Client::GetWorld ( ) const
inline

Return an instance of the world currently active in the simulator.

在文件 client/Client.h107 行定义.

引用了 _simulator.

被这些函数引用 LoadWorldIfDifferent().

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

◆ LoadWorld()

World carla::client::Client::LoadWorld ( std::string map_name,
bool reset_settings = true,
rpc::MapLayer map_layers = rpc::MapLayer::All ) const
inline

在文件 client/Client.h74 行定义.

引用了 _simulator.

◆ LoadWorldIfDifferent()

void carla::client::Client::LoadWorldIfDifferent ( std::string map_name,
bool reset_settings = true,
rpc::MapLayer map_layers = rpc::MapLayer::All ) const
inline

Return (and load) a new world (map) only when the requested map is different from the current one

在文件 client/Client.h83 行定义.

引用了 _simulator, carla::client::World::GetMap() , 以及 GetWorld().

+ 函数调用图:

◆ ReloadWorld()

World carla::client::Client::ReloadWorld ( bool reset_settings = true) const
inline

在文件 client/Client.h70 行定义.

引用了 _simulator.

◆ ReplayFile()

std::string carla::client::Client::ReplayFile ( std::string name,
double start,
double duration,
uint32_t follow_id,
bool replay_sensors )
inline

在文件 client/Client.h141 行定义.

引用了 _simulator.

◆ RequestFile()

void carla::client::Client::RequestFile ( const std::string & name) const
inline

在文件 client/Client.h66 行定义.

引用了 _simulator.

◆ SetFilesBaseFolder()

bool carla::client::Client::SetFilesBaseFolder ( const std::string & path)
inline

在文件 client/Client.h58 行定义.

引用了 _simulator.

◆ SetReplayerIgnoreHero()

void carla::client::Client::SetReplayerIgnoreHero ( bool ignore_hero)
inline

在文件 client/Client.h154 行定义.

引用了 _simulator.

◆ SetReplayerIgnoreSpectator()

void carla::client::Client::SetReplayerIgnoreSpectator ( bool ignore_spectator)
inline

在文件 client/Client.h158 行定义.

引用了 _simulator.

◆ SetReplayerTimeFactor()

void carla::client::Client::SetReplayerTimeFactor ( double time_factor)
inline

在文件 client/Client.h150 行定义.

引用了 _simulator.

◆ SetTimeout()

void carla::client::Client::SetTimeout ( time_duration timeout)
inline

Set a timeout for networking operations.

If set, any networking operation taking longer than timeout throws rpc::timeout.

在文件 client/Client.h36 行定义.

引用了 _simulator.

◆ ShowRecorderActorsBlocked()

std::string carla::client::Client::ShowRecorderActorsBlocked ( std::string name,
double min_time,
double min_distance )
inline

在文件 client/Client.h137 行定义.

引用了 _simulator.

◆ ShowRecorderCollisions()

std::string carla::client::Client::ShowRecorderCollisions ( std::string name,
char type1,
char type2 )
inline

在文件 client/Client.h133 行定义.

引用了 _simulator.

◆ ShowRecorderFileInfo()

std::string carla::client::Client::ShowRecorderFileInfo ( std::string name,
bool show_all )
inline

在文件 client/Client.h129 行定义.

引用了 _simulator.

◆ StartRecorder()

std::string carla::client::Client::StartRecorder ( std::string name,
bool additional_data = false )
inline

在文件 client/Client.h121 行定义.

引用了 _simulator.

◆ StopRecorder()

void carla::client::Client::StopRecorder ( void )
inline

在文件 client/Client.h125 行定义.

引用了 _simulator.

◆ StopReplayer()

void carla::client::Client::StopReplayer ( bool keep_actors)
inline

在文件 client/Client.h146 行定义.

引用了 _simulator.

类成员变量说明

◆ _simulator

std::shared_ptr<detail::Simulator> carla::client::Client::_simulator
private

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