#include <Client.h>
Collaboration diagram for carla::client::Client:Public Member Functions | |
| 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. More... | |
| 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. More... | |
| carla::client::detail::EpisodeProxy | GetCurrentEpisode () const |
| Return an instance of the Episode currently active in the simulator. More... | |
| TrafficManager | GetInstanceTM (uint16_t port=TM_DEFAULT_PORT) const |
| Return an instance of the TrafficManager currently active in the simulator. More... | |
| 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. More... | |
| time_duration | GetTimeout () |
| World | GetWorld () const |
| Return an instance of the world currently active in the simulator. More... | |
| 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. More... | |
| 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. More... | |
| 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 Attributes | |
| std::shared_ptr< detail::Simulator > | _simulator |
Definition at line 20 of file client/Client.h.
|
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. |
Definition at line 183 of file client/Client.h.
|
inline |
Definition at line 162 of file client/Client.h.
|
inline |
Definition at line 168 of file client/Client.h.
|
inline |
Definition at line 98 of file client/Client.h.
|
inline |
Definition at line 54 of file client/Client.h.
|
inline |
Return the version string of this client API.
Definition at line 45 of file client/Client.h.
|
inline |
Return an instance of the Episode currently active in the simulator.
Definition at line 117 of file client/Client.h.
|
inline |
Return an instance of the TrafficManager currently active in the simulator.
Definition at line 112 of file client/Client.h.
|
inline |
Definition at line 62 of file client/Client.h.
|
inline |
Return the version string of the simulator we are connected to.
Definition at line 50 of file client/Client.h.
|
inline |
Definition at line 40 of file client/Client.h.
|
inline |
Return an instance of the world currently active in the simulator.
Definition at line 107 of file client/Client.h.
|
inline |
Definition at line 74 of file client/Client.h.
|
inline |
Return (and load) a new world (map) only when the requested map is different from the current one.
Definition at line 83 of file client/Client.h.
References carla::client::World::GetMap().
Here is the call graph for this function:
|
inline |
Definition at line 70 of file client/Client.h.
|
inline |
Definition at line 141 of file client/Client.h.
|
inline |
Definition at line 66 of file client/Client.h.
|
inline |
Definition at line 58 of file client/Client.h.
|
inline |
Definition at line 154 of file client/Client.h.
|
inline |
Definition at line 158 of file client/Client.h.
|
inline |
Definition at line 150 of file client/Client.h.
|
inline |
Set a timeout for networking operations.
If set, any networking operation taking longer than timeout throws rpc::timeout.
Definition at line 36 of file client/Client.h.
|
inline |
Definition at line 137 of file client/Client.h.
|
inline |
Definition at line 133 of file client/Client.h.
|
inline |
Definition at line 129 of file client/Client.h.
|
inline |
Definition at line 121 of file client/Client.h.
|
inline |
Definition at line 125 of file client/Client.h.
|
inline |
Definition at line 146 of file client/Client.h.
|
private |
Definition at line 180 of file client/Client.h.
1.8.13