Provides communication with the rpc and streaming servers of a CARLA simulator. More...
#include <Client.h>
Classes | |
class | Pimpl |
Public Member Functions | |
void | AddActorAngularImpulse (rpc::ActorId actor, const geom::Vector3D &vector) |
void | AddActorForce (rpc::ActorId actor, const geom::Vector3D &force) |
void | AddActorForce (rpc::ActorId actor, const geom::Vector3D &force, const geom::Vector3D &location) |
void | AddActorImpulse (rpc::ActorId actor, const geom::Vector3D &impulse) |
void | AddActorImpulse (rpc::ActorId actor, const geom::Vector3D &impulse, const geom::Vector3D &location) |
void | AddActorTorque (rpc::ActorId actor, const geom::Vector3D &vector) |
bool | AddTrafficManagerRunning (std::pair< std::string, uint16_t > trafficManagerInfo) const |
Informs the server that a Traffic Manager is running on <IP, port> More... | |
void | ApplyAckermannControllerSettings (rpc::ActorId vehicle, const rpc::AckermannControllerSettings &settings) |
void | ApplyAckermannControlToVehicle (rpc::ActorId vehicle, const rpc::VehicleAckermannControl &control) |
void | ApplyBatch (std::vector< rpc::Command > commands, bool do_tick_cue) |
std::vector< rpc::CommandResponse > | ApplyBatchSync (std::vector< rpc::Command > commands, bool do_tick_cue) |
void | ApplyColorTextureToObjects (const std::vector< std::string > &objects_name, const rpc::MaterialParameter ¶meter, const rpc::TextureColor &Texture) |
void | ApplyColorTextureToObjects (const std::vector< std::string > &objects_name, const rpc::MaterialParameter ¶meter, const rpc::TextureFloatColor &Texture) |
void | ApplyControlToVehicle (rpc::ActorId vehicle, const rpc::VehicleControl &control) |
void | ApplyControlToWalker (rpc::ActorId walker, const rpc::WalkerControl &control) |
void | ApplyPhysicsControlToVehicle (rpc::ActorId vehicle, const rpc::VehiclePhysicsControl &physics_control) |
void | BlendPose (rpc::ActorId walker, float blend) |
std::vector< rpc::LabelledPoint > | CastRay (geom::Location start_location, geom::Location end_location) const |
Client (const std::string &host, uint16_t port, size_t worker_threads=0u) | |
void | CloseVehicleDoor (rpc::ActorId vehicle, const rpc::VehicleDoor door_idx) |
void | CopyOpenDriveToServer (std::string opendrive, const rpc::OpendriveGenerationParameters ¶ms) |
bool | DestroyActor (rpc::ActorId actor) |
void | DestroyTrafficManager (uint16_t port) const |
void | DisableActorConstantVelocity (rpc::ActorId actor) |
void | DisableForROS (const streaming::Token &token) |
void | DrawDebugShape (const rpc::DebugShape &shape) |
void | EnableActorConstantVelocity (rpc::ActorId actor, const geom::Vector3D &vector) |
void | EnableCarSim (rpc::ActorId vehicle, std::string simfile_path) |
void | EnableChronoPhysics (rpc::ActorId vehicle, uint64_t MaxSubsteps, float MaxSubstepDeltaTime, std::string VehicleJSON, std::string PowertrainJSON, std::string TireJSON, std::string BaseJSONPath) |
void | EnableEnvironmentObjects (std::vector< uint64_t > env_objects_ids, bool enable) const |
void | EnableForROS (const streaming::Token &token) |
void | FreezeAllTrafficLights (bool frozen) |
void | FreezeTrafficLight (rpc::ActorId traffic_light, bool freeze) |
rpc::AckermannControllerSettings | GetAckermannControllerSettings (rpc::ActorId vehicle) const |
std::vector< rpc::ActorDefinition > | GetActorDefinitions () |
std::vector< rpc::Actor > | GetActorsById (const std::vector< ActorId > &ids) |
std::vector< std::string > | GetAvailableMaps () |
rpc::WalkerBoneControlOut | GetBonesTransform (rpc::ActorId walker) |
std::vector< uint8_t > | GetCacheFile (const std::string &name, const bool request_otherwise=true) const |
std::string | GetClientVersion () |
const std::string | GetEndpoint () const |
std::vector< rpc::EnvironmentObject > | GetEnvironmentObjects (uint8_t queried_tag) const |
rpc::EpisodeInfo | GetEpisodeInfo () |
rpc::EpisodeSettings | GetEpisodeSettings () |
std::vector< ActorId > | GetGroupTrafficLights (rpc::ActorId traffic_light) |
std::vector< geom::BoundingBox > | GetLevelBBs (uint8_t queried_tag) const |
Returns all the BBs of all the elements of the level. More... | |
std::vector< geom::BoundingBox > | GetLightBoxes (rpc::ActorId traffic_light) const |
std::string | GetMapData () const |
rpc::MapInfo | GetMapInfo () |
std::vector< std::string > | GetNamesOfAllObjects () const |
std::vector< uint8_t > | GetNavigationMesh () const |
void | GetPoseFromAnimation (rpc::ActorId walker) |
std::vector< std::string > | GetRequiredFiles (const std::string &folder="", const bool download=true) const |
std::string | GetServerVersion () |
rpc::Actor | GetSpectator () |
time_duration | GetTimeout () const |
std::pair< std::string, uint16_t > | GetTrafficManagerRunning (uint16_t port) const |
Gets a pair filled with the <IP, port> of the Trafic Manager running on port. More... | |
rpc::VehicleLightState | GetVehicleLightState (rpc::ActorId vehicle) const |
rpc::VehiclePhysicsControl | GetVehiclePhysicsControl (rpc::ActorId vehicle) const |
rpc::VehicleLightStateList | GetVehiclesLightStates () |
Returns a list of pairs where the firts element is the vehicle ID and the second one is the light state. More... | |
rpc::WeatherParameters | GetWeatherParameters () |
float | GetWheelSteerAngle (rpc::ActorId vehicle, rpc::VehicleWheelLocation wheel_location) |
bool | IsEnabledForROS (const streaming::Token &token) |
bool | IsTrafficManagerRunning (uint16_t port) const |
Querry to know if a Traffic Manager is running on port. More... | |
void | LoadEpisode (std::string map_name, bool reset_settings=true, rpc::MapLayer map_layer=rpc::MapLayer::All) |
void | LoadLevelLayer (rpc::MapLayer map_layer) const |
void | OpenVehicleDoor (rpc::ActorId vehicle, const rpc::VehicleDoor door_idx) |
std::pair< bool, rpc::LabelledPoint > | ProjectPoint (geom::Location location, geom::Vector3D direction, float search_distance) const |
std::vector< rpc::LightState > | QueryLightsStateToServer () 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 |
void | ResetAllTrafficLights () |
void | ResetTrafficLightGroup (rpc::ActorId traffic_light) |
uint64_t | SendTickCue () |
void | SetActorAutopilot (rpc::ActorId vehicle, bool enabled) |
void | SetActorCollisions (rpc::ActorId actor, bool enabled) |
void | SetActorDead (rpc::ActorId actor) |
void | SetActorEnableGravity (rpc::ActorId actor, bool enabled) |
void | SetActorLocation (rpc::ActorId actor, const geom::Location &location) |
void | SetActorSimulatePhysics (rpc::ActorId actor, bool enabled) |
void | SetActorTargetAngularVelocity (rpc::ActorId actor, const geom::Vector3D &vector) |
void | SetActorTargetVelocity (rpc::ActorId actor, const geom::Vector3D &vector) |
void | SetActorTransform (rpc::ActorId actor, const geom::Transform &transform) |
void | SetBonesTransform (rpc::ActorId walker, const rpc::WalkerBoneControlIn &bones) |
uint64_t | SetEpisodeSettings (const rpc::EpisodeSettings &settings) |
bool | SetFilesBaseFolder (const std::string &path) |
void | SetLightStateToVehicle (rpc::ActorId vehicle, const rpc::VehicleLightState &light_state) |
void | SetReplayerIgnoreHero (bool ignore_hero) |
void | SetReplayerIgnoreSpectator (bool ignore_spectator) |
void | SetReplayerTimeFactor (double time_factor) |
void | SetTimeout (time_duration timeout) |
void | SetTrafficLightGreenTime (rpc::ActorId traffic_light, float green_time) |
void | SetTrafficLightRedTime (rpc::ActorId traffic_light, float red_time) |
void | SetTrafficLightState (rpc::ActorId traffic_light, const rpc::TrafficLightState trafficLightState) |
void | SetTrafficLightYellowTime (rpc::ActorId traffic_light, float yellow_time) |
void | SetWeatherParameters (const rpc::WeatherParameters &weather) |
void | SetWheelSteerDirection (rpc::ActorId vehicle, rpc::VehicleWheelLocation vehicle_wheel, float angle_in_deg) |
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) |
void | ShowVehicleDebugTelemetry (rpc::ActorId vehicle, bool enabled) |
rpc::Actor | SpawnActor (const rpc::ActorDescription &description, const geom::Transform &transform) |
rpc::Actor | SpawnActorWithParent (const rpc::ActorDescription &description, const geom::Transform &transform, rpc::ActorId parent, rpc::AttachmentType attachment_type) |
std::string | StartRecorder (std::string name, bool additional_data) |
void | StopRecorder () |
void | StopReplayer (bool keep_actors) |
void | SubscribeToGBuffer (rpc::ActorId ActorId, uint32_t GBufferId, std::function< void(Buffer)> callback) |
void | SubscribeToStream (const streaming::Token &token, std::function< void(Buffer)> callback) |
void | UnloadLevelLayer (rpc::MapLayer map_layer) const |
void | UnSubscribeFromGBuffer (rpc::ActorId ActorId, uint32_t GBufferId) |
void | UnSubscribeFromStream (const streaming::Token &token) |
void | UpdateDayNightCycle (const bool active) const |
void | UpdateServerLightsState (std::vector< rpc::LightState > &lights, bool discard_client=false) const |
void | UseCarSimRoad (rpc::ActorId vehicle, bool enabled) |
~Client () | |
Private Attributes | |
const std::unique_ptr< Pimpl > | _pimpl |
Additional Inherited Members | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Provides communication with the rpc and streaming servers of a CARLA simulator.
Definition at line 69 of file client/detail/Client.h.
|
explicit |
Definition at line 103 of file client/detail/Client.cpp.
|
default |
void carla::client::detail::Client::AddActorAngularImpulse | ( | rpc::ActorId | actor, |
const geom::Vector3D & | vector | ||
) |
Definition at line 403 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::AddActorAngularImpulse(), and carla::client::detail::Simulator::AddActorTorque().
void carla::client::detail::Client::AddActorForce | ( | rpc::ActorId | actor, |
const geom::Vector3D & | force | ||
) |
Definition at line 395 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::AddActorForce().
void carla::client::detail::Client::AddActorForce | ( | rpc::ActorId | actor, |
const geom::Vector3D & | force, | ||
const geom::Vector3D & | location | ||
) |
Definition at line 399 of file client/detail/Client.cpp.
References _pimpl.
void carla::client::detail::Client::AddActorImpulse | ( | rpc::ActorId | actor, |
const geom::Vector3D & | impulse | ||
) |
Definition at line 387 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::AddActorImpulse().
void carla::client::detail::Client::AddActorImpulse | ( | rpc::ActorId | actor, |
const geom::Vector3D & | impulse, | ||
const geom::Vector3D & | location | ||
) |
Definition at line 391 of file client/detail/Client.cpp.
References _pimpl.
void carla::client::detail::Client::AddActorTorque | ( | rpc::ActorId | actor, |
const geom::Vector3D & | vector | ||
) |
Definition at line 407 of file client/detail/Client.cpp.
References _pimpl.
bool carla::client::detail::Client::AddTrafficManagerRunning | ( | std::pair< std::string, uint16_t > | trafficManagerInfo | ) | const |
Informs the server that a Traffic Manager is running on <IP, port>
Definition at line 117 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::AddTrafficManagerRunning().
void carla::client::detail::Client::ApplyAckermannControllerSettings | ( | rpc::ActorId | vehicle, |
const rpc::AckermannControllerSettings & | settings | ||
) |
Definition at line 448 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyAckermannControllerSettings().
void carla::client::detail::Client::ApplyAckermannControlToVehicle | ( | rpc::ActorId | vehicle, |
const rpc::VehicleAckermannControl & | control | ||
) |
Definition at line 439 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyAckermannControlToVehicle().
void carla::client::detail::Client::ApplyBatch | ( | std::vector< rpc::Command > | commands, |
bool | do_tick_cue | ||
) |
Definition at line 641 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyBatch().
std::vector< rpc::CommandResponse > carla::client::detail::Client::ApplyBatchSync | ( | std::vector< rpc::Command > | commands, |
bool | do_tick_cue | ||
) |
Definition at line 645 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyBatchSync().
void carla::client::detail::Client::ApplyColorTextureToObjects | ( | const std::vector< std::string > & | objects_name, |
const rpc::MaterialParameter & | parameter, | ||
const rpc::TextureColor & | Texture | ||
) |
Definition at line 167 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyColorTextureToObjects().
void carla::client::detail::Client::ApplyColorTextureToObjects | ( | const std::vector< std::string > & | objects_name, |
const rpc::MaterialParameter & | parameter, | ||
const rpc::TextureFloatColor & | Texture | ||
) |
Definition at line 174 of file client/detail/Client.cpp.
References _pimpl.
void carla::client::detail::Client::ApplyControlToVehicle | ( | rpc::ActorId | vehicle, |
const rpc::VehicleControl & | control | ||
) |
Definition at line 435 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyControlToVehicle(), and carla::client::detail::Simulator::SetLightsToVehicle().
void carla::client::detail::Client::ApplyControlToWalker | ( | rpc::ActorId | walker, |
const rpc::WalkerControl & | control | ||
) |
Definition at line 478 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyControlToWalker().
void carla::client::detail::Client::ApplyPhysicsControlToVehicle | ( | rpc::ActorId | vehicle, |
const rpc::VehiclePhysicsControl & | physics_control | ||
) |
Definition at line 286 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ApplyPhysicsControlToVehicle().
void carla::client::detail::Client::BlendPose | ( | rpc::ActorId | walker, |
float | blend | ||
) |
Definition at line 491 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::BlendPose().
std::vector< rpc::LabelledPoint > carla::client::detail::Client::CastRay | ( | geom::Location | start_location, |
geom::Location | end_location | ||
) | const |
Definition at line 691 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::CastRay().
void carla::client::detail::Client::CloseVehicleDoor | ( | rpc::ActorId | vehicle, |
const rpc::VehicleDoor | door_idx | ||
) |
Definition at line 304 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::CloseVehicleDoor().
void carla::client::detail::Client::CopyOpenDriveToServer | ( | std::string | opendrive, |
const rpc::OpendriveGenerationParameters & | params | ||
) |
Definition at line 162 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::LoadOpenDriveEpisode().
bool carla::client::detail::Client::DestroyActor | ( | rpc::ActorId | actor | ) |
Definition at line 354 of file client/detail/Client.cpp.
References _pimpl, and carla::log_error().
Referenced by carla::client::detail::Simulator::DestroyActor().
void carla::client::detail::Client::DestroyTrafficManager | ( | uint16_t | port | ) | const |
Definition at line 121 of file client/detail/Client.cpp.
References _pimpl, and ~Client().
Referenced by carla::client::detail::Simulator::DestroyTrafficManager().
void carla::client::detail::Client::DisableActorConstantVelocity | ( | rpc::ActorId | actor | ) |
Definition at line 383 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::DisableActorConstantVelocity().
void carla::client::detail::Client::DisableForROS | ( | const streaming::Token & | token | ) |
Definition at line 606 of file client/detail/Client.cpp.
References _pimpl, and carla::streaming::detail::token_type::get_stream_id().
Referenced by carla::client::detail::Simulator::DisableForROS().
void carla::client::detail::Client::DrawDebugShape | ( | const rpc::DebugShape & | shape | ) |
Definition at line 637 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::DrawDebugShape().
void carla::client::detail::Client::EnableActorConstantVelocity | ( | rpc::ActorId | actor, |
const geom::Vector3D & | vector | ||
) |
Definition at line 379 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::EnableActorConstantVelocity().
void carla::client::detail::Client::EnableCarSim | ( | rpc::ActorId | vehicle, |
std::string | simfile_path | ||
) |
Definition at line 452 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::EnableCarSim().
void carla::client::detail::Client::EnableChronoPhysics | ( | rpc::ActorId | vehicle, |
uint64_t | MaxSubsteps, | ||
float | MaxSubstepDeltaTime, | ||
std::string | VehicleJSON, | ||
std::string | PowertrainJSON, | ||
std::string | TireJSON, | ||
std::string | BaseJSONPath | ||
) |
Definition at line 460 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::EnableChronoPhysics().
void carla::client::detail::Client::EnableEnvironmentObjects | ( | std::vector< uint64_t > | env_objects_ids, |
bool | enable | ||
) | const |
Definition at line 679 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::EnableEnvironmentObjects().
void carla::client::detail::Client::EnableForROS | ( | const streaming::Token & | token | ) |
Definition at line 601 of file client/detail/Client.cpp.
References _pimpl, and carla::streaming::detail::token_type::get_stream_id().
Referenced by carla::client::detail::Simulator::EnableForROS().
void carla::client::detail::Client::FreezeAllTrafficLights | ( | bool | frozen | ) |
Definition at line 529 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::FreezeAllTrafficLights().
void carla::client::detail::Client::FreezeTrafficLight | ( | rpc::ActorId | traffic_light, |
bool | freeze | ||
) |
Definition at line 517 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::FreezeTrafficLight().
rpc::AckermannControllerSettings carla::client::detail::Client::GetAckermannControllerSettings | ( | rpc::ActorId | vehicle | ) | const |
Definition at line 443 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetAckermannControllerSettings().
std::vector< rpc::ActorDefinition > carla::client::detail::Client::GetActorDefinitions | ( | ) |
Definition at line 246 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetBlueprintLibrary().
std::vector< rpc::Actor > carla::client::detail::Client::GetActorsById | ( | const std::vector< ActorId > & | ids | ) |
Definition at line 270 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Episode::GetActorById(), and carla::client::detail::GetActorsById_Impl().
std::vector< std::string > carla::client::detail::Client::GetAvailableMaps | ( | ) |
Definition at line 242 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetAvailableMaps().
rpc::WalkerBoneControlOut carla::client::detail::Client::GetBonesTransform | ( | rpc::ActorId | walker | ) |
Definition at line 482 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetBonesTransform().
std::vector< uint8_t > carla::client::detail::Client::GetCacheFile | ( | const std::string & | name, |
const bool | request_otherwise = true |
||
) | const |
Definition at line 230 of file client/detail/Client.cpp.
References carla::client::FileTransfer::ReadFile(), and RequestFile().
Referenced by carla::client::detail::Simulator::GetCacheFile().
std::string carla::client::detail::Client::GetClientVersion | ( | ) |
Definition at line 139 of file client/detail/Client.cpp.
Referenced by carla::client::detail::Simulator::GetClientVersion(), and carla::client::detail::ValidateVersions().
const std::string carla::client::detail::Client::GetEndpoint | ( | ) | const |
Definition at line 135 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetEndpoint(), carla::client::detail::Simulator::Tick(), and carla::client::detail::Simulator::WaitForTick().
std::vector< rpc::EnvironmentObject > carla::client::detail::Client::GetEnvironmentObjects | ( | uint8_t | queried_tag | ) | const |
Definition at line 674 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetEnvironmentObjects().
rpc::EpisodeInfo carla::client::detail::Client::GetEpisodeInfo | ( | ) |
Definition at line 185 of file client/detail/Client.cpp.
References _pimpl.
rpc::EpisodeSettings carla::client::detail::Client::GetEpisodeSettings | ( | ) |
Definition at line 254 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetEpisodeSettings(), and carla::client::detail::Simulator::LoadEpisode().
std::vector< ActorId > carla::client::detail::Client::GetGroupTrafficLights | ( | rpc::ActorId | traffic_light | ) |
Definition at line 542 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetGroupTrafficLights().
std::vector< geom::BoundingBox > carla::client::detail::Client::GetLevelBBs | ( | uint8_t | queried_tag | ) | const |
Returns all the BBs of all the elements of the level.
Definition at line 669 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetLevelBBs().
std::vector< geom::BoundingBox > carla::client::detail::Client::GetLightBoxes | ( | rpc::ActorId | traffic_light | ) | const |
Definition at line 533 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetLightBoxes().
std::string carla::client::detail::Client::GetMapData | ( | ) | const |
Definition at line 193 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetCurrentMap().
rpc::MapInfo carla::client::detail::Client::GetMapInfo | ( | ) |
Definition at line 189 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetCurrentMap().
std::vector< std::string > carla::client::detail::Client::GetNamesOfAllObjects | ( | ) | const |
Definition at line 181 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetNamesOfAllObjects().
std::vector< uint8_t > carla::client::detail::Client::GetNavigationMesh | ( | ) | const |
Definition at line 197 of file client/detail/Client.cpp.
References _pimpl.
void carla::client::detail::Client::GetPoseFromAnimation | ( | rpc::ActorId | walker | ) |
Definition at line 495 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetPoseFromAnimation().
std::vector< std::string > carla::client::detail::Client::GetRequiredFiles | ( | const std::string & | folder = "" , |
const bool | download = true |
||
) | const |
Definition at line 205 of file client/detail/Client.cpp.
References _pimpl, carla::client::FileTransfer::FileExists(), carla::log_info(), and RequestFile().
Referenced by carla::client::detail::Simulator::GetCurrentMap(), and carla::client::detail::Simulator::GetRequiredFiles().
std::string carla::client::detail::Client::GetServerVersion | ( | ) |
Definition at line 143 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetServerVersion(), and carla::client::detail::ValidateVersions().
rpc::Actor carla::client::detail::Client::GetSpectator | ( | ) |
Definition at line 250 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetSpectator().
time_duration carla::client::detail::Client::GetTimeout | ( | ) | const |
Definition at line 131 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetNetworkingTimeout(), and carla::client::detail::Simulator::LoadEpisode().
std::pair< std::string, uint16_t > carla::client::detail::Client::GetTrafficManagerRunning | ( | uint16_t | port | ) | const |
Gets a pair filled with the <IP, port> of the Trafic Manager running on port.
If there is no Traffic Manager running the pair will be ("", 0)
Definition at line 113 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetTrafficManagerRunning().
rpc::VehicleLightState carla::client::detail::Client::GetVehicleLightState | ( | rpc::ActorId | vehicle | ) | const |
Definition at line 281 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetVehicleLightState().
rpc::VehiclePhysicsControl carla::client::detail::Client::GetVehiclePhysicsControl | ( | rpc::ActorId | vehicle | ) | const |
Definition at line 276 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetVehiclePhysicsControl().
rpc::VehicleLightStateList carla::client::detail::Client::GetVehiclesLightStates | ( | ) |
Returns a list of pairs where the firts element is the vehicle ID and the second one is the light state.
Definition at line 538 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetVehiclesLightStates().
rpc::WeatherParameters carla::client::detail::Client::GetWeatherParameters | ( | ) |
Definition at line 262 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetWeatherParameters().
float carla::client::detail::Client::GetWheelSteerAngle | ( | rpc::ActorId | vehicle, |
rpc::VehicleWheelLocation | wheel_location | ||
) |
Definition at line 317 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::GetWheelSteerAngle().
bool carla::client::detail::Client::IsEnabledForROS | ( | const streaming::Token & | token | ) |
Definition at line 611 of file client/detail/Client.cpp.
References _pimpl, and carla::streaming::detail::token_type::get_stream_id().
Referenced by carla::client::detail::Simulator::IsEnabledForROS().
bool carla::client::detail::Client::IsTrafficManagerRunning | ( | uint16_t | port | ) | const |
Querry to know if a Traffic Manager is running on port.
Definition at line 109 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::IsTrafficManagerRunning().
void carla::client::detail::Client::LoadEpisode | ( | std::string | map_name, |
bool | reset_settings = true , |
||
rpc::MapLayer | map_layer = rpc::MapLayer::All |
||
) |
Definition at line 147 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::LoadEpisode().
void carla::client::detail::Client::LoadLevelLayer | ( | rpc::MapLayer | map_layer | ) | const |
Definition at line 152 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::LoadLevelLayer().
void carla::client::detail::Client::OpenVehicleDoor | ( | rpc::ActorId | vehicle, |
const rpc::VehicleDoor | door_idx | ||
) |
Definition at line 298 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::OpenVehicleDoor().
std::pair< bool, rpc::LabelledPoint > carla::client::detail::Client::ProjectPoint | ( | geom::Location | location, |
geom::Vector3D | direction, | ||
float | search_distance | ||
) | const |
Definition at line 685 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ProjectPoint().
std::vector< rpc::LightState > carla::client::detail::Client::QueryLightsStateToServer | ( | ) | const |
Definition at line 656 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::QueryLightsStateToServer().
std::string carla::client::detail::Client::ReplayFile | ( | std::string | name, |
double | start, | ||
double | duration, | ||
uint32_t | follow_id, | ||
bool | replay_sensors | ||
) |
Definition at line 567 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ReplayFile().
void carla::client::detail::Client::RequestFile | ( | const std::string & | name | ) | const |
Definition at line 224 of file client/detail/Client.cpp.
References _pimpl, and carla::client::FileTransfer::WriteFile().
Referenced by GetCacheFile(), GetRequiredFiles(), and carla::client::detail::Simulator::RequestFile().
void carla::client::detail::Client::ResetAllTrafficLights | ( | ) |
Definition at line 525 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ResetAllTrafficLights().
void carla::client::detail::Client::ResetTrafficLightGroup | ( | rpc::ActorId | traffic_light | ) |
Definition at line 521 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ResetTrafficLightGroup().
uint64_t carla::client::detail::Client::SendTickCue | ( | ) |
Definition at line 652 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::LoadEpisode(), and carla::client::detail::Simulator::Tick().
void carla::client::detail::Client::SetActorAutopilot | ( | rpc::ActorId | vehicle, |
bool | enabled | ||
) |
Definition at line 427 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetVehicleAutopilot().
void carla::client::detail::Client::SetActorCollisions | ( | rpc::ActorId | actor, |
bool | enabled | ||
) |
Definition at line 415 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorCollisions().
void carla::client::detail::Client::SetActorDead | ( | rpc::ActorId | actor | ) |
Definition at line 419 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorDead().
void carla::client::detail::Client::SetActorEnableGravity | ( | rpc::ActorId | actor, |
bool | enabled | ||
) |
Definition at line 423 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorEnableGravity().
void carla::client::detail::Client::SetActorLocation | ( | rpc::ActorId | actor, |
const geom::Location & | location | ||
) |
Definition at line 363 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorLocation().
void carla::client::detail::Client::SetActorSimulatePhysics | ( | rpc::ActorId | actor, |
bool | enabled | ||
) |
Definition at line 411 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorSimulatePhysics().
void carla::client::detail::Client::SetActorTargetAngularVelocity | ( | rpc::ActorId | actor, |
const geom::Vector3D & | vector | ||
) |
Definition at line 375 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorTargetAngularVelocity().
void carla::client::detail::Client::SetActorTargetVelocity | ( | rpc::ActorId | actor, |
const geom::Vector3D & | vector | ||
) |
Definition at line 371 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorTargetVelocity().
void carla::client::detail::Client::SetActorTransform | ( | rpc::ActorId | actor, |
const geom::Transform & | transform | ||
) |
Definition at line 367 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetActorTransform().
void carla::client::detail::Client::SetBonesTransform | ( | rpc::ActorId | walker, |
const rpc::WalkerBoneControlIn & | bones | ||
) |
Definition at line 487 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetBonesTransform().
uint64_t carla::client::detail::Client::SetEpisodeSettings | ( | const rpc::EpisodeSettings & | settings | ) |
Definition at line 258 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetEpisodeSettings().
bool carla::client::detail::Client::SetFilesBaseFolder | ( | const std::string & | path | ) |
Definition at line 201 of file client/detail/Client.cpp.
References carla::client::FileTransfer::SetFilesBaseFolder().
Referenced by carla::client::detail::Simulator::SetFilesBaseFolder().
void carla::client::detail::Client::SetLightStateToVehicle | ( | rpc::ActorId | vehicle, |
const rpc::VehicleLightState & | light_state | ||
) |
Definition at line 292 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetLightStateToVehicle().
void carla::client::detail::Client::SetReplayerIgnoreHero | ( | bool | ignore_hero | ) |
Definition at line 581 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetReplayerIgnoreHero().
void carla::client::detail::Client::SetReplayerIgnoreSpectator | ( | bool | ignore_spectator | ) |
Definition at line 585 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetReplayerIgnoreSpectator().
void carla::client::detail::Client::SetReplayerTimeFactor | ( | double | time_factor | ) |
Definition at line 577 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetReplayerTimeFactor().
void carla::client::detail::Client::SetTimeout | ( | time_duration | timeout | ) |
Definition at line 127 of file client/detail/Client.cpp.
References _pimpl, and carla::time_duration::milliseconds().
Referenced by carla::client::detail::Simulator::SetNetworkingTimeout().
void carla::client::detail::Client::SetTrafficLightGreenTime | ( | rpc::ActorId | traffic_light, |
float | green_time | ||
) |
Definition at line 505 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetTrafficLightGreenTime().
void carla::client::detail::Client::SetTrafficLightRedTime | ( | rpc::ActorId | traffic_light, |
float | red_time | ||
) |
Definition at line 513 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetTrafficLightRedTime().
void carla::client::detail::Client::SetTrafficLightState | ( | rpc::ActorId | traffic_light, |
const rpc::TrafficLightState | trafficLightState | ||
) |
Definition at line 499 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetTrafficLightState().
void carla::client::detail::Client::SetTrafficLightYellowTime | ( | rpc::ActorId | traffic_light, |
float | yellow_time | ||
) |
Definition at line 509 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetTrafficLightYellowTime().
void carla::client::detail::Client::SetWeatherParameters | ( | const rpc::WeatherParameters & | weather | ) |
Definition at line 266 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetWeatherParameters().
void carla::client::detail::Client::SetWheelSteerDirection | ( | rpc::ActorId | vehicle, |
rpc::VehicleWheelLocation | vehicle_wheel, | ||
float | angle_in_deg | ||
) |
Definition at line 310 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SetWheelSteerDirection().
std::string carla::client::detail::Client::ShowRecorderActorsBlocked | ( | std::string | name, |
double | min_time, | ||
double | min_distance | ||
) |
Definition at line 563 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ShowRecorderActorsBlocked().
std::string carla::client::detail::Client::ShowRecorderCollisions | ( | std::string | name, |
char | type1, | ||
char | type2 | ||
) |
Definition at line 559 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ShowRecorderCollisions().
std::string carla::client::detail::Client::ShowRecorderFileInfo | ( | std::string | name, |
bool | show_all | ||
) |
Definition at line 555 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ShowRecorderFileInfo().
void carla::client::detail::Client::ShowVehicleDebugTelemetry | ( | rpc::ActorId | vehicle, |
bool | enabled | ||
) |
Definition at line 431 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::ShowVehicleDebugTelemetry().
rpc::Actor carla::client::detail::Client::SpawnActor | ( | const rpc::ActorDescription & | description, |
const geom::Transform & | transform | ||
) |
Definition at line 323 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SpawnActor().
rpc::Actor carla::client::detail::Client::SpawnActorWithParent | ( | const rpc::ActorDescription & | description, |
const geom::Transform & | transform, | ||
rpc::ActorId | parent, | ||
rpc::AttachmentType | attachment_type | ||
) |
Definition at line 329 of file client/detail/Client.cpp.
References _pimpl, carla::geom::Math::Dot(), carla::geom::Transform::location, carla::geom::Vector3D::MakeSafeUnitVector(), carla::rpc::SpringArm, and carla::rpc::SpringArmGhost.
Referenced by carla::client::detail::Simulator::SpawnActor().
std::string carla::client::detail::Client::StartRecorder | ( | std::string | name, |
bool | additional_data | ||
) |
Definition at line 547 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::StartRecorder().
void carla::client::detail::Client::StopRecorder | ( | void | ) |
Definition at line 551 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::StopRecorder().
void carla::client::detail::Client::StopReplayer | ( | bool | keep_actors | ) |
Definition at line 573 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::StopReplayer().
void carla::client::detail::Client::SubscribeToGBuffer | ( | rpc::ActorId | ActorId, |
uint32_t | GBufferId, | ||
std::function< void(Buffer)> | callback | ||
) |
Definition at line 616 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::SubscribeToGBuffer().
void carla::client::detail::Client::SubscribeToStream | ( | const streaming::Token & | token, |
std::function< void(Buffer)> | callback | ||
) |
Definition at line 589 of file client/detail/Client.cpp.
References _pimpl, and carla::streaming::detail::token_type::get_stream_id().
Referenced by carla::client::detail::Episode::Listen(), and carla::client::detail::Simulator::SubscribeToSensor().
void carla::client::detail::Client::UnloadLevelLayer | ( | rpc::MapLayer | map_layer | ) | const |
Definition at line 157 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UnloadLevelLayer().
void carla::client::detail::Client::UnSubscribeFromGBuffer | ( | rpc::ActorId | ActorId, |
uint32_t | GBufferId | ||
) |
Definition at line 627 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UnSubscribeFromGBuffer().
void carla::client::detail::Client::UnSubscribeFromStream | ( | const streaming::Token & | token | ) |
Definition at line 597 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UnSubscribeFromSensor(), and carla::client::detail::Episode::~Episode().
void carla::client::detail::Client::UpdateDayNightCycle | ( | const bool | active | ) | const |
Definition at line 665 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UpdateDayNightCycle().
void carla::client::detail::Client::UpdateServerLightsState | ( | std::vector< rpc::LightState > & | lights, |
bool | discard_client = false |
||
) | const |
Definition at line 661 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UpdateServerLightsState().
void carla::client::detail::Client::UseCarSimRoad | ( | rpc::ActorId | vehicle, |
bool | enabled | ||
) |
Definition at line 456 of file client/detail/Client.cpp.
References _pimpl.
Referenced by carla::client::detail::Simulator::UseCarSimRoad().
|
private |
Definition at line 434 of file client/detail/Client.h.
Referenced by AddActorAngularImpulse(), AddActorForce(), AddActorImpulse(), AddActorTorque(), AddTrafficManagerRunning(), ApplyAckermannControllerSettings(), ApplyAckermannControlToVehicle(), ApplyBatch(), ApplyBatchSync(), ApplyColorTextureToObjects(), ApplyControlToVehicle(), ApplyControlToWalker(), ApplyPhysicsControlToVehicle(), BlendPose(), CastRay(), CloseVehicleDoor(), CopyOpenDriveToServer(), DestroyActor(), DestroyTrafficManager(), DisableActorConstantVelocity(), DisableForROS(), DrawDebugShape(), EnableActorConstantVelocity(), EnableCarSim(), EnableChronoPhysics(), EnableEnvironmentObjects(), EnableForROS(), FreezeAllTrafficLights(), FreezeTrafficLight(), GetAckermannControllerSettings(), GetActorDefinitions(), GetActorsById(), GetAvailableMaps(), GetBonesTransform(), GetEndpoint(), GetEnvironmentObjects(), GetEpisodeInfo(), GetEpisodeSettings(), GetGroupTrafficLights(), GetLevelBBs(), GetLightBoxes(), GetMapData(), GetMapInfo(), GetNamesOfAllObjects(), GetNavigationMesh(), GetPoseFromAnimation(), GetRequiredFiles(), GetServerVersion(), GetSpectator(), GetTimeout(), GetTrafficManagerRunning(), GetVehicleLightState(), GetVehiclePhysicsControl(), GetVehiclesLightStates(), GetWeatherParameters(), GetWheelSteerAngle(), IsEnabledForROS(), IsTrafficManagerRunning(), LoadEpisode(), LoadLevelLayer(), OpenVehicleDoor(), ProjectPoint(), QueryLightsStateToServer(), ReplayFile(), RequestFile(), ResetAllTrafficLights(), ResetTrafficLightGroup(), SendTickCue(), SetActorAutopilot(), SetActorCollisions(), SetActorDead(), SetActorEnableGravity(), SetActorLocation(), SetActorSimulatePhysics(), SetActorTargetAngularVelocity(), SetActorTargetVelocity(), SetActorTransform(), SetBonesTransform(), SetEpisodeSettings(), SetLightStateToVehicle(), SetReplayerIgnoreHero(), SetReplayerIgnoreSpectator(), SetReplayerTimeFactor(), SetTimeout(), SetTrafficLightGreenTime(), SetTrafficLightRedTime(), SetTrafficLightState(), SetTrafficLightYellowTime(), SetWeatherParameters(), SetWheelSteerDirection(), ShowRecorderActorsBlocked(), ShowRecorderCollisions(), ShowRecorderFileInfo(), ShowVehicleDebugTelemetry(), SpawnActor(), SpawnActorWithParent(), StartRecorder(), StopRecorder(), StopReplayer(), SubscribeToGBuffer(), SubscribeToStream(), UnloadLevelLayer(), UnSubscribeFromGBuffer(), UnSubscribeFromStream(), UpdateDayNightCycle(), UpdateServerLightsState(), and UseCarSimRoad().